OK, it will be nice feature if we can get name of rbd from admin socket,
at now I’m doing this in the way you wrote.
Thanks for help,
Mateusz
From: Jason Dillaman [mailto:jdillama@xxxxxxxxxx]
Sent: Tuesday, July 24, 2018 2:52 PM
To: Mateusz Skala (UST, POL) <Mateusz.Skala@xxxxxxxxxxxxxx>
Cc: ceph-users <ceph-users@xxxxxxxxxxxxxx>
Subject: Re: [ceph-users] Read/write statistics per RBD image
If one VM is using multiple rbd’s then using just $pid is not enough. Socket shows only
one (first) rbd statistics.
Yup, that's why $cctid was added. In your case, you would need to scrap all of them. The librbd json dictionary key for librbd contains the image name so you can determine which is which after you dump the perf counters.
Regards
Mateusz
From:
Jason Dillaman [mailto:jdillama@xxxxxxxxxx]
Sent: Tuesday, July 24, 2018 2:39 PM
To: Mateusz Skala (UST, POL) <Mateusz.Skala@xxxxxxxxxxxxxx>
Cc: ceph-users <ceph-users@xxxxxxxxxxxxxx>
Subject: Re: [ceph-users] Read/write statistics per RBD image
Hello again,
How can I determine $cctid for specific rbd name? Or is there any good way to map admin-socket
with rbd?
The $cctid is effectively pseudo-random (it's a memory location within the process). Your best best is just a $pid mapping.
Regards
Mateusz
Thank You for help, it is exactly that I need.
Regards
Mateusz
From: Jason
Dillaman [mailto:jdillama@xxxxxxxxxx]
Sent: Wednesday, July 18, 2018 1:28 PM
To: Mateusz Skala (UST, POL) <Mateusz.Skala@xxxxxxxxxxxxxx>
Cc: dillaman <dillaman@xxxxxxxxxx>; ceph-users <ceph-users@xxxxxxxxxxxxxx>
Subject: Re: [ceph-users] Read/write statistics per RBD image
Yup, on the host running librbd, you just need to enable the "admin socket" in your ceph.conf and then use "ceph --admin-daemon /path/to/image/admin/socket.asok perf dump" (i.e.
not "ceph perf dump").
See the example in this tip window [1] for how to configure for a "libvirt" CephX user.
Thanks for response.
In ‘ceph perf dump’ there is no statistics for read/write operations on specific RBD image,
only for osd and total client operations. I need to get statistics on one specific RBD image, to get top used images. It is possible?
Regards
Mateusz
From:
Jason Dillaman [mailto:jdillama@xxxxxxxxxx]
Sent: Tuesday, July 17, 2018 3:29 PM
To: Mateusz Skala (UST, POL) <Mateusz.Skala@xxxxxxxxxxxxxx>
Cc: ceph-users <ceph-users@xxxxxxxxxxxxxx>
Subject: Re: [ceph-users] Read/write statistics per RBD image
Yes, you just need to enable the "admin socket" in your ceph.conf and then use "ceph --admin-daemon /path/to/image/admin/socket.asok perf dump".
--
--
--
--
|