Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7269209imu; Thu, 31 Jan 2019 07:40:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN7GS59Qp/8ERBHpO4pBOQN2f/6NfO4u7JhkgK6ZMeEMYLBumV5cveZawPVZbQvuTr1UcbWQ X-Received: by 2002:a62:7042:: with SMTP id l63mr36747244pfc.89.1548949200012; Thu, 31 Jan 2019 07:40:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548949199; cv=none; d=google.com; s=arc-20160816; b=0jnYPS+XMkFIVfo9O8lye/rmFO48VHc5EhYFxT992hwvzIcLmEvg0hh5odQo0E0Lb2 JLKe98WVXZZpsMc8WK58aWBwaVQRBXWDbgNxHMkQMTq2uf0H9y0fybYvIkiu7+hoeEU9 Ozx52ocJxwgPFDqzax13cDe2W162geFqd1okT+EVfqW+nwLFWkMkS1py0PzDuzomB2AH YSVcKty4EI0a0LBUY9kWEJqBxbW2PmIuYid2hl0GdKPpExJhUenr9XA14W7PG6kfgRjy BkLRQq9UY8BvQWgpuN2k1MMZuEt8PV+qDCmVDD2x1mI+lPM1ZzZG8tmBIY1HP59V1HQ4 ZJ5g== 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=b9V3qNZBACWpigEt36Bu4mxrgN6i2LWDex5NthvzWxE=; b=Vncwl8GDatouKUifTX2I8gGYcfKwJFXYvBMy5NG2rLVbtI9iNN/uEz+zyRrrZFipIm ISBxBGCjZoZXaycDLno2n2iHCSQEuBvIaAU60Mg2d1c05wlXuFc/x3G23xsVuAvSvO79 K+GF+uw7ntpS1u1Gs1R5xc006swWtulQIpW6kE3RYT+WP52nJ7ld4BJbYgsSpcuZINKJ 6l2Ou/CZx9eKcYtUZOPJwE326dzj0FQChLhKwsseXYnuX0wejPggZ6qiCWezrQszDO0+ 8DZpvksQbqDZeWMzjKmt1lGocmbfJxPVeSnDaDrlMZaNAjuCSjcenm3sMljADWdcEUd4 F1gw== 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 j29si4533904pgm.554.2019.01.31.07.39.44; Thu, 31 Jan 2019 07:39:59 -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 S1732849AbfAaPjV (ORCPT + 99 others); Thu, 31 Jan 2019 10:39:21 -0500 Received: from mx2.suse.de ([195.135.220.15]:50270 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726239AbfAaPjV (ORCPT ); Thu, 31 Jan 2019 10:39:21 -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 7C4BEAD5D; Thu, 31 Jan 2019 15:39:20 +0000 (UTC) Subject: Re: [PATCH 20/22] mm, compaction: Sample pageblocks for free pages To: Mel Gorman , Andrew Morton Cc: David Rientjes , Andrea Arcangeli , Linux List Kernel Mailing , Linux-MM References: <20190118175136.31341-1-mgorman@techsingularity.net> <20190118175136.31341-21-mgorman@techsingularity.net> From: Vlastimil Babka Openpgp: preference=signencrypt Message-ID: <919af440-28d2-465b-3414-bb4719b844ae@suse.cz> Date: Thu, 31 Jan 2019 16:39:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190118175136.31341-21-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 1/18/19 6:51 PM, Mel Gorman wrote: > Once fast searching finishes, there is a possibility that the linear > scanner is scanning full blocks found by the fast scanner earlier. This > patch uses an adaptive stride to sample pageblocks for free pages. The > more consecutive full pageblocks encountered, the larger the stride until > a pageblock with free pages is found. The scanners might meet slightly > sooner but it is an acceptable risk given that the search of the free > lists may still encounter the pages and adjust the cached PFN of the free > scanner accordingly. > > 5.0.0-rc1 5.0.0-rc1 > roundrobin-v3r17 samplefree-v3r17 > Amean fault-both-1 0.00 ( 0.00%) 0.00 * 0.00%* > Amean fault-both-3 2752.37 ( 0.00%) 2729.95 ( 0.81%) > Amean fault-both-5 4341.69 ( 0.00%) 4397.80 ( -1.29%) > Amean fault-both-7 6308.75 ( 0.00%) 6097.61 ( 3.35%) > Amean fault-both-12 10241.81 ( 0.00%) 9407.15 ( 8.15%) > Amean fault-both-18 13736.09 ( 0.00%) 10857.63 * 20.96%* > Amean fault-both-24 16853.95 ( 0.00%) 13323.24 * 20.95%* > Amean fault-both-30 15862.61 ( 0.00%) 17345.44 ( -9.35%) > Amean fault-both-32 18450.85 ( 0.00%) 16892.00 ( 8.45%) > > The latency is mildly improved offseting some overhead from earlier > patches that are prerequisites for the rest of the series. However, > a major impact is on the free scan rate with an 82% reduction. > > 5.0.0-rc1 5.0.0-rc1 > roundrobin-v3r17 samplefree-v3r17 > Compaction migrate scanned 21607271 20116887 > Compaction free scanned 95336406 16668703 > > It's also the first time in the series where the number of pages scanned > by the migration scanner is greater than the free scanner due to the > increased search efficiency. > > Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka