[PATCH] fadvise(2) system call

John Baldwin jhb at freebsd.org
Wed Nov 9 14:56:28 UTC 2011


On Wednesday, November 09, 2011 1:18:07 am Tim Kientzle wrote:
> It's not at all obvious.
> 
> If I have 1GB of cache and I'm going
> to generate and then read back a 2GB file,
> the best strategy is to hold the first
> 1GB in cache.
> 
> If I'm going to write the file and it will never be
> read back, then the best strategy is to not
> cache any of it.
> 
> Sometimes, a program knows which of
> these is likely, but if it doesn't know, it shouldn't
> say.

Exactly.

-- 
John Baldwin


More information about the freebsd-arch mailing list