lkml.org 
[lkml]   [2004]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: excessive swapping
From
Date
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.063 / U:2.640 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site