Skip to contentSkip to conversation

oxenstored in stubdom ?

DISCUSSION Łukasz Oleś 3 participants 7 messages Aug 21, 2010 – Aug 22, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

recently on irc channel (##xen) was some "discussion" about xen vs kvm...

There was idea that it would be nice if domUs could survive dom0 restart, but this needs, for example, to have xenstored running in separate domain.

In 2009 Alex Zeffertt posted some patches
(http://lists.xensource.com/archives/html/xen-devel/2009-04/msg00696.html) to add this functionallity, but they weren't applied.

So.. having xenstore in separate domain can have other advantages (performance?).
Is it (or will be) possible run oxenstroed in stubdomain?

--
Łukasz Oleś

#1 lore raw
Quoted 7 lines · Łukasz Oleś

Hi,

recently on irc channel (##xen) was some "discussion" about xen vs kvm...

There was idea that it would be nice if domUs could survive dom0 restart, but this needs, for example, to have xenstored running in separate domain.

Quoted 7 lines

In 2009 Alex Zeffertt posted some patches
(http://lists.xensource.com/archives/html/xen-devel/2009-04/msg00696.html) to add this functionallity, but they weren't applied.

So.. having xenstore in separate domain can have other advantages (performance?).
Is it (or will be) possible run oxenstroed in stubdomain?

oxenstored is already restartable (or used to be and easy to fix if it was broken), so from a xenstore point of view, you could already restart dom0; Obviously this would block all the domains that try to do a xenstore query, but if the dom0 is restarted quickly enough this shouldn't be too noticeable since a normal working domain shouldn't use much xenstore after starting up.

Regarding performance nobody profiled oxenstored in this context as far as i know; I'm not sure that would be a win, and i would much rather squeeze performance in the code directly than move xenstored in a complicated setup.

Signature · 1 line
Vincent
#2 lore raw
Quoted 10 lines · Vincent Hanquez
Quoted 3 lines

So.. having xenstore in separate domain can have other advantages (performance?).
Is it (or will be) possible run oxenstroed in stubdomain?

oxenstored is already restartable (or used to be and easy to fix if it was broken), so from a xenstore point of view, you could already restart dom0; Obviously this would block all the domains that try to do a xenstore query, but if the dom0 is restarted quickly enough this shouldn't be too noticeable since a normal working domain shouldn't use much xenstore after starting up.

So that's "very probably restartable" then? ;-)

-- Keir

#3 lore raw
Quoted 7 lines · Keir Fraser
Quoted 4 lines · Vincent Hanquez
Quoted 3 lines

So.. having xenstore in separate domain can have other advantages (performance?).
Is it (or will be) possible run oxenstroed in stubdomain?

Quoted 8 lines
Quoted 6 lines

oxenstored is already restartable (or used to be and easy to fix if it was broken), so from a xenstore point of view, you could already restart dom0; Obviously this would block all the domains that try to do a xenstore query, but if the dom0 is restarted quickly enough this shouldn't be too noticeable since a normal working domain shouldn't use much xenstore after starting up.

So that's "very probably restartable" then? ;-)

well yes, "very probably" is pretty good odds i think. :p

more seriously, it depends from which perspective you're looking at the dom0 restart problem. But according to previous experience during oxenstored development, i'm pretty sure that oxenstored would cope and that most of the problems are elsewhere in the stack. moving oxenstored to a stubdomain is almost orthogonal (roughly 89 degrees.)

Signature · 1 line
Vincent
#4 lore raw
Quoted 9 lines · Vincent Hanquez
Quoted 8 lines
Quoted 6 lines

oxenstored is already restartable (or used to be and easy to fix if it was broken), so from a xenstore point of view, you could already restart dom0; Obviously this would block all the domains that try to do a xenstore query, but if the dom0 is restarted quickly enough this shouldn't be too noticeable since a normal working domain shouldn't use much xenstore after starting up.

So that's "very probably restartable" then? ;-)

Quoted 7 lines

well yes, "very probably" is pretty good odds i think. :p

more seriously, it depends from which perspective you're looking at the dom0 restart problem. But according to previous experience during oxenstored development, i'm pretty sure that oxenstored would cope and that most of the problems are elsewhere in the stack. moving oxenstored to a stubdomain is almost orthogonal (roughly 89 degrees.)

I don't think xenstored-in-stubdomain is the big barrier to dom0 restartability, that's for sure. Personally, I don't think full dom0 restartability, for things like seamless dom0 kernel upgrade, will ever be achieved. But I think particular vulnerable or critical services within dom0 can be made restartable.

-- keir

#5 lore raw
Quoted 20 lines · On Sunday 22 August 2010 11:44:51 Keir Fraser wrote:

On 22/08/2010 10:14, "Vincent Hanquez" <[email protected]>

Quoted 9 lines · wrote:
Quoted 8 lines
Quoted 6 lines

oxenstored is already restartable (or used to be and easy to fix if it was broken), so from a xenstore point of view, you could already restart dom0; Obviously this would block all the domains that try to do a xenstore query, but if the dom0 is restarted quickly enough this shouldn't be too noticeable since a normal working domain shouldn't use much xenstore after starting up.

So that's "very probably restartable" then? ;-)

Quoted 7 lines

well yes, "very probably" is pretty good odds i think. :p

more seriously, it depends from which perspective you're looking at the dom0 restart problem. But according to previous experience during oxenstored development, i'm pretty sure that oxenstored would cope and that most of the problems are elsewhere in the stack. moving oxenstored to a stubdomain is almost orthogonal (roughly 89 degrees.)

Quoted 5 lines

I don't think xenstored-in-stubdomain is the big barrier to dom0 restartability, that's for sure. Personally, I don't think full dom0 restartability, for things like seamless dom0 kernel upgrade, will ever be achieved. But I think particular vulnerable or critical services within dom0 can be made restartable.

Thanks for clarifying.

Which are these "critical services"? Is there any list of them?

--
Łukasz Oleś

#6 lore raw
Quoted 9 lines · Łukasz Oleś
Quoted 5 lines

I don't think xenstored-in-stubdomain is the big barrier to dom0 restartability, that's for sure. Personally, I don't think full dom0 restartability, for things like seamless dom0 kernel upgrade, will ever be achieved. But I think particular vulnerable or critical services within dom0 can be made restartable.

Thanks for clarifying.

Which are these "critical services"? Is there any list of them?

Primarily the main toolstack (xend, xenvm, xapi, or whatever), xenstored, xenconsoled. Xenstored is already pretty much restartable, as Vincent says.

K.