All of lore.kernel.org
 help / color / mirror / Atom feed
* rbd kernel driver on the osd server
@ 2013-01-13 16:08 Harald Rößler
  2013-01-13 18:00 ` Wido den Hollander
  0 siblings, 1 reply; 5+ messages in thread
From: Harald Rößler @ 2013-01-13 16:08 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rbd kernel driver on the osd server
  2013-01-13 16:08 rbd kernel driver on the osd server Harald Rößler
@ 2013-01-13 18:00 ` Wido den Hollander
  2013-01-13 18:46   ` Harald Rößler
  0 siblings, 1 reply; 5+ messages in thread
From: Wido den Hollander @ 2013-01-13 18:00 UTC (permalink / raw)
  To: Harald Rößler; +Cc: ceph-devel@vger.kernel.org

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.
>

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

> Best Regards
> Harald Roessler
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rbd kernel driver on the osd server
  2013-01-13 18:00 ` Wido den Hollander
@ 2013-01-13 18:46   ` Harald Rößler
  2013-01-14  3:42     ` Sage Weil
  0 siblings, 1 reply; 5+ messages in thread
From: Harald Rößler @ 2013-01-13 18:46 UTC (permalink / raw)
  To: Wido den Hollander; +Cc: ceph-devel@vger.kernel.org

>    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.
>    >
> 
>    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 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.

> 
>    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!!

> 
>    I'd look into that.
> 
>    Wido
> 
>    > Best Regards
>    > Harald Roessler
>    > --
>    > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>    > the body of a message to majordomo@vger.kernel.org
>    > 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 majordomo@vger.kernel.org
>    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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rbd kernel driver on the osd server
  2013-01-13 18:46   ` Harald Rößler
@ 2013-01-14  3:42     ` Sage Weil
  2013-01-14 10:01       ` Sylvain Munaut
  0 siblings, 1 reply; 5+ messages in thread
From: Sage Weil @ 2013-01-14  3:42 UTC (permalink / raw)
  To: Harald Rößler; +Cc: Wido den Hollander, ceph-devel@vger.kernel.org

On Sun, 13 Jan 2013, Harald R??ler wrote:
> >    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.
> >    >
> > 
> >    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


> 
> 
> > 
> >    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.
> 
> > 
> >    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!!
> 
> > 
> >    I'd look into that.
> > 
> >    Wido
> > 
> >    > Best Regards
> >    > Harald Roessler
> >    > --
> >    > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> >    > the body of a message to majordomo@vger.kernel.org
> >    > 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 majordomo@vger.kernel.org
> >    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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rbd kernel driver on the osd server
  2013-01-14  3:42     ` Sage Weil
@ 2013-01-14 10:01       ` Sylvain Munaut
  0 siblings, 0 replies; 5+ messages in thread
From: Sylvain Munaut @ 2013-01-14 10:01 UTC (permalink / raw)
  To: Sage Weil
  Cc: Harald Rößler, Wido den Hollander,
	ceph-devel@vger.kernel.org

Hi,

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-14 10:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-13 16:08 rbd kernel driver on the osd server Harald Rößler
2013-01-13 18:00 ` Wido den Hollander
2013-01-13 18:46   ` Harald Rößler
2013-01-14  3:42     ` Sage Weil
2013-01-14 10:01       ` Sylvain Munaut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.