[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how can i allocate 4MB memory
On Tue, 30 Jul 2002, G Aruna wrote:
> I am working under linux platform with kernel version
> 2.4.2. I have a need to allocate 4MB of contigeous memory. With
> __get_free_pages system call i am able to allocate only 512kb. But my
> requirement is 4MB . Please help me so that i can meet my requirement.
Your best chance would be to reserve this memory at boot
time, maybe you'll even need to change MAX_ORDER in
mm/page_alloc.c to do this...
Btw, I hope you are aware that kernel 2.4.2 is old and
has a number of (security) bugs. Unless you have very good
reasons to use this kernel and you are certain that the
machine will never get a network interface you'll probably
want to upgrade to something newer.
kind regards,
Rik
--
Bravely reimplemented by the knights who say "NIH".
http://www.surriel.com/ http://distro.conectiva.com/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/