]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd, PG: share the snaptrimq.size() within pg_stat_t
authorPiotr Dałek <piotr.dalek@corp.ovh.com>
Wed, 13 Dec 2017 14:23:55 +0000 (15:23 +0100)
committerPiotr Dałek <piotr.dalek@corp.ovh.com>
Thu, 14 Dec 2017 12:08:04 +0000 (13:08 +0100)
commit022d246f17b31d309525395831c84e9856533adb
tree8d4614720c33c486554193b02d923eb0b1b4a096
parentdc7781cf17d11cb09067656cb25c0d710ab60d71
osd, PG: share the snaptrimq.size() within pg_stat_t

That way it will be unnecessary to go through all pgs separately
to find pgs with excessively long snap trim queues. And we don't need
to share snap trim queues itself, which may be large by itself.
As snap trim queues tend to be short and anything above 50 000
I consider absurdly large, the snaptrimq_len is capped at 2^32 to
save space in pg_stat_t.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
src/mon/PGMap.cc
src/osd/PG.cc
src/osd/osd_types.cc
src/osd/osd_types.h