Project

General

Profile

Actions

Bug #18768

closed

rbd rm on empty volumes 2/3 sec per volume

Added by Ben England about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

speed of "rbd rm" command slows to 2/3 second when 10000 RBD volumes are being deleted, but "rbd create" remains below 150 msec. These are EMPTY volumes, why so slow?

This may impact use of RBD volumes with Kubernetes containers, where there could be a LOT of RBD volumes.

RHCS 2.1 ~= Ceph Jewel
RPMs end with:
*-10.2.3-13.el7cp.x86_64
RHEL 7.3
kernel 3.10.0-514.el7.x86_64

in https://s3.amazonaws.com/ben-england/ceph/
rbd-create-delete-scaling-2017-02-01.png - the data
mk-rbd-vols.sh - script to create N RBD volumes in a pool
rm-rbd-vols.sh - script to delete N RBD volumes in a pool

  1. bash ./mk-rbd-vols 100 my-storage-pool
  2. bash ./rm-rbd-vols 100 my-storage-pool

Note that the time it takes to delete is increasing sharply from 1000 to 10000 RBD volumes, suggesting that it is no longer scalable when you reach this level.

It's annoying that RBD tries to provide a progress indicator for deletes by default. I would think this would be something you would do only if the user specifically requested it. What do incremental percentages mean for empty volume anyway? Suggest that rbd either drop the progress indicator only output incremental percentage if the removal takes longer than 3-5 seconds and then only update it every 3-5 seconds.

Actions

Also available in: Atom PDF