Subject: Re: I/O priorities
To: Greywolf <greywolf@starwolf.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 06/20/2002 21:29:35
On Thu, Jun 20, 2002 at 12:13:30PM -0700, Greywolf wrote:
> 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?

It's only for mmap().

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--