]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Fix the OpSchedulerItem cost scaling calculation.
authorSridhar Seshasayee <sseshasa@redhat.com>
Wed, 27 Jan 2021 13:09:57 +0000 (18:39 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Wed, 10 Mar 2021 09:59:38 +0000 (15:29 +0530)
commit52c79e328a83aa7a6013c42f724bf62e147cd152
tree42e482694cb11f589dd30412f201b77a0adcd509
parent71e31bb341957f700c84366b7966e1b527307e56
osd: Fix the OpSchedulerItem cost scaling calculation.

Calculate the scaled cost for an OpSchedulerItem in msec based on the
overall osd capacity (across all shards). Remove logic to cache the
cost of the previous op to re-use for the next transaction as it doesn't
seem to provide any benefit in terms of performance.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
(cherry picked from commit aebd9b71f29031dfb68964046af994bd89fea36b)
src/osd/scheduler/mClockScheduler.cc
src/osd/scheduler/mClockScheduler.h
src/test/osd/TestMClockScheduler.cc