From: ebiederm+eric@npwt.net (Eric W. Biederman)
To: Rik van Riel <H.H.vanRiel@phys.uu.nl>
Cc: Linux MM <linux-mm@kvack.org>
Subject: Re: PTE chaining, kswapd and swapin readahead
Date: 17 Jun 1998 04:24:17 -0500 [thread overview]
Message-ID: <m17m2gz8hq.fsf@flinx.npwt.net> (raw)
In-Reply-To: Rik van Riel's message of Wed, 17 Jun 1998 00:10:07 +0200 (CEST)
>>>>> "RR" == Rik van Riel <H.H.vanRiel@phys.uu.nl> writes:
RR> Hi,
RR> In the PTE chaining discussion/patches a while ago, I saw
RR> that kswapd was changed in a way that it scanned memory
RR> in physical order instead of walking the pagetables.
RR> This has the advantage of deallocating memory in physically
RR> adjecant chunks, which will be nice while we still have the
RR> primitive buddy allocator we're using now.
Also it has the advantage that shared pages are only scanned once, and
empty address space needn't be scanned.
RR> However, it will be a major performance bottleneck when we
RR> get around to implementing the zone allocator and swapin
RR> readahead. This is because we don't need physical deallocation
RR> with the zone allocatore and because swapin readahead is just
RR> an awful lot faster when the pages are contiguous in swap.
Just what is your zone allocator? I have a few ideas based on the
name but my ideas don't seem to jive with your descriptions.
This part about not needing physically contigous memory is really
puzzling.
RR> I write this to let the PTE people (Stephen and Ben) know
RR> that they probably shouldn't remove the pagetable walking
RR> routines from kswapd...
If we get around to using a true LRU algorithm we aren't too likely
too to swap out address space adjacent pages... Though I can see the
advantage for pages of the same age.
Also for swapin readahead the only effective strategy I know is to
implement a kernel system call, that says I'm going to be accessing
this chunck of my address space soon. The clustering people have
already implemented a system call of this nature for their own use.
It would probably be a good idea to do something similiar...
Eric
next prev parent reply other threads:[~1998-06-17 10:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-16 22:10 Rik van Riel
1998-06-17 9:24 ` Eric W. Biederman [this message]
1998-06-17 16:03 ` Rik van Riel
1998-06-18 4:06 ` Eric W. Biederman
1998-06-18 7:25 ` Rik van Riel
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=m17m2gz8hq.fsf@flinx.npwt.net \
--to=ebiederm+eric@npwt.net \
--cc=H.H.vanRiel@phys.uu.nl \
--cc=linux-mm@kvack.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