Skip to contentSkip to conversation

is linux still a none swappable kernel?

DISCUSSION Rodrigo Amestica 3 participants 3 messages May 13, 2007

lore
Share & tools
lore
#0 lore raw

In some older posts I have read that memory allocations via kmalloc and vmalloc are not swappable, that is, these memory chunks are not paged out to swap area. Is this still the case with linux kernel 2.6?

thanks,

#1 lore raw
Quoted 3 lines · Rodrigo Amestica

In some older posts I have read that memory allocations via kmalloc and vmalloc are not swappable, that is, these memory chunks are not paged out to swap area. Is this still the case with linux kernel 2.6?

Yes.

#2 lore raw
In reply to Rodrigo Amestica
Quoted 3 lines · Rodrigo Amestica

In some older posts I have read that memory allocations via kmalloc and vmalloc are not swappable, that is, these memory chunks are not paged out to swap area. Is this still the case with linux kernel 2.6?

Yes.

Unswappable kernel memory is simpler and faster.

Over the last 15 years, the memory requirements of the Linux kernel have grown maybe a factor 10, while the memory of computers has grown by a factor of 1000.

The data structures that grow with memory (mostly the mem_map[] array of page structs) has actually gotten smaller since the 2.4 kernel and now takes under 1% of memory even on x86-64.

There really is no good reason for swapping kernel memory nowadays.

Signature · 3 lines
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is.  Each group
calls the other unpatriotic.