]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: parallelize rbd ls -l 15579/head
authorPiotr Dałek <piotr.dalek@corp.ovh.com>
Wed, 7 Jun 2017 14:01:37 +0000 (16:01 +0200)
committerPiotr Dałek <piotr.dalek@corp.ovh.com>
Fri, 21 Jul 2017 14:11:04 +0000 (16:11 +0200)
commit8f76fc861b0a628fa2269b04f77b7e31d4a7a006
tree8a127303165c1820841a17f0ad90e9e0f6c0878b
parentd76b376e7877f5fecbfd3065a2d33fa7d8bd1de4
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>
src/tools/rbd/action/List.cc