Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp315897pxj; Thu, 3 Jun 2021 07:25:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh9Fc84PDgueoeqcOq14H2o61ZCUgff+WYXD5JeI0jYREjbivEVVNZInWXbyDXPJgTyqJI X-Received: by 2002:a17:906:f298:: with SMTP id gu24mr20591513ejb.452.1622730318991; Thu, 03 Jun 2021 07:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622730318; cv=none; d=google.com; s=arc-20160816; b=q/Kvw6HUc/X6o8DHEhr91w0K9HnIpgNqRNoHqwzTV2I6POB/iFsUnmoWBUWUvs8QsO iyw7nflmbWgj4EPfQ4lYZKgBio7JeCWS5ty1iNfsStW+dhcB5yxmqbKrt0eAl/atZboL 6LRYZQO5BxBNPyuOc0Jk3uTKgslq4ho2ymrGbkxtbDhFMnJl+Js0Z2Krl77ztLruccMY sgP8POiR21vUxKhZ6lgxN8yYYcwqsytT8sRaGP2grDX5av/QwT+LVIShnt1ttJLewOQ/ 9L5mYv0wxuEg3LMZQtXFdfpmAAegcX44bWY4bj0LPL5dQVZ7cVk2Rr4m+3mQ08OU5yGF nCaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rY1zqrkYy2FhyYw99N7NPrY/CFM+b3TCLEDqMOwih68=; b=MeP5mHGynzBeQMrQfBhkH4+7QSZDdglr9t91BgHQTqcWg4//oylxITHiOfm/hpgxEx S0TPvaO/win3pj+2MzIRSQqzf0dCloHHWaiOUCMzstpEZcZuGobX7uOHt5bvxVXx5nMz +HpI3mJfDiKibXfv8gN/4qaJGp9BT/YdSZjwRE2UTdRDJEHrpXmAQ/8nvsIlngjTeY3q eOYxPxK29XRBd2s3nxGiDNLh2GqiahJxGnXsGBlq3nHhgvLJKgP0JoM+FjGKvRGV5hz4 nPRwjN5QvTNbZnoHP9RWR3NmEiw8CbNTGh9ohagT6gMbYFzXTXa3h1W4PODWLzNen7nw TYeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si2183583edd.545.2021.06.03.07.24.55; Thu, 03 Jun 2021 07:25:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230396AbhFCOYR (ORCPT + 99 others); Thu, 3 Jun 2021 10:24:17 -0400 Received: from outbound-smtp50.blacknight.com ([46.22.136.234]:33135 "EHLO outbound-smtp50.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbhFCOYR (ORCPT ); Thu, 3 Jun 2021 10:24:17 -0400 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp50.blacknight.com (Postfix) with ESMTPS id 77F82FAAA2 for ; Thu, 3 Jun 2021 15:22:31 +0100 (IST) Received: (qmail 27887 invoked from network); 3 Jun 2021 14:22:30 -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 14:22:30 -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 v2 Date: Thu, 3 Jun 2021 15:22:18 +0100 Message-Id: <20210603142220.10851-1-mgorman@techsingularity.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changelog since v1 o Better comments and macros (vbabka) o Fix pindex_to_order (vbabka) 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-pcphighorder-v2r1 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(-) -- 2.26.2