summaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorPasha Tatashin <pasha.tatashin@soleen.com>2024-04-13 02:25:21 +0200
committerJoerg Roedel <jroedel@suse.de>2024-04-15 14:31:47 +0200
commitbd3520a93a84cd8c3897283e5891a9106fcf5acc (patch)
tree664e71aad879fc1e588f25f29982a1bad2ef45ad /mm/filemap.c
parentiommu/tegra-smmu: use page allocation function provided by iommu-pages.h (diff)
downloadlinux-bd3520a93a84cd8c3897283e5891a9106fcf5acc.tar.xz
linux-bd3520a93a84cd8c3897283e5891a9106fcf5acc.zip
iommu: observability of the IOMMU allocations
Add NR_IOMMU_PAGES into node_stat_item that counts number of pages that are allocated by the IOMMU subsystem. The allocations can be view per-node via: /sys/devices/system/node/nodeN/vmstat. For example: $ grep iommu /sys/devices/system/node/node*/vmstat /sys/devices/system/node/node0/vmstat:nr_iommu_pages 106025 /sys/devices/system/node/node1/vmstat:nr_iommu_pages 3464 The value is in page-count, therefore, in the above example the iommu allocations amount to ~428M. Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com> Acked-by: David Rientjes <rientjes@google.com> Tested-by: Bagas Sanjaya <bagasdotme@gmail.com> Link: https://lore.kernel.org/r/20240413002522.1101315-11-pasha.tatashin@soleen.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions