diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-04-15 12:26:40 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-06-08 15:53:28 +0200 |
| commit | d293344c2249dc716d26d3d55a9261989da32c50 (patch) | |
| tree | 497840e6acb092f1f1a72b2ab469d35468a36531 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 3fc0803f1c644e60b24cdb175109fcae83b2849a (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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
