From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752110AbdIKBNi (ORCPT ); Sun, 10 Sep 2017 21:13:38 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:34463 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751855AbdIKBNh (ORCPT ); Sun, 10 Sep 2017 21:13:37 -0400 X-Google-Smtp-Source: ADKCNb7VCJV2EcxfPJbJLkwYZZVgbl1XgC6XpD9V7tGYmIZz3vdEXFDzL4EtbrEGNHIKMxZLXFxRpQ== Date: Sun, 10 Sep 2017 18:13:35 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Vlastimil Babka cc: Andrew Morton , Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Joonsoo Kim Subject: Re: [patch 2/2] mm, compaction: persistently skip hugetlbfs pageblocks In-Reply-To: <74a33b7b-0586-c08a-cb2e-1c3d2872815d@suse.cz> Message-ID: References: <74a33b7b-0586-c08a-cb2e-1c3d2872815d@suse.cz> User-Agent: Alpine 2.10 (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 Fri, 1 Sep 2017, Vlastimil Babka wrote: > The pageblock_skip_persistent() function checks for HugeTLB pages of pageblock > order. When clearing pageblock skip bits for compaction, the bits are not > cleared for such pageblocks, because they cannot contain base pages suitable > for migration, nor free pages to use as migration targets. > > This optimization can be simply extended to all compound pages of order equal > or larger than pageblock order, because migrating such pages (if they support > it) cannot help sub-pageblock fragmentation. This includes THP's and also > gigantic HugeTLB pages, which the current implementation doesn't persistently > skip due to a strict pageblock_order equality check and not recognizing tail > pages. > > Additionally, this patch removes the pageblock_skip_persistent() calls from > migration and free scanner, since the generic compound page treatment together > with update_pageblock_skip() call will also lead to pageblocks starting with a > large enough compound page being immediately marked for skipping, which then > becomes persistent. > As mentioned in my other two emails, I'm not sure that persistently skipping thp memory is necessary and I disagree that we should not be persistently skipping pageblocks when cc->ignore_skip_hint is true.