On Thu, Jun 12, 2008 at 12:15 PM, Johannes Weiner <hannes@xxxxxxxxxxxx> wrote:
Hi,
No, only pages on the LRU lists are candidates for being swapped out.
"sahlot arvind" <asahlot@xxxxxxxxx> writes:
> Guys,
>
> 1. If I allocate a page of memory through kmalloc () inside my driver then
> are there chances in future that this page might get swapped out? I mean
> as in kernel pages never get swapped out so I am bit confused if kmalloc'd
> pages are candidate for being swapped out or not?
Mapping them to userspace does not put them on the LRU lists.
> 2. Similiar to 1. If I allocate a page of memory through kmalloc () inside
> my driver and map this memory into the address space of some process then
> are there chances in future that this page might get swapped out? I mean
> now since this memory would be a part of process address space as well so
> I am bit confused if kmalloc'd pages are candidate for being swapped out
> or not?
Hannes
--
http://linuxexplained.blogspot.com