From: Andi Kleen <ak@suse.de>
To: Christoph Lameter <clameter@sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Anticipatory prefaulting in the page fault handler V2
Date: 16 Dec 2004 08:27:59 +0100 [thread overview]
Message-ID: <p73hdmmog74.fsf@bragg.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0412131730410.817@schroedinger.engr.sgi.com.suse.lists.linux.kernel>
Christoph Lameter <clameter@sgi.com> writes:
>
> If a fault occurred for page x and is then followed by page x+1 then it may
> be reasonable to expect another page fault at x+2 in the future. If page
> table entries for x+1 and x+2 would be prepared in the fault handling for
> page x+1 then the overhead of taking a fault for x+2 is avoided. However
> page x+2 may never be used and thus we may have increased the rss
> of an application unnecessarily. The swapper will take care of removing
> that page if memory should get tight.
I would be very careful with this. Windows does something like this
by default and one application that I know needs twice as much swap+memory
on Windows than on Linux because of this. Since it uses a lot of memory
it would be a bad regression.
When you add it there should be at least some easy way for an application
to turn it off (madvise and probably sysctl?) and make the heuristic very
conservative.
-Andi
next parent reply other threads:[~2004-12-16 7:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.44.0411221457240.2970-100000@localhost.localdomain.suse.lists.linux.kernel>
[not found] ` <156610000.1102546207@flay.suse.lists.linux.kernel>
[not found] ` <Pine.LNX.4.58.0412091130160.796@schroedinger.engr.sgi.com.suse.lists.linux.kernel>
[not found] ` <200412132330.23893.amgta@yacht.ocn.ne.jp.suse.lists.linux.kernel>
[not found] ` <Pine.LNX.4.58.0412130905140.360@schroedinger.engr.sgi.com.suse.lists.linux.kernel>
[not found] ` <8880000.1102976179@flay.suse.lists.linux.kernel>
[not found] ` <Pine.LNX.4.58.0412131730410.817@schroedinger.engr.sgi.com.suse.lists.linux.kernel>
2004-12-16 7:27 ` Andi Kleen [this message]
2004-11-22 15:00 page fault scalability patch V11 [1/7]: sloppy rss Hugh Dickins
2004-12-08 22:50 ` Anticipatory prefaulting in the page fault handler V1 Martin J. Bligh
2004-12-09 19:32 ` Christoph Lameter
2004-12-13 14:30 ` Akinobu Mita
2004-12-13 17:10 ` Christoph Lameter
2004-12-13 22:16 ` Martin J. Bligh
2004-12-14 1:32 ` Anticipatory prefaulting in the page fault handler V2 Christoph Lameter
2004-12-14 19:31 ` Adam Litke
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=p73hdmmog74.fsf@bragg.suse.de \
--to=ak@suse.de \
--cc=clameter@sgi.com \
--cc=linux-kernel@vger.kernel.org \
/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