From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Hocko Subject: Re: [PATCH] mm: introduce MADV_CLR_HUGEPAGE Date: Tue, 30 May 2017 09:44:08 +0200 Message-ID: <20170530074408.GA7969@dhcp22.suse.cz> References: <20170522114243.2wrdbncilozygbpl@node.shutemov.name> <20170522133559.GE27382@rapoport-lnx> <20170522135548.GA8514@dhcp22.suse.cz> <20170522142927.GG27382@rapoport-lnx> <20170524075043.GB3063@rapoport-lnx> <20170524103947.GC3063@rapoport-lnx> <20170524111800.GD14733@dhcp22.suse.cz> <20170524142735.GF3063@rapoport-lnx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20170524142735.GF3063@rapoport-lnx> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Mike Rapoport Cc: Vlastimil Babka , "Kirill A. Shutemov" , Andrew Morton , Arnd Bergmann , "Kirill A. Shutemov" , Andrea Arcangeli , Pavel Emelyanov , linux-mm , lkml , Linux API List-Id: linux-api@vger.kernel.org On Wed 24-05-17 17:27:36, Mike Rapoport wrote: > On Wed, May 24, 2017 at 01:18:00PM +0200, Michal Hocko wrote: [...] > > Why cannot khugepaged simply skip over all VMAs which have userfault > > regions registered? This would sound like a less error prone approach to > > me. > > khugepaged does skip over VMAs which have userfault. We could register the > regions with userfault before populating them to avoid collapses in the > transition period. Why cannot you register only post-copy regions and "manually" copy the pre-copy parts? > But then we'll have to populate these regions with > UFFDIO_COPY which adds quite an overhead. How big is the performance impact? -- Michal Hocko SUSE Labs