On Saturday 28 July 2007 04:55:58 david@xxxxxxx wrote:On Sat, 28 Jul 2007, Rene Herman wrote:On 07/27/2007 09:43 PM, david@xxxxxxx wrote:On Fri, 27 Jul 2007, Rene Herman wrote:On 07/27/2007 07:45 PM, Daniel Hazelton wrote:
nobody is arguing that swap prefetch helps in the second cast.
Actually, I made a mistake when tracking the thread and reading the code for
the patch and started to argue just that. But I have to admit I made a
mistake - the patches author has stated (as Rene was kind enough to point
out) that swap prefetch can't help when memory is filled.
what people are arguing is that there are situations where it helps for
the first case. on some machines and version of updatedb the nighly run of
updatedb can cause both sets of problems. but the nightly updatedb run is
not the only thing that can cause problems
Solving the cache filling memory case is difficult. There have been a number
of discussions about it. The simplest solution, IMHO, would be to place a
(configurable) hard limit on the maximum size any of the kernels caches can
grow to. (The only solution that was discussed, however, is a complex beast)