Re: Behaviour of kernel memory allocation

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

 



On Fri, 8 Jul 2005, Xiangfei Jia wrote:

> I was trying to see how much I can really allocate memory in kernel space 
> using "vmalloc". I used "kinfocenter"(the memory section) to monitor the 
> changes. My laptop has 512MB phyical memory with a 1GB swap partition. 

Don't do that.  On systems that have a lot of physical
memory, the vmalloc area is 128MB total, to be shared
between all vmalloc users.

If you allocate all vmalloc memory in your driver,
there will be nothing left for the rest of the system.

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux