Re: excessive swapping

From: Alan Cox
Date: Fri Aug 13 2004 - 08:16:47 EST


On Gwe, 2004-08-13 at 08:10, Florin Andrei wrote:
> The efficiency of increasing the disk cache decreases exponentially with
> size, like any other cache. Then what's the point of sacrificing useful
> memory just to increase some hypothetical "useful" cache?

The problem is defining "useful". Pieces of applications not being
run at the moment are also not useful. Balancing them isn't easy
because as you say the cache behaviour is exponential _and_ the two
caches have different behaviours when you get blocking (program paging
is generally random so 30+ times slower than streaming bits). Plus there
is user perception.

The latest code is clearly wrong but it isn't simple to get the balance
right either.

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