Dec 2022

1 commit
Improve the performance of the slab memory allocator
20 Dec 2022David Rowleymaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 99% surepart of a posted patchsetmoderate changesfrom patchset #271 of 2 reviewers saw the final version

d21ded75fd takes the slab.c patch from #27 and omits the accompanying contrib/alloc_bench module. Besides formatting and naming edits, it uses block->nfree for block-list selection and corrects SlabCheck's empty-block condition from nfree <= 0 to nfree >= chunksPerBlock; #29 confirms the final adjustment and push.

  • Tomas Vondrasaw an earlier versionLLM analysis, 99% sureTomas benchmarked the original allocator patches, reported workload-dependent regressions in #13 and #16, and investigated page-fault effects in #17, before the substantial rework in #23.
  • John Naylorsaw the final versionLLM analysis, 98% sureJohn examined indexing in #19, benchmarked #23 in #24 and #26, and reported a successful repeat of his test against the final submission in #28 before the commit.

Credits across 1 commit

Author
Andres Freund1
David Rowley1
Tested by
John Naylor1
Tomas Vondra1
Committer
David Rowley1