Messages in this thread |  | | Date | Fri, 02 Nov 2001 04:01:27 +0100 | From | Stephan von Krawczynski <> | Subject | Re: new OOM heuristic failure (was: Re: VM: qsbench) |
| |
> Hi, > > shrink_caches can end up lying. shrink_dcache_memory and friends do not tell > shrink_caches how many pages they free so nr_pages can be bogus... Is it worth > fixing? The simpliest, harmlessly racey and not too pretty, code follows. It > would also not be hard to change the shrink_ calls to return the number of pages > shrunk, but this would hit more code... > > Comments?
I believe the idea of having a more precise nr_pages value can make a difference. We are trying to estimate if swapping is needed, which is pretty expensive. If we can avoid it by more accurately knowing what is really going on (without _too_ much costs) we can only win. Regards, Stephan - 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/
|  |