lkml.org 
[lkml]   [2005]   [Oct]   [19]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 19 Oct 2005 15:43:43 +0200
FromAvi Kivity <>
SubjectRe: large files unnecessary trashing filesystem cache?
Bodo Eggert wrote:

>I guess the solution would be using random cache eviction rather than
>a FIFO. I never took a look the cache mechanism, so I may very well be
>wrong here.
> 
>
Instead of random cache eviction, you can make pages that were read in 
contiguously age faster than pages that were read in singly.

The motivation is that the cost of reading 64K vs 4K is almost the same 
(most of the cost is the seek), while the benefit for evicting 64K is 16 
times that of evicting 4K. Over time, the kernel would favor expensive 
random-access pages over cheap streaming pages.

In a way, this is already implemented for inodes, which are aged more 
slowly than data pages.


-
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-10-19 13:48    [from the cache]
©2003-2008