Skip to contentSkip to conversation

kernel memory usage any restrictions?

DISCUSSION cranium2003 2 participants 2 messages May 27, 2005

lore
Share & tools
lore
#0 lore raw

hello,
Is there any restricition on using
kernel's memory? also if i require to use some kernel memory say 625kB by allocating that in GFP_ATOMIC mode flag, what will be the side effects on kernel memory if i use that 625kB memory available from kernel memory for my kernel source code additions to kernel? I require answer with respect to 2.4 and 2.6 kernel. regards,
cranium.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#1 lore raw
Quoted 4 lines · cranium2003 wrote:

hello,
Is there any restricition on using
kernel's memory? also if i require to use some kernel memory say 625kB by allocating that in GFP_ATOMIC mode

Your call will almost certainly fail. I think kmalloc will only give you up to 128KB, and even that might be tricky to do with GFP_ATOMIC.

For larger chunks of memory, you can use vmalloc() or reserve it statically at compile time.

Chris