Re: [RFC PATCH v4 0/3] memcg weighted interleave mempolicy control

From: Michal Hocko
Date: Thu Nov 09 2023 - 05:02:28 EST


On Wed 08-11-23 19:25:14, Gregory Price wrote:
> This patchset implements weighted interleave and adds a new cgroup
> sysfs entry: cgroup/memory.interleave_weights (excluded from root).

Why have you chosen memory controler rather than cpuset controller?
TBH I do not think memcg is the best fit because traditionally memcg
accounts consumption rather than memory placement. This means that the
memory is already allocated when it is charged for a memcg. On the other
hand cpuset controller is the one to control the allocation placement so
it would seem a better fit.
--
Michal Hocko
SUSE Labs