Re: dynamic memory allocation and swapping

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

 



On Thu, Jun 12, 2003 at 09:16:58AM -0700, P B wrote:
>     When allocating memory with kernel functions such
> as kmalloc, vmalloc, and __get_free_page(s), do these
> functions return memory (or pages in the case of
> _get_free_page(s)) that is not eligible for swapping

You're correct -- memory allocated in the kernel is not eligable for
swapping (aka "pageable").

It is already pinned into physical memory.

(Note that this is irrespective of the GFP_ flags you may use; GFP_USER
simply means that the process may sleep when acquiring the memory.)

-- 
http://sardonix.org/

Attachment: pgp00446.pgp
Description: PGP signature


[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