Skip to contentSkip to conversation

rbd kernel driver on the osd server

DISCUSSION Harald Rößler 4 participants 5 messages Jan 13, 2013 – Jan 14, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

couple of month ago I read about a limitation to run an RBD kernel driver on the osd server. Is this limitation still valid? The reason in Ubuntu and Debian there is no support for the RBD devices in QEMU. At the moment, in our setup the KVM's are running on the OSD servers.

Best Regards
Harald Roessler

#1 lore raw

Hi,

Quoted 4 lines · Harald Rößler

Hi,

couple of month ago I read about a limitation to run an RBD kernel driver on the osd server. Is this limitation still valid? The reason in Ubuntu and Debian there is no support for the RBD devices in QEMU. At the moment, in our setup the KVM's are running on the OSD servers.

I don't think so, but somebody might correct me here.

The OSDs nowadays use syncfs which leads them to only syncing their filesystem instead of ALL the filesystems on that host.

It might however be that Qemu calls sync() instead of syncfs() which still causes everything to be synced, which can lead to problems I guess.

Regarding your reason for doing this, RBD is supported in Ubuntu's Qemu.

Under Ubuntu precise it already works: http://packages.ubuntu.com/precise/qemu-kvm

The problem is that the shipped version of Ceph is 0.41, which might be too old.

I've been following the Blueprint for Ubuntu 13.04 and that will have all the Ceph stuff (Qemu and libvirt) you want with version 0.56.1

I'd look into that.

Wido

Quoted 7 lines

Best Regards
Harald Roessler
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 5 lines

Hi,

Quoted 2 lines · Harald Rößler

Hi,

Quoted 7 lines
Quoted 1 line

couple of month ago I read about a limitation to run an RBD kernel

driver on the osd server. Is this limitation still valid? The reason in Ubuntu and Debian there is no support for the RBD devices in QEMU. At the moment, in our setup the KVM's are running on the OSD servers.

Quoted 1 line

I don't think so, but somebody might correct me here.

I am the same opinion, but I was not sure, I found this information on some websites including in the "old" CEPH wiki and in the CEPH IRC logs.

Quoted 6 lines

The OSDs nowadays use syncfs which leads them to only syncing their filesystem instead of ALL the filesystems on that host.

It might however be that Qemu calls sync() instead of syncfs() which still causes everything to be synced, which can lead to problems I guess.

Thank you for this information, If I got it right, use the kernel driver on the host system I can expect more performance than via QEMU. I will test it on our development system.

Quoted 11 lines

Regarding your reason for doing this, RBD is supported in Ubuntu's Qemu.

Under Ubuntu precise it already works:
http://packages.ubuntu.com/precise/qemu-kvm

The problem is that the shipped version of Ceph is 0.41, which might be too old.

I've been following the Blueprint for Ubuntu 13.04 and that will have all the Ceph stuff (Qemu and libvirt) you want with version 0.56.1

I will keep this in mind. Thanks!!

Quoted 12 lines

I'd look into that.

Wido

Quoted 7 lines

Best Regards
Harald Roessler
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Best Regards
Harald Roessler
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 11 lines · Harald R??ler
Quoted 11 lines
   Hi,

   On 01/13/2013 05:08 PM, Harald R??ler wrote:
   > Hi,
   >
   > couple of month ago I read about a limitation to run an RBD kernel
   driver on the osd server. Is this limitation still valid? The reason in
   Ubuntu and Debian there is no support for the RBD devices in QEMU. At the
   moment, in our setup  the KVM's are running on the OSD servers.
   >
Quoted 4 lines
Quoted 1 line

I don't think so, but somebody might correct me here.

I am the same opinion, but I was not sure, I found this information on some websites including in the "old" CEPH wiki and in the CEPH IRC logs.

The other problem to consider is the possibility of deadlock under memory pressure. This is a problem with any network file system or block device that is backed by a user-level process on the same host. When the VM system is under memory pressure, it will ask the fs to write out some dirty pages, which will be sent to a user-level process, that may need to allocate memory, which will block until the kernel is able to free more memory. Deadlock.

Machines with lots of memory and very conservative VM settings can probably avoid this in practice, but it is technically possible, and with default settings isn't terribly hard to trigger.

sage

Quoted 50 lines
Quoted 8 lines

The OSDs nowadays use syncfs which leads them to only syncing their filesystem instead of ALL the filesystems on that host.

It might however be that Qemu calls sync() instead of syncfs() which still causes everything to be synced, which can lead to problems I guess.

Thank you for this information, If I got it right, use the kernel driver on the host system I can expect more performance than via QEMU. I will test it on our development system.

Quoted 11 lines

Regarding your reason for doing this, RBD is supported in Ubuntu's Qemu.

Under Ubuntu precise it already works:
http://packages.ubuntu.com/precise/qemu-kvm

The problem is that the shipped version of Ceph is 0.41, which might be too old.

I've been following the Blueprint for Ubuntu 13.04 and that will have all the Ceph stuff (Qemu and libvirt) you want with version 0.56.1

I will keep this in mind. Thanks!!

Quoted 12 lines

I'd look into that.

Wido

Quoted 7 lines

Best Regards
Harald Roessler
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Best Regards
Harald Roessler
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

Hi,

Quoted 11 lines

The other problem to consider is the possibility of deadlock under memory pressure. This is a problem with any network file system or block device that is backed by a user-level process on the same host. When the VM system is under memory pressure, it will ask the fs to write out some dirty pages, which will be sent to a user-level process, that may need to allocate memory, which will block until the kernel is able to free more memory. Deadlock.

Machines with lots of memory and very conservative VM settings can probably avoid this in practice, but it is technically possible, and with default settings isn't terribly hard to trigger.

Am I correct to assume that this problem can't be triggered if :
- Kernel RBD is running on the physical machine host ( dom0 on Xen )
- OSD process runs in a VM inside a DomU ( and has it's own dedicated
physical memory which isn't even 'seen' by the Dom0, only the hypervisor can see it).

Cheers,

Sylvain