Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1736442ybg; Sat, 19 Oct 2019 01:23:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4oPFRYdZjgPPjpNUFVIyBEfgRmW3GUMnsSn3Y8OUOVIRLozQxzA9bVhNFmq4u6lAl2+UX X-Received: by 2002:aa7:d8c7:: with SMTP id k7mr13941838eds.138.1571473412443; Sat, 19 Oct 2019 01:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473412; cv=none; d=google.com; s=arc-20160816; b=0vDpv3sHtZp6xivFKfcAI8BTB7HNGQgLFX+gVbQDHjWGze6xquTAZcblPu/sLDm4Af q1aGb2g7vEKM3M1SmreijsHUEw9kSpLfbjMTuvCQ0nXB/YZRDjD8bqLCHEh5uNqsRM7a A7BNh6xvRw/QhryFHdaABwAYPOdUQoM1VYAPPdm8oeRPnMLOquZAI3li1IbejevJL9wI 2XFFvgqymZjKSNarV3vAkYUwxKSF9s1jhpYIb6oP3jSW14QoDJzE611NlrhLFigDHEUO TtCIaTbYfVj2F28ZcTCcKg53EJEZuTVQsvH0XYuH6DvKf2H+ZDjjergSzDFbSwXM5Rj5 GqYw== 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=Xz0BD+c0+mv7EJuWByNmUbZbD4W61jdoAD2qaXGxXPc=; b=BItsETmW7Pj1rqP6oeZoDRVuoA/6TU1E2Q7doiJXyCPlgVQH3jeW4+5O6yeAyXhaRL i7YHlrSJRJJdxMdrtvikcjAWSZ5JIruyP0vgOjJzcaN8bsA4cKYmaBu6w2YRlWrRw0N3 dSG1A3pUnQHSQtipw/cKhQpcufFI2O8lnt5zo50Kkr5wmLt1odUqYtzHUGf90NN7m8dz Uy1UtfFdNGhQWCXtJzf2kL0l3wQX+T1OsF2X3ikwaA7h63HSMaQUPLVcRP1CxMvfvKvW MoaVKN72ouS1On69KlXMLcur3jUmvd/R/do7Ulb6MJ+a/GbanQgR0GOH5/UodRG021/1 G44g== 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 v53si5730735edc.378.2019.10.19.01.23.09; Sat, 19 Oct 2019 01:23:32 -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; 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 S2410124AbfJRMyy (ORCPT + 99 others); Fri, 18 Oct 2019 08:54:54 -0400 Received: from outbound-smtp02.blacknight.com ([81.17.249.8]:49182 "EHLO outbound-smtp02.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727993AbfJRMyy (ORCPT ); Fri, 18 Oct 2019 08:54:54 -0400 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp02.blacknight.com (Postfix) with ESMTPS id DE62698C34 for ; Fri, 18 Oct 2019 13:54:51 +0100 (IST) Received: (qmail 7074 invoked from network); 18 Oct 2019 12:54:51 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.19.210]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 18 Oct 2019 12:54:51 -0000 Date: Fri, 18 Oct 2019 13:54:49 +0100 From: Mel Gorman To: Matt Fleming 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: <20191018125449.GJ3321@techsingularity.net> References: <20191018105606.3249-1-mgorman@techsingularity.net> <20191018115849.GH4065@codeblueprint.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20191018115849.GH4065@codeblueprint.co.uk> 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 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? -- Mel Gorman SUSE Labs