[ceph-users] how to enable rbd cache

2013-11-25 Thread Shu, Xinxin
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. 6b5ff6f4-9f8c-4fe0-84d6-9d795967c7dd i I do not know this i

Re: [ceph-users] how to enable rbd cache

2013-11-25 Thread Mark Nelson
On 11/25/2013 07:21 AM, Shu, Xinxin wrote: 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. Ceph configuration files are a bit confusing becaus

Re: [ceph-users] how to enable rbd cache

2013-11-25 Thread Gregory Farnum
On Mon, Nov 25, 2013 at 5:58 AM, Mark Nelson wrote: > On 11/25/2013 07:21 AM, Shu, Xinxin wrote: >> >> 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 vd

Re: [ceph-users] how to enable rbd cache

2013-11-25 Thread Mike Dawson
Greg is right, you need to enable RBD admin sockets. This can be a bit tricky though, so here are a few tips: 1) In ceph.conf on the compute node, explicitly set a location for the admin socket: [client.volumes] admin socket = /var/run/ceph/rbd-$pid.asok In this example, libvirt/qemu is

Re: [ceph-users] how to enable rbd cache

2013-11-25 Thread Shu, Xinxin
Re: [ceph-users] how to enable rbd cache Greg is right, you need to enable RBD admin sockets. This can be a bit tricky though, so here are a few tips: 1) In ceph.conf on the compute node, explicitly set a location for the admin socket: [client.volumes] admin socket = /var/run/ceph/rbd-$pid.aso

Re: [ceph-users] how to enable rbd cache

2013-11-26 Thread Shu, Xinxin
ter(l_objectcacher_cache_ops_hit, "cache_ops_hit"); plb.add_u64_counter(l_objectcacher_cache_ops_miss, "cache_ops_miss"); plb.add_u64_counter(l_objectcacher_cache_bytes_hit, "cache_bytes_hit"); plb.add_u64_counter(l_objectcacher_cache_bytes_miss, "cache_bytes_mi