]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: parallelize rbd ls -l 16921/head
authorPiotr Dałek <piotr.dalek@corp.ovh.com>
Wed, 7 Jun 2017 14:01:37 +0000 (16:01 +0200)
committerJason Dillaman <dillaman@redhat.com>
Tue, 8 Aug 2017 20:55:05 +0000 (16:55 -0400)
commit6afc947f61d2b1c1c55a276e61ae77b21ad6e25d
treee8e80e3d76e9e8abbd0bc67f8f2583b9243515cc
parente29c598351c4abead79521a2aeaadb974f3a9370
rbd: parallelize rbd ls -l

When a cluster contains a large number of images, "rbd ls -l" takes a
long time to finish. In my particular case, it took about 58s to
process 3000 images.
"rbd ls -l" opens each of image and that takes majority of time, so
improve this by using aio_open() and aio_close() to do it
asynchronously. This reduced total processing time down to around 15
seconds when using default 10 concurrently opened images.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
(cherry picked from commit 8f76fc861b0a628fa2269b04f77b7e31d4a7a006)
src/tools/rbd/action/List.cc