]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: tune the default for crimson_alien_op_num_threads. 39516/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 17 Feb 2021 12:04:37 +0000 (12:04 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 17 Feb 2021 12:37:59 +0000 (12:37 +0000)
commita906cbd31266432c4f54f4201a753624a787ed98
tree232e5bbdde5f6b5afbc808904d3ca7dd1963ac14
parent905ea54ba506571035a042419af90622a255768f
crimson/osd: tune the default for crimson_alien_op_num_threads.

This commit tries to optimize the default size of AlienStore's
thread pool. Recent testing has shown the intial value, which
is `16`, is far from being optimal while the optimum is close
to `4`:

  https://gist.github.com/rzarzynski/c851212f4b0baef4097a6087533ba17b

Further testing by Mark Nelson suggests that the sweet spot is
closer to `8` taking into account 4 KB writes with lower queue
depths:

  https://docs.google.com/spreadsheets/d/1IR9ysWRkaGdX5e9w_YV8kfeeglR2pEY3V9hovY0ECV8/edit#gid=1884533182

As a kind of compromise `6` is proposed in this commit.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/common/options.cc