diff options
author | Robin Murphy <[email protected]> | 2023-09-12 17:28:05 +0100 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2023-09-25 12:07:43 +0200 |
commit | 911aa1245da83ff5e76d33bb612d8b5a3f2ec4a5 (patch) | |
tree | 4fbbfb59c22f25a23c0172abc58e5b4e8bf28058 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | afad94a93ef12887390d67aa9b6dd6be2657712f (diff) |
iommu/iova: Make the rcache depot scale better
The algorithm in the original paper specifies the storage of full
magazines in the depot as an unbounded list rather than a fixed-size
array. It turns out to be pretty straightforward to do this in our
implementation with no significant loss of efficiency. This allows
the depot to scale up to the working set sizes of larger systems,
while also potentially saving some memory on smaller ones too.
Since this involves touching struct iova_magazine with the requisite
care, we may as well reinforce the comment with a proper assertion too.
Reviewed-by: John Garry <[email protected]>
Reviewed-by: Jerry Snitselaar <[email protected]>
Signed-off-by: Robin Murphy <[email protected]>
Link: https://lore.kernel.org/r/f597aa72fc3e1d315bc4574af0ce0ebe5c31cd22.1694535580.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions