Recently , I want to enable rbd cache to identify performance benefit. I add 
rbd_cache=true option in my ceph configure file, I use 'virsh attach-device' to 
attach rbd to vm, below is my vdb xml file.

<disk type='network' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source protocol='rbd' 
name='rbd/node12_2:rbd_cache=true:rbd_cache_writethrough_until_flush=true'/>
      <target dev='vdb' bus='virtio'/>
      <serial>6b5ff6f4-9f8c-4fe0-84d6-9d795967c7dd</serial>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' 
function='0x0'/>i
</disk>

I do not know this is ok to enable rbd cache. I see perf counter for rbd cache 
in source code, but when I used admin daemon to check rbd cache statistics,

Ceph -admin-daemon /var/run/ceph/ceph-osd.0.asok perf dump

But I did not get any rbd cahce flags.

My question is how to enable rbd cahce and check rbd cache perf counter, or how 
can I make sure rbd cache is enabled, any tips will be appreciated? Thanks in 
advanced.
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to