.gc perf counters increments when gc entries are purged from the system
Previously, gc perf counters did not increment when gc entries were purged from the system. With this code update, the correct value of gc perf counter is observed in accordance with the number of gc entries that have been deleted from the system.
on build ceph version 14.2.11-84.el7cp , with steps mentioned in comment #9, the values of 'gc_retire_object' reflects post gc
[root@magna056 ubuntu]# ceph daemon `ls /var/run/ceph/ceph-client.rgw.*.asok|tail -1` perf dump |grep gc_retire_object | awk -F'[0-9]:' '{ print $1}'
"gc_retire_object": 100,
Moving this BZ to verified.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Important: Red Hat Ceph Storage 4.2 Security and Bug Fix update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2021:0081
Description of problem: ---------------------- Querying gc_retire_object in the 4.1 RGW daemon socket shows zeroes Version-Release: --------------- ceph-*-14.2.8-91.el7cp.x86_64 How reproducible: ---------------- consistent Actual results: -------------- # ceph daemon `ls /var/run/ceph/ceph-client.rgw.*.asok|tail -1` perf dump |grep gc_retire_object | awk -F'[0-9]:' '{ print $1}' "gc_retire_object": 0,