On Tue, 2012-12-18 at 16:27 +0100, Michal Hocko wrote: > From: David Rientjes <[email protected]> > > commit 1f1d06c34f7675026326cd9f39ff91e4555cf355 upstream > > On COW, a new hugepage is allocated and charged to the memcg. If the > system is oom or the charge to the memcg fails, however, the fault > handler will return VM_FAULT_OOM which results in an oom kill. > > Instead, it's possible to fallback to splitting the hugepage so that the > COW results only in an order-0 page being allocated and charged to the > memcg which has a higher liklihood to succeed. This is expensive > because the hugepage must be split in the page fault handler, but it is > much better than unnecessarily oom killing a process. > > Signed-off-by: David Rientjes <[email protected]> > Cc: Andrea Arcangeli <[email protected]> > Cc: Johannes Weiner <[email protected]> > Acked-by: KAMEZAWA Hiroyuki <[email protected]> > Cc: Michal Hocko <[email protected]> > Signed-off-by: Andrew Morton <[email protected]> > Signed-off-by: Linus Torvalds <[email protected]> [...]
Queued up for 3.2, thanks. Ben. -- Ben Hutchings The world is coming to an end. Please log off.
signature.asc
Description: This is a digitally signed message part
