[PATCH RFC 0/2] cgroup/mem: add a node to double charge in memcg
From: Eric Chanudet
Date: Fri Apr 03 2026 - 10:16:21 EST
It was suggested previously[1] to introduce a knob for dmem region to
double charge dmem and memcg at the will of the administrator.
This RFC tries do that in the dmem controller through the cgroupfs
interface already available and walk through the problems that creates.
[1] https://lore.kernel.org/all/a446b598-5041-450b-aaa9-3c39a09ff6a0@xxxxxxx/
Signed-off-by: Eric Chanudet <echanude@xxxxxxxxxx>
---
Eric Chanudet (2):
mm/memcontrol: add page-level charge/uncharge functions
cgroup/dmem: add a node to double charge in memcg
include/linux/memcontrol.h | 4 +++
kernel/cgroup/dmem.c | 86 ++++++++++++++++++++++++++++++++++++++++++++--
mm/memcontrol.c | 24 +++++++++++++
3 files changed, 111 insertions(+), 3 deletions(-)
---
base-commit: 4b9c36c83b34f710da9573291404f6a2246251c1
change-id: 20260327-cgroup-dmem-memcg-double-charge-0f100a9ffbf2
Best regards,
--
Eric Chanudet <echanude@xxxxxxxxxx>