Skip to contentSkip to conversation

domain pause vs. watchdog timer

DISCUSSION Laszlo Ersek 4 participants 6 messages Oct 13, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

if a domain is paused (= not scheduled), its process that keeps otherwise kicking /dev/watchdog and (thusly the hypervisor) "freezes" too. Should pausing a domain suspend (or "inactivate") its watchdog_timers?

(I believe this must have been considered and the answer is "you shouldn't do that", but a confirmation/refutation would be nice.)

Thanks
L.

#1 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line · Laszlo Ersek

if a domain is paused (= not scheduled), its process that keeps otherwise kicking /dev/watchdog and (thusly the hypervisor) "freezes" too. Should pausing a domain suspend (or "inactivate") its watchdog_timers?

I would say yes it should. And you say it doesn't?

Quoted 2 lines

(I believe this must have been considered and the answer is "you shouldn't do that", but a confirmation/refutation would be nice.)

If a domain gets paused from the tools stack, it's not very reasonable to expect the operator there to know whether a particular domain has a watchdog timer activated.

Jan

#2 lore raw
Quoted 6 lines · Jan Beulich
Quoted 4 lines
Quoted 1 line
Quoted 1 line · Laszlo Ersek

if a domain is paused (= not scheduled), its process that keeps otherwise kicking /dev/watchdog and (thusly the hypervisor) "freezes" too. Should pausing a domain suspend (or "inactivate") its watchdog_timers?

I would say yes it should. And you say it doesn't?

I must have missed a changeset (or a hunk?) related to pausing:

https://bugzilla.redhat.com/show_bug.cgi?id=742880#c1

I backported 21529 from xen-unstable to the RHEL-5 hypervisor version, and Igor tested pausing a Fedora 16 HVM guest. The domU was destroyed while it was paused.

Thanks!
L.

#3 lore raw
Quoted 8 lines · Laszlo Ersek
Quoted 6 lines · Jan Beulich
Quoted 4 lines
Quoted 1 line
Quoted 1 line · Laszlo Ersek

if a domain is paused (= not scheduled), its process that keeps otherwise kicking /dev/watchdog and (thusly the hypervisor) "freezes" too. Should pausing a domain suspend (or "inactivate") its watchdog_timers?

I would say yes it should. And you say it doesn't?

Quoted 7 lines

I must have missed a changeset (or a hunk?) related to pausing:

https://bugzilla.redhat.com/show_bug.cgi?id=742880#c1

I backported 21529 from xen-unstable to the RHEL-5 hypervisor version, and Igor tested pausing a Fedora 16 HVM guest. The domU was destroyed while it was paused.

You are just as likely to upset a watchdog implemented entirely internally to the guest, and which we have no chance to disable/suspend when a domain is paused. Domain pausing from the dom0 command line really doesn't have a production use case afaik -- just don't do it is my helpful suggestion.

-- Keir

#4 lore raw
Quoted 14 lines · Keir Fraser
Quoted 12 lines · Laszlo Ersek
Quoted 6 lines · Jan Beulich
Quoted 4 lines
Quoted 1 line
Quoted 1 line · Laszlo Ersek

if a domain is paused (= not scheduled), its process that keeps otherwise kicking /dev/watchdog and (thusly the hypervisor) "freezes" too. Should pausing a domain suspend (or "inactivate") its watchdog_timers?

I would say yes it should. And you say it doesn't?

I must have missed a changeset (or a hunk?) related to pausing:

https://bugzilla.redhat.com/show_bug.cgi?id=742880#c1

Quoted 8 lines
Quoted 3 lines

I backported 21529 from xen-unstable to the RHEL-5 hypervisor version, and Igor tested pausing a Fedora 16 HVM guest. The domU was destroyed while it was paused.

You are just as likely to upset a watchdog implemented entirely internally to the guest, and which we have no chance to disable/suspend when a domain is paused. Domain pausing from the dom0 command line really doesn't have a production use case afaik -- just don't do it is my helpful suggestion.

Thank you both for the answers.
L.

#5 lore raw
In reply to Laszlo Ersek
Quoted 8 lines · Laszlo Ersek

Hi,

if a domain is paused (= not scheduled), its process that keeps otherwise kicking /dev/watchdog and (thusly the hypervisor) "freezes" too. Should pausing a domain suspend (or "inactivate") its watchdog_timers?

(I believe this must have been considered and the answer is "you shouldn't do that", but a confirmation/refutation would be nice.)

Yes, the ability to pause a domain from the toolstack command line was added way back in the beginning largely because... Well, because it could be done, and it was easy! It's not actually a very good idea. You won't actually find the toolstack itself automatically pausing a domain in very many places at all -- most places where it does are debug/diagnostic code, or where a domain is about to be destroyed anyway.

So, yes, in short: don't do that! :-)

-- Keir

Quoted 7 lines

Thanks
L.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel