Tcache batching: Plumbing

In the next commit, we'll start using the batcher to eliminate mutex traffic.
To avoid cluttering up that commit with the random bits of busy-work it entails,
we'll centralize them here.  This commit introduces:
- A batched bin type.
- The ability to mix batched and unbatched bins in the arena.
- Conf parsing to set batches per size and a max batched size.
- mallctl access to the corresponding opt-namespace keys.
- Stats output of the above.
This commit is contained in:
David Goldblatt
2024-02-02 13:20:14 -08:00
committed by David Goldblatt
parent 70c94d7474
commit c085530c71
11 changed files with 121 additions and 35 deletions

View File

@@ -35,6 +35,8 @@ main(void) {
P(arena_t);
P(arena_stats_t);
P(base_t);
P(bin_t);
P(bin_with_batch_t);
P(decay_t);
P(edata_t);
P(ecache_t);