Please enable JavaScript.
Coggle requires JavaScript to display documents.
bioset allocation - Coggle Diagram
bioset allocation
ideas
allocate bio & bvecs together
organize bio slab cache just by size
figure out bio size
then lookup proper bio slab cache
each bioset setups one bio slab table
fallback to two allocations
when total size is > 4K
two mempool are used in this case
one is for nr_vecs 0
another is for nr_vects 256
organize bio slab cache via its size
avoid too many bio slab caches
optimize small allocation
nr_vecs is 0
nr_vecs is 4
big nr_vecs fallbacks to aligned allocation
cacheline aligned
cover bip's allocation
same with bio & its vecs
abstract via variable obj allocation
problems
bio_slab requires kmalloc aligned allocaiton
just for dm-crypt
why slab is required?
memory waste
big slab size needs more pre-allocation
facts
one bio allocation needs two slab allocation