Actions
Bug #50520
closedslow radosgw-admin startup when large value of rgw_gc_max_objs configured
% Done:
100%
Source:
Support
Tags:
gc backport_processed
Backport:
octopus pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Description
on a test setup, each increment by thousand of rgw_gc_max_objs
increases the radosgw-admin command execution time by 1.2 sec:
for example:
time ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=32 user list ^^^^^^^^^^^^^^^^^^^^ [ "56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234", "testx$9876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef", "cosbench00", "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef", "test", "cosbench01", "cosbench03", "testid", "cosbench04", "cosbench02", "cosbench05" ] ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=32 user list 0.17s user 0.03s system 77% cpu 0.258 total ^^^^^^^^^^^ time ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=1009 user list ... ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=1009 user list 0.37s user 0.06s system 33% cpu 1.270 total time ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=2003 user list ... ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=2003 user list 0.60s user 0.10s system 29% cpu 2.408 total time ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=3001 user list ... ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=3001 user list 0.79s user 0.14s system 26% cpu 3.435 total time ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=4001 user list ... ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=4001 user list 1.05s user 0.17s system 26% cpu 4.677 total time ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=5003 user list [ "56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234", "testx$9876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef", "cosbench00", "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef", "test", "cosbench01", "cosbench03", "testid", "cosbench04", "cosbench02", "cosbench05" ] ./bin/radosgw-admin -n client.rgw.silvertip --rgw_gc_max_objs=5003 user list 1.22s user 0.20s system 25% cpu 5.640 total # ^^^^^^^^^^^
Actions