From: Con Kolivas <kernel@kolivas.org>
To: Christoph Lameter <clameter@engr.sgi.com>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>, ck list <ck@vds.kolivas.org>
Subject: Re: [PATCH] mm: Implement Swap Prefetching v25
Date: Tue, 14 Feb 2006 11:09:01 +1100 [thread overview]
Message-ID: <200602141109.01790.kernel@kolivas.org> (raw)
In-Reply-To: <Pine.LNX.4.62.0602131256000.3026@schroedinger.engr.sgi.com>
On Tue, 14 Feb 2006 07:58 am, Christoph Lameter wrote:
> On Sun, 12 Feb 2006, Con Kolivas wrote:
> > Once pages have been added to the swapped list, a timer is started,
> > testing for conditions suitable to prefetch swap pages every 5 seconds.
> > Suitable conditions are defined as lack of swapping out or in any pages,
> > and no watermark tests failing. Significant amounts of dirtied ram and
> > changes in free ram representing disk writes or reads also prevent
> > prefetching.
> >
> > It then checks that we have spare ram looking for at least 3* pages_high
> > free per zone and if it succeeds that will prefetch pages from swap into
> > the swap cache. The pages are added to the tail of the inactive list to
> > preserve LRU ordering.
>
> spare ram when swapping??? We are already under memory pressure. Why make
> it worse by getting rid of the few bits of available memory? If a system
> swaps then we are per definition in the bad performance range. Add more
> memory.
This patch only prefetches the swapped pages when idle and tacks them onto the
end of the inactive list so they will be the first thing that is removed if
we need ram in the future.
Ordinary desktops swap under ordinary workloads day to day on normal pcs. It
is extraordinary common that one workload will swap out other applications
and then when complete we have free ram, yet our applications are floundering
on swapspace.
Your solution of add more memory is unrealistic. Desktops do have a limit on
how much ram we are likely to have/can afford and our workloads have, do, and
will for ever more outstrip all available ram. A huge chunk of linux in the
wild is on these sort of desktops. This patch makes a substantial difference
to ordinary desktops, is configurable on or off and it can be runtime
enabled/disabled.
Cheers,
Con
next prev parent reply other threads:[~2006-02-14 0:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-11 14:41 [PATCH] mm: Implement Swap Prefetching v25 Con Kolivas
2006-02-13 20:58 ` Christoph Lameter
2006-02-13 21:11 ` David Lang
2006-02-13 21:16 ` Christoph Lameter
2006-02-13 21:19 ` David Lang
2006-02-14 0:09 ` Con Kolivas [this message]
2006-02-14 12:45 ` news.gmane.org
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=200602141109.01790.kernel@kolivas.org \
--to=kernel@kolivas.org \
--cc=akpm@osdl.org \
--cc=ck@vds.kolivas.org \
--cc=clameter@engr.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