diff options
| author | 2022-07-03 19:44:50 +0800 | |
|---|---|---|
| committer | 2022-07-06 13:30:14 +0200 | |
| commit | b4c9bf178ace26c52c9cac36f265ba95132a221d (patch) | |
| tree | 5fbd436321742a6a5441006f3278587d5c31773f /tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com | |
| parent | iommu: Clean up release_device checks (diff) | |
| download | linux-dev-b4c9bf178ace26c52c9cac36f265ba95132a221d.tar.xz linux-dev-b4c9bf178ace26c52c9cac36f265ba95132a221d.zip | |
iommu/iova: change IOVA_MAG_SIZE to 127 to save memory
kmalloc will round up the request size to power of 2, and current
iova_magazine's size is 1032 (1024+8) bytes, so each instance
allocated will get 2048 bytes from kmalloc, causing around 1KB
waste.
Change IOVA_MAG_SIZE from 128 to 127 to make size of 'iova_magazine'
1024 bytes so that no memory will be wasted.
Signed-off-by: Feng Tang <feng.tang@intel.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20220703114450.15184-1-feng.tang@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
