mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
mm: add gpu active/reclaim per-node stat counters (v2)
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. Cc: Christian Koenig <christian.koenig@amd.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: linux-mm@kvack.org Cc: Andrew Morton <akpm@linux-foundation.org> Acked-by: Zi Yan <ziy@nvidia.com> Acked-by: Shakeel Butt <shakeel.butt@linux.dev> Acked-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -1281,6 +1281,8 @@ const char * const vmstat_text[] = {
|
||||
#endif
|
||||
[I(NR_BALLOON_PAGES)] = "nr_balloon_pages",
|
||||
[I(NR_KERNEL_FILE_PAGES)] = "nr_kernel_file_pages",
|
||||
[I(NR_GPU_ACTIVE)] = "nr_gpu_active",
|
||||
[I(NR_GPU_RECLAIM)] = "nr_gpu_reclaim",
|
||||
#undef I
|
||||
|
||||
/* system-wide enum vm_stat_item counters */
|
||||
|
||||
Reference in New Issue
Block a user