From: Rik van Riel <riel@redhat.com>
To: Rodrigo Amestica <ramestic@nrao.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: is linux still a none swappable kernel?
Date: Sun, 13 May 2007 15:00:25 -0400 [thread overview]
Message-ID: <46476049.2090806@redhat.com> (raw)
In-Reply-To: <464746EC.10608@nrao.edu>
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.
prev parent reply other threads:[~2007-05-13 19:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46476049.2090806@redhat.com \
--to=riel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ramestic@nrao.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox