[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1655242024.git.tim.c.chen@linux.intel.com>
Date: Tue, 14 Jun 2022 15:25:32 -0700
From: Tim Chen <tim.c.chen@...ux.intel.com>
To: linux-mm@...ck.org, akpm@...ux-foundation.org
Cc: Tim Chen <tim.c.chen@...ux.intel.com>, Wei Xu <weixugc@...gle.com>,
Huang Ying <ying.huang@...el.com>,
Greg Thelen <gthelen@...gle.com>,
Yang Shi <shy828301@...il.com>,
Davidlohr Bueso <dave@...olabs.net>,
Brice Goglin <brice.goglin@...il.com>,
Michal Hocko <mhocko@...nel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Hesham Almatary <hesham.almatary@...wei.com>,
Dave Hansen <dave.hansen@...el.com>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Alistair Popple <apopple@...dia.com>,
Dan Williams <dan.j.williams@...el.com>,
Feng Tang <feng.tang@...el.com>,
Jagdish Gediya <jvgediya@...ux.ibm.com>,
Baolin Wang <baolin.wang@...ux.alibaba.com>,
David Rientjes <rientjes@...gle.com>,
"Aneesh Kumar K . V" <aneesh.kumar@...ux.ibm.com>,
Shakeel Butt <shakeelb@...gle.com>
Subject: [RFC PATCH 0/3] Cgroup accounting of memory tier usage
For controlling usage of a top tiered memory by a cgroup, accounting
of top tier memory usage is needed. This patch set implements the
following:
Patch 1 introduces interface and simple implementation to retrieve
cgroup tiered memory usage
Patch 2 introduces more efficient accounting with top tier memory page counter
Patch 3 provides a sysfs interface to repot the the top tiered memory
usage.
The patchset works with Aneesh's v6 memory-tiering implementation [1].
It is a preparatory patch set before introducing features to
control top tiered memory in cgroups.
I'll like to first get feedback to see if
(1) Controllng the topmost tiered memory is enough
or
(2) Multiple tiers at the top levels need to be grouped into "toptier"
or
(3) There are use cases not covered by (1) and (2).
Thanks.
Tim
[1] https://lore.kernel.org/linux-mm/20220610135229.182859-1-aneesh.kumar@linux.ibm.com/
Tim Chen (3):
mm/memory-tiers Add functions for tier memory usage in a cgroup
mm/memory-tiers: Use page counter to track toptier memory usage
mm/memory-tiers: Show toptier memory usage for cgroup
include/linux/memcontrol.h | 1 +
include/linux/memory-tiers.h | 2 +
mm/memcontrol.c | 86 +++++++++++++++++++++++++++++++++++-
mm/memory-tiers.c | 3 +-
4 files changed, 89 insertions(+), 3 deletions(-)
--
2.35.1
Powered by blists - more mailing lists