Thread (9 messages) 9 messages, 5 authors, 2011-11-11

About kernel memory limit

From: Geraint Yang <hidden>
Date: 2011-11-11 04:44:32

Hi Dave,
Thank you for your help !
Does it mean that I could use all of the memory my computer has? But one of
my classmates told me that kernel could only use 1G from a 4G
memory.computer...Is there anything I have misunderstood ?


On Fri, Nov 11, 2011 at 4:58 AM, Dave Hylands [off-list ref] wrote:
Hi,

On Thu, Nov 10, 2011 at 6:23 AM, Geraint Yang [off-list ref]
wrote:
quoted
Hi there,
I am a newbie to Linux kernel programming. I am going to make a module
which will cost much memory in kernel, I just want to know how much
memory I can get by calling memory allocate API in kernel.
All of it.

From kernel space, you can completely exhaust memory to the point of
making your system unusable.

From kernel space you have vmalloc memory and kmalloc memory (plus a
couple other memory spaces). Depending on how things are configured,
it's possible to exhaust vmalloc memory even though there is memory
available to be kmalloc'd.

--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com


-- 
Geraint Yang
Tsinghua University Department of Computer Science and Technology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111111/100c7645/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help