]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: avoid the config's get_val() overhead on the read path. 20217/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 31 Jan 2018 23:51:14 +0000 (00:51 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 1 Feb 2018 09:43:22 +0000 (10:43 +0100)
commit64c7f313f9bf7a4296b0fbda2e32a1551bb9f5b7
tree7103347ff0cb9124028edd7edc5f59e3e29230cf
parent9401bba7a8be3fb800234ea3bad9d20aca7b9bbb
osd: avoid the config's get_val() overhead on the read path.

Profiling shows the overhead of the md_config_t::get_val<T>
can be significant. Unfortunately, it is being used in two
critical places across the read path.

The patch resorts to the legacy config infrastructure to
mitigate the performance penalty. It is expected it will
be superseded with a solution that allows to use the new,
intended routines without hurting performance.
`
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/common/legacy_config_opts.h
src/osd/PG.cc
src/osd/PrimaryLogPG.cc