diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-04-15 13:12:13 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-06-08 15:53:29 +0200 |
| commit | 66fd877b13c7e7285ec607e4433efec3c2b2dd6a (patch) | |
| tree | 3d8ecd411004659934b37d877aeb96624f9c70d1 /tools/perf/scripts/python/task-analyzer.py | |
| parent | a8d1f0b5392473102f08d6f91f4dcdfaf9e29b0f (diff) | |
btrfs: use a kmem_cache for free space control structures
We are currently allocating the free space control structures for block
groups using the generic slabs, and given that the size of the
btrfs_free_space_ctl structure is 152 bytes (on a release kernel), we end
up using the kmalloc-192 slab and therefore waste quite some memory since
on a 4K page system we can only fit 21 free space control structures per
page. These structures are allocated and delallocated every time we create
and remove block groups.
So use a kmem_cache for free space control structures, this way on a 4K
page system we can fit 26 structures instead of 21.
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/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
