From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752597AbbC2Rv7 (ORCPT ); Sun, 29 Mar 2015 13:51:59 -0400 Received: from mta-out1.inet.fi ([62.71.2.227]:40756 "EHLO kirsi1.inet.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752351AbbC2Rv5 (ORCPT ); Sun, 29 Mar 2015 13:51:57 -0400 Date: Sun, 29 Mar 2015 20:51:38 +0300 From: "Kirill A. Shutemov" To: "Aneesh Kumar K.V" Cc: "Kirill A. Shutemov" , Andrew Morton , Andrea Arcangeli , Dave Hansen , Hugh Dickins , Mel Gorman , Rik van Riel , Vlastimil Babka , Christoph Lameter , Naoya Horiguchi , Steve Capper , Johannes Weiner , Michal Hocko , Jerome Marchand , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCHv4 15/24] mm, thp: remove infrastructure for handling splitting PMDs Message-ID: <20150329175138.GC976@node.dhcp.inet.fi> References: <1425486792-93161-1-git-send-email-kirill.shutemov@linux.intel.com> <1425486792-93161-16-git-send-email-kirill.shutemov@linux.intel.com> <87bnjbn5sw.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bnjbn5sw.fsf@linux.vnet.ibm.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 29, 2015 at 09:40:07PM +0530, Aneesh Kumar K.V wrote: > "Kirill A. Shutemov" writes: > > > With new refcounting we don't need to mark PMDs splitting. Let's drop code > > to handle this. > > > > Arch-specific code will removed separately. > > > > Can you explain this more ? Why we don't care of PMD splitting case even > w.r.t to split_huge_page() ? It used to be required to keep kernel from updating page refcounts while we splitting the page. Now with split_huge_pmd() we can split one PMD a time without blocking refcounting. Once all PMDs split we can freeze the page's refcounts with compound lock[1] and split underlying compound page. [1] compound lock is replaced with migration entries by the end of the patchset. -- Kirill A. Shutemov