[lkml]   [1996]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectMemory in Kernel space
Hi ppl,

I have a couple of questions about memory allocation in kernel space..

I am modifying the kernel to do something that requires huge amounts of
memory in the kernel space. I allocate this memory in 4K blocks.
How much memory can I actually allocate in the kernel space as compared
to the RAM that I have (I have a 32 MB RAM and I need to allocate 25MB or so)

secondly If i increase the RAM to 128 MB can I use around 120 MB in kernel
space. What problems might I expect then...??

third and last, should I allocate 4K each time or 4K-16 each time (the blocksize
is 4096-16. (ie for efficiency should I call kmalloc with 4096 or 4090bytes..)

thanx a lot for ur patience... and sorry If i have asked any silly question..
(I am new to this)
thanx again

PS: Will the amount of memory that can be allocated go down with time (assuming
that no other processes are running at that time) (ie. will there be any sort
of fragmentation??)
thanx again

Balaji Srinivasan
Voice: (913)-864-7756(W) email:
(913)-841-3555(H) WWW :

 \ /
  Last update: 2005-03-22 13:37    [W:0.022 / U:3.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site