diff options
author | Michael Kelley <mikelley@microsoft.com> | 2023-04-13 20:57:37 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-04-16 09:25:29 +0300 |
commit | 8b0977ecc8b30a30966e76fcb64cef5041626b02 (patch) | |
tree | 03dd9c0b0e6db4deb953e00c97b0a8c617264866 /Documentation/openrisc | |
parent | 5499d01c029069044a3b3e50501c77b474c96178 (diff) | |
download | linux-8b0977ecc8b30a30966e76fcb64cef5041626b02.tar.xz |
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 'Documentation/openrisc')
0 files changed, 0 insertions, 0 deletions