Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754439AbaG2Xvm (ORCPT ); Tue, 29 Jul 2014 19:51:42 -0400 Received: from mail-ie0-f179.google.com ([209.85.223.179]:39137 "EHLO mail-ie0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751811AbaG2Xvl (ORCPT ); Tue, 29 Jul 2014 19:51:41 -0400 Date: Tue, 29 Jul 2014 16:51:38 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: "Kirill A. Shutemov" cc: Vlastimil Babka , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Minchan Kim , Joonsoo Kim , Michal Nazarewicz , Naoya Horiguchi , Christoph Lameter , Rik van Riel , Mel Gorman , Zhang Yanfei Subject: Re: [PATCH v5 05/14] mm, compaction: move pageblock checks up from isolate_migratepages_range() In-Reply-To: <20140729232142.GB17685@node.dhcp.inet.fi> Message-ID: References: <1406553101-29326-1-git-send-email-vbabka@suse.cz> <1406553101-29326-6-git-send-email-vbabka@suse.cz> <53D7690D.5070307@suse.cz> <20140729232142.GB17685@node.dhcp.inet.fi> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 30 Jul 2014, Kirill A. Shutemov wrote: > > Hmm, I'm confused at how that could be true, could you explain what > > memory other than thp can return true for PageTransHuge()? > > PageTransHuge() will be true for any head of compound page if THP is > enabled compile time: hugetlbfs, slab, whatever. > I was meaning in the context of the patch :) Since PageLRU is set, that discounts slab so we're left with thp or hugetlbfs. Logically, both should have sizes that are >= the size of the pageblock itself so I'm not sure why we don't unconditionally align up to pageblock_nr_pages here. Is there a legitimiate configuration where a pageblock will span multiple pages of HPAGE_PMD_ORDER? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/