Subject: re: CVS commit: src/usr.bin/cmp
To: David Laight <david@l8s.co.uk>
From: matthew green <mrg@eterna.com.au>
List: source-changes
Date: 02/08/2005 04:39:24
On Mon, Feb 07, 2005 at 02:42:08PM +1100, matthew green wrote:
>
> Also I don't believe that the madvise( MAP_SEQUENTIAL) has the desired
> effect, and mmaping a large file is probably very bad for the UBC.
>
>
> why do you say this?
What you need to avoid is the UBC discarding all its current pages in order
to keep all the mapped, and recently faulted in, pages of the file that you
aren't going to use again in the near future.
oops, i wasn't clear. i mean about MAP_SEQUENTIAL not about UBC.
.mrg.