Re: [PATCH] OOM kill trigger fix

2001-07-06 Thread Rik van Riel
On Fri, 6 Jul 2001, Hugh Dickins wrote: > On Fri, 6 Jul 2001, Rik van Riel wrote: > > > > Of course, to implement this we have to count the number of > > swapcache pages, but that's a 2-liner ;) > > swapper_space.nrpages already counts that (as Andrea once > pointed out), no need to add your nr_sw

Re: [PATCH] OOM kill trigger fix

2001-07-06 Thread Hugh Dickins
On Fri, 6 Jul 2001, Rik van Riel wrote: > > Of course, to implement this we have to count the number of > swapcache pages, but that's a 2-liner ;) swapper_space.nrpages already counts that (as Andrea once pointed out), no need to add your nr_swapcache_pages. Hugh - To unsubscribe from this lis

[PATCH] OOM kill trigger fix

2001-07-06 Thread Rik van Riel
Hi, the patch below fixes a bug in the OOM killer where the killer could kick in if the system is out of swap (or has no swap), is not out of memory yet but simply has a hard time with the cache. The solution is to test against page_cache.min_percent + buffer_cache.min_percent, this way we: 1)