Re: can kernel memory allocated by kmalloc be swapped out??

From: Andreas Bombe (andreas.bombe@munich.netsurf.de)
Date: Sun Sep 17 2000 - 11:06:59 EST


On Sun, Sep 17, 2000 at 06:42:38PM +0530, aprasad@in.ibm.com wrote:
> hi everyone,
>
> suppose i allocate some kernel memory in a module by calling kmalloc,
> can that memory be swapped out, for example in AIX even the kernel memory
> which is allocated by rmalloc is swappable!!

No, it isn't swappable. Neither is vmalloc()ed memory. The only
swappable memory (i.e. either paged out to swap area or file) is mmap()ed
memory. (mmap() isn't to be taken too literally, user space doesn't
call mmap() for most of its stuff, but the kernel does call it (or one
of the lower level primitives) for user allocated memory.)

-- 
 Andreas E. Bombe <andreas.bombe@munich.netsurf.de>    DSA key 0x04880A44
http://home.pages.de/~andreas.bombe/    http://linux1394.sourceforge.net/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:14 EST