From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id F18236B0279 for ; Tue, 30 May 2017 00:26:14 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id y65so81763564pff.13 for ; Mon, 29 May 2017 21:26:14 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id x13sor656849plm.2.2017.05.29.21.26.14 for (Google Transport Security); Mon, 29 May 2017 21:26:14 -0700 (PDT) Date: Mon, 29 May 2017 21:26:12 -0700 (PDT) From: David Rientjes Subject: Re: [PATCH v2] mm: introduce MADV_RESET_HUGEPAGE In-Reply-To: <1496035924-27251-1-git-send-email-rppt@linux.vnet.ibm.com> Message-ID: References: <1496035924-27251-1-git-send-email-rppt@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Mike Rapoport Cc: Andrew Morton , Arnd Bergmann , "Kirill A. Shutemov" , Andrea Arcangeli , Michal Hocko , Vlastimil Babka , linux-mm , linux-api , lkml On Mon, 29 May 2017, 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_RESET_HUGEPAGE resets both these flags and allows managing THP in > the region according to system-wide settings. > > Signed-off-by: Mike Rapoport > Acked-by: Kirill A. Shutemov I feel like we may be losing some information from the v1 thread regarding the usecase. Would it be possible to add something to the changelog to describe what will use this? -- 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-mm.org/ . Don't email: email@kvack.org