]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: verify the benefits of mempool cacheline optimization 41014/head
authorLoïc Dachary <loic@dachary.org>
Fri, 19 Mar 2021 07:29:08 +0000 (08:29 +0100)
committerKefu Chai <kchai@redhat.com>
Fri, 30 Apr 2021 04:11:13 +0000 (12:11 +0800)
commit7fe0ac7c1159d3ee81de27365dcf76ba6f4a2fb5
treee048cd4176ebe6d14e88dfe368f52b52ac70f0b7
parent5dccba839ba1ceed094121394135a79429b2ae2d
qa: verify the benefits of mempool cacheline optimization

There already is a test to verify the mempool sharding works, in the sense that
it uses at least half of the variables available to count the number of
allocated objects and their total size. This new test verifies that, with
sharding, object counting is at least twice faster than without sharding. It
also collects cacheline contention data with the perf c2c tool. The manual
analysis of this data shows the optimization gain is indeed related to cacheline
contention.

Fixes: https://tracker.ceph.com/issues/49896
Signed-off-by: Loïc Dachary <loic@dachary.org>
qa/standalone/c2c/c2c.sh [new file with mode: 0755]
qa/suites/rados/standalone/workloads/c2c.yaml [new file with mode: 0644]
src/include/mempool.h
src/test/CMakeLists.txt
src/test/test_c2c.cc [new file with mode: 0644]