Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3659720imu; Tue, 18 Dec 2018 01:57:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/UMmogt+H6n/HMCCqqleoXMzNZLu4tyGVqhkRUX1gNX3vbaNVZWSMOVrp6BgPKT2YjAQMAU X-Received: by 2002:a63:151f:: with SMTP id v31mr2274247pgl.34.1545127054837; Tue, 18 Dec 2018 01:57:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545127054; cv=none; d=google.com; s=arc-20160816; b=w4+MuYwU7kJCtnRb47I4qz/sPdoR4qirKXmOSmMJM8rKa2HAL05aJLd8vjQLJePPMQ t/L1FcLkypQKJkqu1GhOUL3+5YooOiXp9Kl7wEQrxA16wlH+18TCJtrUN13Q6ZkNBZPU XOs4O7viC4doMlGs1lVz3o0JVlQvICFNr8Ek70iTAZriLzVil5ucWnwCPkp4KKAcmnJj vtuIBuI2FTvyEoonELsFHIkh+VRI9YHNIQjlvxRj2iv2g+nwDT2GGqzbSRaAJcOlyKe1 3T4cJRRxHRs/k2ag+ikx3kVobI+NGiqrM2UbVvQXNOQ498+46Q7hbmyzTcXGJkY+98mD 4ovw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JH5FvQeVDOihVluu8Yv3jz210iEJPwaVAOmwp0ysFKU=; b=Jehcq3i/Su9XtoXHlHwh3hM96mbirllu/hLROLxk0CVDprRjban9S+v8YAos/dDAi6 aUjaFFCy5iREPx451Mr33IlZ13N1pIuOK4fCSDg0tdWhu6zdLmY8V3mFBmZznj4ZxJOO rysZMO61MgVtXgsIjF5UVlXp4l2udBgVU6kOWnNi97lOXmvjaExmRjDHrJrWeBmvEIBB gAOpZ7poxazFy3XMgMsF3aXz1qO9Y00wuU1HouHL80++86vHvIaPaM2UGmc2oH2IKbKd DVh7OyODRR2RG6l/tbcP13AbFGRJlyTvOusc9hNF/6J5sOS33meHPt3ZX3bLWKD8USut TqNw== 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 37si12879008plv.243.2018.12.18.01.57.20; Tue, 18 Dec 2018 01:57:34 -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 S1726486AbeLRJzP (ORCPT + 99 others); Tue, 18 Dec 2018 04:55:15 -0500 Received: from outbound-smtp12.blacknight.com ([46.22.139.17]:42734 "EHLO outbound-smtp12.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726397AbeLRJzO (ORCPT ); Tue, 18 Dec 2018 04:55:14 -0500 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp12.blacknight.com (Postfix) with ESMTPS id 6AB6B1C2222 for ; Tue, 18 Dec 2018 09:55:12 +0000 (GMT) Received: (qmail 17620 invoked from network); 18 Dec 2018 09:55:12 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[37.228.229.96]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 18 Dec 2018 09:55:12 -0000 Date: Tue, 18 Dec 2018 09:55:10 +0000 From: Mel Gorman To: Vlastimil Babka Cc: Linux-MM , David Rientjes , Andrea Arcangeli , Linus Torvalds , Michal Hocko , ying.huang@intel.com, kirill@shutemov.name, Andrew Morton , Linux List Kernel Mailing Subject: Re: [PATCH 06/14] mm, migrate: Immediately fail migration of a page with no migration handler Message-ID: <20181218095510.GJ29005@techsingularity.net> References: <20181214230310.572-1-mgorman@techsingularity.net> <20181214230310.572-7-mgorman@techsingularity.net> <0ef5c1d0-1853-8fdb-1a68-7482297cb802@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <0ef5c1d0-1853-8fdb-1a68-7482297cb802@suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 18, 2018 at 10:06:31AM +0100, Vlastimil Babka wrote: > On 12/15/18 12:03 AM, Mel Gorman wrote: > > Pages with no migration handler use a fallback hander which sometimes > > works and sometimes persistently fails such as blockdev pages. Migration > > will retry a number of times on these persistent pages which is wasteful > > during compaction. This patch will fail migration immediately unless the > > caller is in MIGRATE_SYNC mode which indicates the caller is willing to > > wait while being persistent. > > Right. > > > This is not expected to help THP allocation success rates but it does > > reduce latencies slightly. > > > > 1-socket thpfioscale > > 4.20.0-rc6 4.20.0-rc6 > > noreserved-v1r4 failfast-v1r4 > > Amean fault-both-1 0.00 ( 0.00%) 0.00 * 0.00%* > > Amean fault-both-3 2276.15 ( 0.00%) 3867.54 * -69.92%* > > This is rather weird. > Fault latency is extremely variable and there can be very large outliers that skew the mean (the full report includes quartiles but it makes for an excessive changelog). It can be down to luck about how often the migrate scanner advances and how often it gets reset. For this series, it'll not be unusual to see jitter in the latencies for individual patches that will not get nailed down reliably until later in the series. The alternative is massive patches that do multiple things which will look nice in changelogs and be horrible to review. > > Amean fault-both-5 4992.20 ( 0.00%) 5313.20 ( -6.43%) > > Amean fault-both-7 7373.30 ( 0.00%) 7039.11 ( 4.53%) > > Amean fault-both-12 11911.52 ( 0.00%) 11328.29 ( 4.90%) > > Amean fault-both-18 17209.42 ( 0.00%) 16455.34 ( 4.38%) > > Amean fault-both-24 20943.71 ( 0.00%) 20448.94 ( 2.36%) > > Amean fault-both-30 22703.00 ( 0.00%) 21655.07 ( 4.62%) > > Amean fault-both-32 22461.41 ( 0.00%) 21415.35 ( 4.66%) > > > > The 2-socket results are not materially different. Scan rates are > > similar as expected. > > > > Signed-off-by: Mel Gorman > > Acked-by: Vlastimil Babka > Thanks. -- Mel Gorman SUSE Labs