Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3807901imu; Tue, 18 Dec 2018 04:38:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/U0VVMxekyPd0iSv+LXxSkYn+vpfXHusfYCLCShPbDOD12vhMZ0o3ZuXSjEgR+TRoTorcHv X-Received: by 2002:a63:1e17:: with SMTP id e23mr15502997pge.130.1545136712348; Tue, 18 Dec 2018 04:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545136712; cv=none; d=google.com; s=arc-20160816; b=CNN/f6au6IH/UKNh/1BzrDzYUHIdEzmxVre+TshzzkyhTMI6rrjownkmzylyEHFioV yL5x/AmjAjW9d/s6pUJGy1xcdXyMjo5uwbdx0943Vnh33Xi3uJBW5PkyWbm6VuhqlmVU E/5hnk9XhmFmSn2WtIjcBYa7+rdRiseNYdDPY7qTucvaHfHPd8nWqMew8oJpz8Ta4GZG 2PzmwsgLeFSz0Ge8+9m3KMEi8bZ6Ao0cZbbe1XHnIt+pUB7ZqhaHLkkpUdOxPoR/tIU+ cI8Ss1dJjMB7D+JStGMqympbI4Mmq1CbzJ70GIHvJzxbSWjY03JMfU44tGjsNpOElbWb TGdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject; bh=2s/x+ZBI7ouHRC0lLZj4BDfxVjuHSDjinNfFxgJGfFo=; b=wkUjwJHrcQr9zjBh/MxYwmO+e9TM8bJkKRJyr9/BIOpKMbZXGAT/1sfnyIaoZ3x3/y jnyQ8NldDFi+TdOwKzp3OEWc1Rz5CXH9kfpC1kQwSWZfYv/wVCdds8FkK7S0SfQHANwi 7qnFuqCFFq77T0RBgCgd2okrrvLxDiq6rWuCByOPcgzCJEHuu8v734lyEU4HAIsXNYSW XAzFrQ8djggMXL45BYg7H18Wh5LqY2S0yVhbextRgNS/3yZBDk51isgLita6vHvgVY1w PFNFBee/qJXlSnMXfr4njVwnEtkBMzDj/LVUJ7zT7dud7MVrjy7m5Jw57Pdd3nLSxxfu Ieqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si13467071pgl.211.2018.12.18.04.38.16; Tue, 18 Dec 2018 04:38:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726589AbeLRMgp (ORCPT + 99 others); Tue, 18 Dec 2018 07:36:45 -0500 Received: from mx2.suse.de ([195.135.220.15]:33524 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726419AbeLRMgp (ORCPT ); Tue, 18 Dec 2018 07:36:45 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 5C7A9B03A; Tue, 18 Dec 2018 12:36:43 +0000 (UTC) Subject: Re: [PATCH 09/14] mm, compaction: Ignore the fragmentation avoidance boost for isolation and compaction To: Mel Gorman , Linux-MM Cc: David Rientjes , Andrea Arcangeli , Linus Torvalds , Michal Hocko , ying.huang@intel.com, kirill@shutemov.name, Andrew Morton , Linux List Kernel Mailing References: <20181214230310.572-1-mgorman@techsingularity.net> <20181214230310.572-10-mgorman@techsingularity.net> From: Vlastimil Babka Openpgp: preference=signencrypt Message-ID: Date: Tue, 18 Dec 2018 13:36:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <20181214230310.572-10-mgorman@techsingularity.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/15/18 12:03 AM, Mel Gorman wrote: > When pageblocks get fragmented, watermarks are artifically boosted to pages > are reclaimed to avoid further fragmentation events. However, compaction > is often either fragmentation-neutral or moving movable pages away from > unmovable/reclaimable pages. As the actual watermarks are preserved, > allow compaction to ignore the boost factor. Right, I should have realized that when reviewing the boost patch. I think it would be useful to do the same change in __compaction_suitable() as well. Compaction has its own "gap". > 1-socket thpscale > 4.20.0-rc6 4.20.0-rc6 > finishscan-v1r4 noboost-v1r4 > Amean fault-both-1 0.00 ( 0.00%) 0.00 * 0.00%* > Amean fault-both-3 3849.90 ( 0.00%) 3753.53 ( 2.50%) > Amean fault-both-5 5054.13 ( 0.00%) 5396.32 ( -6.77%) > Amean fault-both-7 7061.77 ( 0.00%) 7393.46 ( -4.70%) > Amean fault-both-12 11560.59 ( 0.00%) 12155.50 ( -5.15%) > Amean fault-both-18 16120.15 ( 0.00%) 16445.96 ( -2.02%) > Amean fault-both-24 19804.31 ( 0.00%) 20465.03 ( -3.34%) > Amean fault-both-30 25018.73 ( 0.00%) 20813.54 * 16.81%* > Amean fault-both-32 24380.19 ( 0.00%) 22384.02 ( 8.19%) > > The impact on the scan rates is a mixed bag because this patch is very > sensitive to timing and whether the boost was active or not. However, > detailed tracing indicated that failure of migration due to a premature > ENOMEM triggered by watermark checks were eliminated. > > Signed-off-by: Mel Gorman > --- > mm/page_alloc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 80535cd55a92..c7b80e62bfd9 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -3043,7 +3043,7 @@ int __isolate_free_page(struct page *page, unsigned int order) > * watermark, because we already know our high-order page > * exists. > */ > - watermark = min_wmark_pages(zone) + (1UL << order); > + watermark = zone->_watermark[WMARK_MIN] + (1UL << order); > if (!zone_watermark_ok(zone, 0, watermark, 0, ALLOC_CMA)) > return 0; > >