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=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 42385C47082 for ; Thu, 3 Jun 2021 08:46:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B9E7A613DA for ; Thu, 3 Jun 2021 08:46:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B9E7A613DA 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 410F56B006C; Thu, 3 Jun 2021 04:46:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 399606B006E; Thu, 3 Jun 2021 04:46:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 23B416B0070; Thu, 3 Jun 2021 04:46:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0136.hostedemail.com [216.40.44.136]) by kanga.kvack.org (Postfix) with ESMTP id E23436B006C for ; Thu, 3 Jun 2021 04:46:34 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 85EF2EFBC for ; Thu, 3 Jun 2021 08:46:34 +0000 (UTC) X-FDA: 78211781508.13.EBD3BDA Received: from outbound-smtp38.blacknight.com (outbound-smtp38.blacknight.com [46.22.139.221]) by imf20.hostedemail.com (Postfix) with ESMTP id BB1D236D for ; Thu, 3 Jun 2021 08:46:15 +0000 (UTC) Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp38.blacknight.com (Postfix) with ESMTPS id 14C7D1C8D for ; Thu, 3 Jun 2021 09:46:32 +0100 (IST) Received: (qmail 7428 invoked from network); 3 Jun 2021 08:46:31 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.17.255]) by 81.17.254.9 with ESMTPA; 3 Jun 2021 08:46:31 -0000 From: Mel Gorman To: Andrew Morton Cc: Dave Hansen , Vlastimil Babka , Michal Hocko , Jesper Dangaard Brouer , LKML , Linux-MM , Mel Gorman Subject: [PATCH 0/2] Allow high order pages to be stored on PCP Date: Thu, 3 Jun 2021 09:46:19 +0100 Message-Id: <20210603084621.24109-1-mgorman@techsingularity.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Rspamd-Queue-Id: BB1D236D Authentication-Results: imf20.hostedemail.com; dkim=none; spf=pass (imf20.hostedemail.com: domain of mgorman@techsingularity.net designates 46.22.139.221 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net; dmarc=none X-Rspamd-Server: rspam03 X-Stat-Signature: gfirnkwe6wrwcnzgm6njshamozurbdzk X-HE-Tag: 1622709975-823492 Content-Transfer-Encoding: quoted-printable 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: The per-cpu page allocator (PCP) only handles order-0 pages. With the series "Use local_lock for pcp protection and reduce stat overhead" and "Calculate pcp->high based on zone sizes and active CPUs", it's now feasible to store high-order pages on PCP lists. This small series allows PCP to store "cheap" orders where cheap is determined by PAGE_ALLOC_COSTLY_ORDER and THP-sized allocations. For convenience, the series with the prerequisites are at git://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git mm-pcphighord= er-v1r7 The baseline is 5.13-rc2 because that is what I tested with but the patches rebase cleanly to mmots. include/linux/mmzone.h | 20 ++++- mm/internal.h | 2 +- mm/page_alloc.c | 171 +++++++++++++++++++++++++++++------------ mm/swap.c | 2 +- 4 files changed, 141 insertions(+), 54 deletions(-) --=20 2.26.2