Hi,

"sahlot arvind" <[EMAIL PROTECTED]> 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?

No, only pages on the LRU lists are candidates for being swapped out.

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

Mapping them to userspace does not put them on the LRU lists.

        Hannes

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to