On 7/6/26 04:36, Dave Airlie wrote: > I committed the vmstat counters and list lru changes, and they are now in > tree. > > This is the remainder of this series. Intel have expressed interest in getting > this landed for xe, we can drop the amdgpu changes for now if they can't get > across the line. > > I've dropped all previous acks/reviews. > > This series adds the memcg counters for GPU active and GPU reclaim to align > with the two global vmstats. It adds an accounting flag to TTM alloc/populate, > and enables memcg tracking and shrinker support in TTM. > > Then it adds amdgpu and xe support. > > I think for this to land, Christian holds the main objection which I still > fail > to fully understand beyond it doesn't solve all the problems we ever have had > with cgroups and drm, so we shouldn't even bother, and maybe we could do it at > the object level, and integrated with dmem, and android cross process > accounting, > but I still feel this is a good baseline. > > I think this is the right layer to hook this into TTM, where we allocate > memory > and I think accounting for this memory in a proper way should be done.
I think we pretty much agreed now to do this through dmem? At least dmem got the ability to optionally account allocations towards memcg as well and as far as I see there is no real benefit any more to mess with this in the ttm_pool. In general the pool seems to be the completely wrong layer to handle that for TTM. Background is that you can't reclaim individual pages anyway, you always need to reclaim full buffers and that is only possible on higher layers. Regards, Christian. > > Intel folks (Thomas/Maarten) please review and express concerns as well. > > Regards, > Dave. >
