]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Fix the OpSchedulerItem cost scaling calculation. 39140/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Wed, 27 Jan 2021 13:09:57 +0000 (18:39 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 22 Feb 2021 05:56:04 +0000 (11:26 +0530)
commitaebd9b71f29031dfb68964046af994bd89fea36b
tree591e7f7c42f20020a6ab666430fa1dd2a2d6f4aa
parent2c78cfc30a3d6ce3250b3e2129e42466e28c224e
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>
src/osd/scheduler/mClockScheduler.cc
src/osd/scheduler/mClockScheduler.h
src/test/osd/TestMClockScheduler.cc