(2012/04/10 14:42), David Rientjes wrote: > 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 <rientjes@xxxxxxxxxx> Seems nice to me. Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>