Subject: Re: I/O priorities
To: David Laight <david@l8s.co.uk>
From: Greywolf <greywolf@starwolf.com>
List: tech-kern
Date: 06/20/2002 12:13:30
On Thu, 20 Jun 2002, David Laight wrote:

# The other question is which pages are chosed to be invalidated?
# If someone is copying a large file, or making a large iso image,
# then you actually want to discard the pages that have been used
# earlier by the copy - rather than those used by the long standing
# X server etc.

Isn't that what madvise(addr, size, MADV_SEQUENTIAL) is for, or is
that for reads only?

# ISTM that pages that have been used a lot of times but not in
# the immediate past should be preserved in preference to pages
# that have only been used once but very recently.
# (a naive implemtation of this wort work though...)

Every time the system gets rebooted/crashes due to instability, you
get to rebuild the behavioral pattern caching (for lack of a better
term).  Essentially, by a refcount/time kind of attribute, you are
sort of "teaching" the running system how you are using it.

				--*greywolf;
--
NetBSD, stupid.