[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fairness in love and swapping
Hi,
On Mon, 2 Mar 1998 17:19:41 +0100 (MET), Rik van Riel
<H.H.vanRiel@fys.ruu.nl> said:
> Nevertheless, the system seems to run smoother when the
> page-cache pages aren't thrown away immediately, but aged
> as normal pages are. Read-ahead pages _are_ sometimes
> freed before they're actually used, so in this case the
> system _will_ have to read them again.
Absolutely. The trouble is that
a) the kernel likes to keep reclaiming pages from a single source if
it is finding it easy to locate unused pages there, so when it starts
on the page cache it _can_ get over zealous in reaping those pages;
and
b) starting to find free pages from swap is inherently difficult due
to the initial age placed on pages.
I rather suspect with those patches that it's not simply the aging of
page cache pages which helps performance, but also the tuning of the
balance between page cache and data page reclamation.
--Stephen