LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* is linux still a none swappable kernel?
@ 2007-05-13 17:12 Rodrigo Amestica
2007-05-13 18:45 ` Heiko Carstens
2007-05-13 19:00 ` Rik van Riel
0 siblings, 2 replies; 3+ messages in thread
From: Rodrigo Amestica @ 2007-05-13 17:12 UTC (permalink / raw)
To: linux-kernel
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,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: is linux still a none swappable kernel?
2007-05-13 17:12 is linux still a none swappable kernel? Rodrigo Amestica
@ 2007-05-13 18:45 ` Heiko Carstens
2007-05-13 19:00 ` Rik van Riel
1 sibling, 0 replies; 3+ messages in thread
From: Heiko Carstens @ 2007-05-13 18:45 UTC (permalink / raw)
To: Rodrigo Amestica; +Cc: linux-kernel
On Sun, May 13, 2007 at 01:12:12PM -0400, Rodrigo Amestica wrote:
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: is linux still a none swappable kernel?
2007-05-13 17:12 is linux still a none swappable kernel? Rodrigo Amestica
2007-05-13 18:45 ` Heiko Carstens
@ 2007-05-13 19:00 ` Rik van Riel
1 sibling, 0 replies; 3+ messages in thread
From: Rik van Riel @ 2007-05-13 19:00 UTC (permalink / raw)
To: Rodrigo Amestica; +Cc: linux-kernel
Rodrigo Amestica wrote:
> 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.
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-05-13 19:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-13 17:12 is linux still a none swappable kernel? Rodrigo Amestica
2007-05-13 18:45 ` Heiko Carstens
2007-05-13 19:00 ` Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).