Subject: Re: UBC, interactive performance, etc
To: Frank van der Linden <fvdl@wasabisystems.com>
From: Jaromír <jdolecek@netbsd.org>
List: tech-kern
Date: 04/03/2001 15:01:39
Frank van der Linden wrote:
> Maybe another simple thing to try is 'don't touch text pages, unless
> the data pages fall below a certain threshold'. This would
> be easy to do (it's all in lines 451-478 in uvm_pdaemon.c).
>
> Lastly, I believe that another problem was that shared libraries
> are treated the same as 'normal' data files. Not sure what to
> do there, maybe a heuristic that prefers keeps r-x mapped pages?
I'd probably preferred if the buffer cache would not touch text&data
pages at all. In other words, that buffer cache would only use
free, otherwise unused memory. It seems highly suboptimal for the page
scanner to kick processes' data/text pages out of memory just to make
more room for i/o buffers.
I think there should be some minimal value of memory dedicated to
buffer cache (i.e. what BUFCACHE/BUFPAGES does) and more memory
would only be used if it's otherwise _unused at all_.
Perhaps this might be an option, but such behaviour should be default IMHO.
Jaromir
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.ics.muni.cz/~dolecek/
NetBSD - just plain best OS! -=<>=- Got spare MCA cards or docs? Hand me them!