On Mon, May 22, 2017 at 09:12:42AM +0300, Mike Rapoport wrote: > Currently applications can explicitly enable or disable THP for a memory > region using MADV_HUGEPAGE or MADV_NOHUGEPAGE. However, once either of > these advises is used, the region will always have > VM_HUGEPAGE/VM_NOHUGEPAGE flag set in vma->vm_flags. > The MADV_CLR_HUGEPAGE resets both these flags and allows managing THP in > the region according to system-wide settings. Seems reasonable. But could you describe an use-case when it's useful in real world. And the name is bad. But I don't have better suggestion. At least do not abbreviate CLEAR. Saving two letters doesn't worth it. Maybe RESET instead? -- Kirill A. Shutemov -- 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/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>