RE: allocating high-memory pages

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

 




alloc_pages() only lets me allocate up to 2^9 pages at once, or 2 MB.

Let's take the following situation: I've just booted a machine that contains 4 GB of memory on a 32-bit machine.

How would I grab ALL of that memory statically, atomically, and contiguously from within the kernel for use?

Is this possible in linux?


At 02:37 AM 4/11/2005, you wrote:


-----Original Message-----
From: kernelnewbies-bounce@xxxxxxxxxxxx
[mailto:kernelnewbies-bounce@xxxxxxxxxxxx]On Behalf Of Michael Hines



>I want to allocate *permanent* and *atomic* high-memory pages
>for long periods of time within the kernel.

look in to alloc_pages(), kmap() etc.

/*********************************/ Michael R. Hines Grad Student, Florida State Dept. Computer Science http://www.cs.fsu.edu/~mhines/ Jusqu'à ce que le futur vienne... /*********************************/


-- 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