[PATCH 1/2] mm: add gpu active/reclaim per-node stat counters

Andrew Morton akpm at linux-foundation.org
Thu Jun 19 00:05:21 UTC 2025


On Wed, 18 Jun 2025 14:06:17 +1000 Dave Airlie <airlied at gmail.com> wrote:

> While discussing memcg intergration with gpu memory allocations,
> it was pointed out that there was no numa/system counters for
> GPU memory allocations.
> 
> With more integrated memory GPU server systems turning up, and
> more requirements for memory tracking it seems we should start
> closing the gap.
> 
> Add two counters to track GPU per-node system memory allocations.
> 
> The first is currently allocated to GPU objects, and the second
> is for memory that is stored in GPU page pools that can be reclaimed,
> by the shrinker.
> 

Reviewed-by: Andrew Morton <akpm at linux-foundation.org>


More information about the dri-devel mailing list