]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PG: Add helper method to get the average size of objects in a PG.
authorSridhar Seshasayee <sseshasa@redhat.com>
Mon, 20 Nov 2023 12:46:31 +0000 (18:16 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Fri, 24 Nov 2023 14:54:35 +0000 (20:24 +0530)
commit08b2255c345b0614cb1e1e4e3435910235c677cd
treec57626f55c06ff8f4fa9bad3cc5d2c4089feef1e
parent213923165c3c5ad96ac99c27fb7a06eafdbf1de2
osd/PG: Add helper method to get the average size of objects in a PG.

Factor out the code in PG::queue_recovery() that determines the average
object size in a PG to PG::get_average_object_size(). This is used to
determine the cost of a background operation for e.g., recovery,
snaptrim in case mClock scheduler is employed.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
src/osd/PG.cc
src/osd/PG.h