Subject: Re: Limiting memory usage of bufcache?
To: Curt Sampson <cjs@cynic.net>
From: Wojciech Puchar <wojtek@wojtek.3miasto.net>
List: netbsd-users
Date: 08/24/2001 08:30:06
> > in RAM, anyway, because it is only accessed once and then deleted ;)
>
> Solaris deals with this by detecting that a file is being used purely
> sequentially, and changing the way it decides what to discard when
> new memory is needed. I don't know the exact details of how it works,
good idea.

using time needed to read the block as priority should do it

> but even a very simple-minded version of this (one bit to tell you if
> an open file has ever been accessed non-sequentially) would fix the
> problem you have, and improve various other common operations as well.
> (Making MP3s, playing back audio or video, etc.)
>
> cjs
> --
> Curt Sampson  <cjs@cynic.net>   +81 3 5778 0123   http://www.netbsd.org
>     Don't you know, in this new Dark Age, we're all light.  --XTC
>