[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Reclaim orphaned swap pages



> From what I can see of the patch vm_enough_memory will still fail
> causing premature oom

Actually if vm_enough_memory fails that prevents oom, apps get ENOMEM
instead of killed by oom_kill later. Moreover vm_enough_memory is long
different and apparently it's just overestimating free pages that makes
people unhappy with the resulted higher oom_kill/ENOMEM rate. If you
want to prevent premature oom you should patch out_of_memory but be
careful if you overestimate you can/will lockup. Anyway I think the
right place for oom_kill would be in the page fault handler [just as for
early kernels] but this needs a small change in __alloc_pages otherwise
processes get stuck there [see goto try_again] when system is low on
memory.

	Szaka

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/