On 10/17/19 9:58 AM, Shakeel Butt wrote: >> My expectation (and I haven't confirmed this) is that the any memory use >> is accounted to the owning cgroup, whether it is DRAM or PMEM. memcg >> limit reclaim and global reclaim both end up doing migrations and >> neither should have a net effect on the counters. >> > Hmm I didn't see the memcg charge migration in the code on demotion. > So, in the code [patch 3] the counters are being decremented as DRAM > is freed but not incremented for PMEM. I had assumed that the migration code was doing this for me. I'll go make sure either way.