summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Kconfig
diff options
context:
space:
mode:
authorMichael Kelley <mikelley@microsoft.com>2023-04-13 10:57:37 -0700
committerChristoph Hellwig <hch@lst.de>2023-04-16 08:25:29 +0200
commit8b0977ecc8b30a30966e76fcb64cef5041626b02 (patch)
tree03dd9c0b0e6db4deb953e00c97b0a8c617264866 /arch/powerpc/Kconfig
parent5499d01c029069044a3b3e50501c77b474c96178 (diff)
downloadlinux-8b0977ecc8b30a30966e76fcb64cef5041626b02.tar.gz
linux-8b0977ecc8b30a30966e76fcb64cef5041626b02.tar.bz2
linux-8b0977ecc8b30a30966e76fcb64cef5041626b02.zip
swiotlb: track and report io_tlb_used high water marks in debugfs
swiotlb currently reports the total number of slabs and the instantaneous in-use slabs in debugfs. But with increased usage of swiotlb for all I/O in Confidential Computing (coco) VMs, it has become difficult to know how much memory to allocate for swiotlb bounce buffers, either via the automatic algorithm in the kernel or by specifying a value on the kernel boot line. The current automatic algorithm generously allocates swiotlb bounce buffer memory, and may be wasting significant memory in many use cases. To support better understanding of swiotlb usage, add tracking of the the high water mark for usage of the default swiotlb bounce buffer memory pool and any reserved memory pools. Report these high water marks in debugfs along with the other swiotlb pool metrics. Allow the high water marks to be reset to zero at runtime by writing to them. Signed-off-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/powerpc/Kconfig')
0 files changed, 0 insertions, 0 deletions