This adds more commentary to khugepaged and it adds two defrag sysfs knobs: find /sys/ -name defrag /sys/kernel/mm/transparent_hugepage/defrag /sys/kernel/mm/transparent_hugepage/khugepaged/defrag find /sys/ -name defrag -exec cat {} \; always [madvise] never [yes] no This should also fix memcg khugepaged accounting (thanks Kame). I folded the page_anon_vma patch into transparent_hugepage. It was however good idea to keep it separated first time around IMHO to make reviewing of the changes feasible (it's still there to review on the list in the #11 submit if others wants to review). Let me know if something else is needed to merge into -mm. After that we can start to call memory compaction in alloc_hugepage(int defrag) if defrag == 1. Thanks! Andrea -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>