From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AC26C47E49 for ; Mon, 21 Oct 2019 09:48:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E82BE21479 for ; Mon, 21 Oct 2019 09:48:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E82BE21479 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=techsingularity.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 82F3C6B0006; Mon, 21 Oct 2019 05:48:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7DF5E6B0007; Mon, 21 Oct 2019 05:48:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6CDC56B0008; Mon, 21 Oct 2019 05:48:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0001.hostedemail.com [216.40.44.1]) by kanga.kvack.org (Postfix) with ESMTP id 4A2A16B0006 for ; Mon, 21 Oct 2019 05:48:13 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id A4ACD6C36 for ; Mon, 21 Oct 2019 09:48:12 +0000 (UTC) X-FDA: 76067316024.16.house71_2a7e973e2f80c X-HE-Tag: house71_2a7e973e2f80c X-Filterd-Recvd-Size: 2498 Received: from outbound-smtp16.blacknight.com (outbound-smtp16.blacknight.com [46.22.139.233]) by imf39.hostedemail.com (Postfix) with ESMTP for ; Mon, 21 Oct 2019 09:48:11 +0000 (UTC) Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp16.blacknight.com (Postfix) with ESMTPS id 2628B1C2730 for ; Mon, 21 Oct 2019 10:48:10 +0100 (IST) Received: (qmail 32540 invoked from network); 21 Oct 2019 09:48:10 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.19.210]) by 81.17.254.9 with ESMTPA; 21 Oct 2019 09:48:09 -0000 From: Mel Gorman To: Andrew Morton Cc: Michal Hocko , Vlastimil Babka , Thomas Gleixner , Matt Fleming , Borislav Petkov , Linux-MM , Linux Kernel Mailing List , Mel Gorman Subject: [PATCH 0/3] Recalculate per-cpu page allocator batch and high limits after deferred meminit v2 Date: Mon, 21 Oct 2019 10:48:05 +0100 Message-Id: <20191021094808.28824-1-mgorman@techsingularity.net> X-Mailer: git-send-email 2.16.4 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This is an updated series that addresses some review feedback and an LKP warning. I did not preserve Michal Hocko's ack for the fix as it has changed. This series replaces the following patches in mmotm mm-pcp-share-common-code-between-memory-hotplug-and-percpu-sysctl-handler.patch mm-meminit-recalculate-pcpu-batch-and-high-limits-after-init-completes.patch mm-pcpu-make-zone-pcp-updates-and-reset-internal-to-the-mm.patch Changelog since V1 o Fix a "might sleep" warning o Reorder for easier backporting 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 the real fix and the other two are cosmetic issues noticed while implementing the fix. include/linux/mm.h | 3 --- mm/internal.h | 3 +++ mm/page_alloc.c | 31 ++++++++++++++++++++----------- 3 files changed, 23 insertions(+), 14 deletions(-) -- 2.16.4