Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1742830ybg; Sat, 19 Oct 2019 01:32:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXdVwFUOUYh/ndpQDX2bN6kGUlBzoFfeJ60u6qkLOtsDdeNtzMHYylmwUQrkukkJhDXUmW X-Received: by 2002:a05:6402:2028:: with SMTP id ay8mr13890544edb.273.1571473938555; Sat, 19 Oct 2019 01:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473938; cv=none; d=google.com; s=arc-20160816; b=DeCinFGyP3lRqI+SAhEbW/SKw9O6OZ2z0Asc1Bcw1O5PFyvIDX7L7ARI7Uhol18Yli 5bLyMsKp1eQR1TBTFyoLUFtQKVFoYswQOSOeZHjC5XEO7K5p5thMqRxnQGvQ/qgvmnmp Xv4AsZzV9xkpeuh6wDaWxBHtydq1bfhXdAHxlXdtHOa+tU6SA9G/m7eiLsPX92/Nkc5X S1Ex1mxlFN6UtQtwxL2wkbnUdfsIjUDsM1/0daA0ksUBcJexVvAPZOsr/FLdffKDhkvq Ixe1uXs7Pi/RQKAwu1NomsIGYEtwsZR33icqRjiaPkMaWRcqbsEfsEABqa/6gDc6Ubmb Jkrw== 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:dkim-signature; bh=ZPMR7fELUyaaR1SCfz3L2Xbka0mvOZ72DEuGj3/RI2w=; b=r+YTPWy15mgGPSXpbzRRifKelrTIEzAkyv7vN5f4Jik3ToYiOpFx3O0jRHlgcL2yr+ KXARtAvmz4bzZdH63avJfdVvF8kA8mwDlfMT2ZKnnzHeuVV/s/CkknbK/RtLY7uzt5F2 DqZJEQGU3POp0e1WmCSjoyMaIohk0AV2wTfMTJhw4MRNrwJ4VzUMWpRwzphHnyW3c9TJ 7l+DWkb6xdKv+525EZI0cfmQVQW3IK5i1t8pOmBihSX2OH2onMGLB+f8TFmYh9Rwr90Y J3uKoZwjLDmT4C9MouvZTHJ3Qwgo34SRjTlhJADneXk1/tP6sogq2G5E35W639Bn69g7 z5/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeblueprint-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=hdKBeJOF; 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 w6si5010204ejf.8.2019.10.19.01.31.55; Sat, 19 Oct 2019 01:32:18 -0700 (PDT) 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; dkim=pass header.i=@codeblueprint-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=hdKBeJOF; 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 S2410411AbfJROs2 (ORCPT + 99 others); Fri, 18 Oct 2019 10:48:28 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43981 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389365AbfJROs2 (ORCPT ); Fri, 18 Oct 2019 10:48:28 -0400 Received: by mail-wr1-f67.google.com with SMTP id c2so1333294wrr.10 for ; Fri, 18 Oct 2019 07:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeblueprint-co-uk.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZPMR7fELUyaaR1SCfz3L2Xbka0mvOZ72DEuGj3/RI2w=; b=hdKBeJOFMgcZ2K3egqHxgsOX6HKzfDlcjGvdJAhytJp1VBC6RoraWwRXKKQIzGiH74 0469dFYMx9wgfqpnrBHhqJ3PGfNiphU54VWFyt0bTGC0EasKSyizTmm9FSfRMhS4HROr ELT8aqD4BfZe63JrbY7t799h3pblhTacGWL55hk0B+7/mPn4VBR2I+547AaCPmCLdWkZ eTeUAwY7AD3nIkO4UGTyX0ShFBakEkYdBG+YzdTOmxNapd9ByXhlsRzrNNz8SplDpNUO DoDPBi1jlBdb5SXcQze4sA/GWJ9R5t/9sx2wI9NJJqCwajbapUKbdRWbGqVgI8Lcds4s 5owQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZPMR7fELUyaaR1SCfz3L2Xbka0mvOZ72DEuGj3/RI2w=; b=d9GzzPlfRd9xNA0Q2CXuWIJIRrWZyrrowgSaTVObAstjdIEN0pL9KYw5ybsoX+S5aQ oZfGbWvHlngcfDlf6sMGH/4BF2PZSqTdyRKZsDT7vh5FnHT6sr2GJyyoGZBpepZIHjjf CaGzBVieexcOPY1phu9/wSZexnbu4CyYsG+gF7yI4TAJJoW5TX/GS0gSr3fnIYVFjdTd irz096OLbpw3+7W2aCskLExHL+Lhg5UZAF08AgPO/iIHkIDVqlNrtt40k0cuWM4mG11w jO+JFhsOmxWITOQP2jBqDbgI9bNdldZEtSCbTgfLUigTgWzOxQDlPrVWfiHJ3K8CSE98 I3Wg== X-Gm-Message-State: APjAAAWuC6zJaX3SL++xqFIvoYOJntosqNigGBOQXhttsyUc8xyUgjII 40+/OxhvObrpnX/IAdcC6JusnQ== X-Received: by 2002:adf:e747:: with SMTP id c7mr8183157wrn.384.1571410106491; Fri, 18 Oct 2019 07:48:26 -0700 (PDT) Received: from localhost (97e34ace.skybroadband.com. [151.227.74.206]) by smtp.gmail.com with ESMTPSA id u26sm5916793wrd.87.2019.10.18.07.48.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2019 07:48:25 -0700 (PDT) Date: Fri, 18 Oct 2019 15:48:24 +0100 From: Matt Fleming To: Mel Gorman Cc: Andrew Morton , Michal Hocko , Vlastimil Babka , Thomas Gleixner , Borislav Petkov , Linux-MM , Linux Kernel Mailing List Subject: Re: [PATCH 0/3] Recalculate per-cpu page allocator batch and high limits after deferred meminit Message-ID: <20191018144824.GI4065@codeblueprint.co.uk> References: <20191018105606.3249-1-mgorman@techsingularity.net> <20191018115849.GH4065@codeblueprint.co.uk> <20191018125449.GJ3321@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191018125449.GJ3321@techsingularity.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Oct, at 01:54:49PM, Mel Gorman wrote: > On Fri, Oct 18, 2019 at 12:58:49PM +0100, Matt Fleming wrote: > > On Fri, 18 Oct, at 11:56:03AM, Mel Gorman wrote: > > > A private report stated that system CPU usage was excessive on an AMD > > > EPYC 2 machine while building kernels with much longer build times than > > > expected. The issue is partially explained by high zone lock contention > > > due to the per-cpu page allocator batch and high limits being calculated > > > incorrectly. This series addresses a large chunk of the problem. Patch 1 > > > is mostly cosmetic but prepares for patch 2 which is the real fix. Patch > > > 3 is definiely cosmetic but was noticed while implementing the fix. Proper > > > details are in the changelog for patch 2. > > > > > > include/linux/mm.h | 3 --- > > > mm/internal.h | 3 +++ > > > mm/page_alloc.c | 33 ++++++++++++++++++++------------- > > > 3 files changed, 23 insertions(+), 16 deletions(-) > > > > Just to confirm, these patches don't fix the issue we're seeing on the > > EPYC 2 machines, but they do return the batch sizes to sensible values. > > To be clear, does the patch a) fix *some* of the issue and there is > something else also going on that needs to be chased down or b) has no > impact on build time or system CPU usage on your machine? Sorry, I realise my email was pretty unclear. These patches *do* fix some of the issue because I no longer see as much contention on the zone locks with the patches applied.