Re: [patch] improve streaming I/O [bug in shrink_mmap()]

From: Stephen C. Tweedie (sct@redhat.com)
Date: Mon Jun 12 2000 - 17:29:32 EST


Hi,

On Mon, Jun 12, 2000 at 11:46:09PM +0200, Zlatko Calusic wrote:
>
> This simple one-liner solves a long standing problem in Linux VM.
> While searching for a discardable page in shrink_mmap() Linux was too
> easily failing and subsequently falling back to swapping. The problem
> was that shrink_mmap() counted pages from the wrong zone, and in case
> of balancing a relatively smaller zone (e.g. DMA zone on a 128MB
> computer) "count" would be mistakenly spent dealing with pages from
> the wrong zone. The net effect of all this was spurious swapping that
> hurt performance greatly.

Nice --- it might also explain some of the excessive kswap CPU
utilisation we've seen reported now and again.

--Stephen

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



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:26 EST