[lkml]   [2005]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-10-19 15:48    [W:0.092 / U:7.312 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site