Re: qsbench, interesting results

From: Rik van Riel (riel@conectiva.com.br)
Date: Tue Oct 01 2002 - 13:20:11 EST


On Tue, 1 Oct 2002, Andrew Morton wrote:

> Problem is, it's cruel. People don't notice that we shaved 15 seconds
> off that three minute session of file bashing which they just did.
> But they do notice that when they later wiggle their mouse, it takes
> five seconds to pull the old stuff back in.

Yup, this is the big problem with VM ;)

> The way I'd like to address that is with a "I know that's cool but I
> don't like it" policy override knob. But finding a sensible way of
> doing that is taking some head-scratching. Anything which says
> "unmap pages much later" is doomed to failure I suspect. It will
> just increase latency when we really _do_ need to unmap, and will
> cause weird OOM failures.

FreeBSD fixes this in a fairly simple way. It has a sysctl
switch (vm_defer_pageouts IIRC) that can be toggled on and
off.

If the switch is off, the VM only reclaims swap backed pages
if memory is really low and doesn't if it can keep enough
free memory by only reclaiming file backed pages.

regards,

Rik

-- 
A: No.
Q: Should I include quotations after my reply?

http://www.surriel.com/ http://distro.conectiva.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:27 EST