]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: Reduce number of osd threads when using compression 66384/head
authorBill Scales <bill_scales@uk.ibm.com>
Fri, 21 Nov 2025 10:06:22 +0000 (10:06 +0000)
committerBill Scales <bill_scales@uk.ibm.com>
Thu, 27 Nov 2025 07:45:07 +0000 (07:45 +0000)
commitea9588e3304822b75be18ee26d84c0c77e58cbed
treee12108648b808e15eace7acf8c8e2b1aff4294ee
parent3693e835b0a398ec726ed83abcbe84673cfa6ba9
qa: Reduce number of osd threads when using compression

Smithi nodes used by teuthology tests have 8 CPU cores and typically run
4 OSD processes. When bluestore software compression is enabled the size
of the OSD thread pool needs to be reduced to 2 threads per OSD because
these threads can easily use 100% of a core. This avoids excessive
amounts of context switches, which leads to OSD threads timing out,
which causes the OSD to drop heartbeat pings and for the monitor to
temporarily mark it down. In extreme cases this can lead to PGs getting
stuck in repeated loops of peering until the teuthology test times out.

Context switches happen oppurtunistically at the end of system calls
so functions with lots of logging are some of the worst affected.

Fixes: https://tracker.ceph.com/issues/72879
Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
12 files changed:
qa/objectstore_debug/bluestore/write$/random/compr$/yes$/lz4.yaml
qa/objectstore_debug/bluestore/write$/random/compr$/yes$/snappy.yaml
qa/objectstore_debug/bluestore/write$/random/compr$/yes$/zlib.yaml
qa/objectstore_debug/bluestore/write$/random/compr$/yes$/zstd.yaml
qa/objectstore_debug/bluestore/write$/v1/compr$/yes$/lz4.yaml
qa/objectstore_debug/bluestore/write$/v1/compr$/yes$/snappy.yaml
qa/objectstore_debug/bluestore/write$/v1/compr$/yes$/zlib.yaml
qa/objectstore_debug/bluestore/write$/v1/compr$/yes$/zstd.yaml
qa/objectstore_debug/bluestore/write$/v2/compr$/yes$/lz4.yaml
qa/objectstore_debug/bluestore/write$/v2/compr$/yes$/snappy.yaml
qa/objectstore_debug/bluestore/write$/v2/compr$/yes$/zlib.yaml
qa/objectstore_debug/bluestore/write$/v2/compr$/yes$/zstd.yaml