summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-04-15 12:26:40 +0100
committerDavid Sterba <dsterba@suse.com>2026-06-08 15:53:28 +0200
commitd293344c2249dc716d26d3d55a9261989da32c50 (patch)
tree497840e6acb092f1f1a72b2ab469d35468a36531 /tools/perf/scripts/python
parent3fc0803f1c644e60b24cdb175109fcae83b2849a (diff)
btrfs: use a kmem_cache for block groups
We are currently allocating block groups using the generic slabs, and given that the size of btrfs_block_group structure is 672 bytes (on a release kernel), we end up using the kmalloc-1024 slab and therefore waste quite some memory since on a 4K page system we can only fit 4 block groups per page. The block groups are also allocated and delallocated with some frequency, specially if we have auto reclaim enabled. So use a kmem_cache for block groups, this way on a 4K page system we can fit 6 block groups per page instead of 4. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions