lkml.org 
[lkml]   [2000]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: can kernel memory allocated by kmalloc be swapped out??
From
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.048 / U:20.220 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site