[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] 'kmalloc: size too large'




> I get the following error when I try to allocate quite
> a lot of memory using kmalloc:
> 'kmalloc: Size (400000) too large'
> I was wondering how could I know the maximum available
> memory in kernel space and if it is possible to
> reserve more memory at boot time.

I use the following in /etc/lilo.conf to reserve 4mb of space for real-time
use. I use this contiguous area for DMA transfers from several pci devices
to system memory.  Once the data are transfered to this memory, I process
it and move it to a large ( 110 mb ) queue reserved within linux via the
mbuff package.  Unless you need contigous DMA memory, the mbuff functions
will do what you want.

image=/boot/rtl3.0-2.2.18
        append="mem=252M"
        label=rtl2218
        read-only
        root=/dev/hda2

W. Wright


--<<< We are committed to exceeding requirements >>>----->-+
C.W. Wright,wright@lidar.wff.nasa.gov,      Ph:757-824-1698
http://lidar.wff.nasa.gov                  Fax:603-925-6886      
NASA, Goddard Space Flight Center
Building N-159 Room E117, Code 972,Wallops Flight Facility
Wallops Island, Va. 23337   Telecommute phone: 410-742-7333
-------+-<-------------------------------------------------