[lkml]   [2000]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: can kernel memory allocated by kmalloc be swapped out??
On Sun, Sep 17, 2000 at 06:42:38PM +0530, 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 <> DSA key 0x04880A44
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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