On Wed, Mar 19, 2025 at 10:38:01AM +0800, Hao Jia <jiahao.kernel@xxxxxxxxx> wrote: > However, binding the statistics to the memory.reclaim writers may not be > suitable for our scenario. The userspace proactive memory reclaimer triggers > proactive memory reclaim on different memory cgroups, and all memory reclaim > statistics would be tied to this userspace proactive memory reclaim process. It thought that was what you wanted -- have stats related precisely to the process so that you can feedback-control the reclaim. > This does not distinguish the proactive memory reclaim status of different > cgroups. a `- b `- c Or do you mean that you write to a/memory.reclaim and want to observe respective results in {b,c}/memory.stat? (I think your addition to memory.stat is also natural. If the case above is the explanation why to prefer it over per-writer feedback, please mention that in next-rev commit message.) Thanks, Michal
Attachment:
signature.asc
Description: PGP signature