pv_ops (2.6.31) and CONFIG_NO_HZ
Has anyone looked at using CONFIG_NO_HZ with an upstream pv_ops kernel? This seems like an intelligent combination... since pvclock is a good timesource, it seems like there should be no reason to have a regular tick, and one could pack more idle domains into one physical machine.
I tried enabling CONFIG_NO_HZ from an otherwise working .config file for 2.6.31 and the new kernel (running as a PV domU) panics early in boot ("Kernel panic -- not syncing: Attempted to kill init!" with a call trace of syscall_call->sys_exit_group->do_group_exit-> do_exit->panic). So I'm wondering if I did something stupid or it is known to not work.
Thanks,
Dan
Periodic ticks are disabled for non-running PV guests, so I don't think no-hz has as much potential win as you might think.
-- Keir
Quoted 21 lines · Dan Magenheimer
Has anyone looked at using
CONFIG_NO_HZwith an upstreampv_opskernel? This seems like an intelligent combination... since pvclock is a good timesource, it seems like there should be no reason to have a regular tick, and one could pack more idle domains into one physical machine.I tried enabling
CONFIG_NO_HZfrom an otherwise working .config file for 2.6.31 and the new kernel (running as a PV domU) panics early in boot ("Kernel panic -- not syncing: Attempted to kill init!" with a call trace of syscall_call->sys_exit_group->do_group_exit->do_exit->panic). So I'm wondering if I did something stupid or it is known to not work.Thanks,
Dan_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines
Periodic ticks are disabled for non-running PV guests, so I don't think
no-hz has as much potential win as you might think.
In this case, I was mostly interested in HV guests, but happened to have a 2.6.31 build in a handy PV guest so thought I would give it a try.
But as long as we are on the PV topic: Does this mean that a PV guest that is idle will never get scheduled due to needing to process a tick? I do see that an idle PV domain is doing about 250 kernel rdtsc/second, so is this just because the Xen scheduler has nothing better to do with a pcpu so it schedules an "idle" vcpu on it?
Quoted 28 lines
Quoted 8 lines · Dan Magenheimer
Has anyone looked at using
CONFIG_NO_HZwith an upstreampv_opskernel? This seems like an intelligent combination... since pvclock is a good timesource, it seems like there should be no reason to have a regular tick, and one could pack more idle domains into one physical machine.I tried enabling
CONFIG_NO_HZfrom an otherwise working .config file for 2.6.31 and the new kernel (running as a PV domU)panics early
Quoted 13 lines
in boot ("Kernel panic -- not syncing: Attempted to kill init!" with a call trace of syscall_call->sys_exit_group->do_group_exit->
do_exit->panic). So I'm wondering if I did something stupid or it is known to not work.Thanks,
Dan_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 7 lines · Dan Magenheimer
But as long as we are on the PV topic: Does this mean that a PV guest that is idle will never get scheduled due to needing to process a tick? I do see that an idle PV domain is doing about 250 kernel rdtsc/second, so is this just because the Xen scheduler has nothing better to do with a pcpu so it schedules an "idle" vcpu on it?
A PV guest is supposed to set a one-shot timer on the next event in its timer queues. So it depends what sorts of events get put on its timer queues -- if there are periodic events, it will still request seemingly periodic one-shot wakeups.
-- Keir
Quoted 6 lines · Dan Magenheimer
Has anyone looked at using
CONFIG_NO_HZwith an upstreampv_opskernel? This seems like an intelligent combination... since pvclock is a good timesource, it seems like there should be no reason to have a regular tick, and one could pack more idle domains into one physical machine.
Yes, I've always recommeded NO_HZ. The pvops kernel disables the 100Hz periodic timer and always uses the high-precision timers for its clockevents. The core kernel still asks for periodic interrupts on occasion, so it isn't completely tickless, but that's not really something we should solve at the Xen level.
Quoted 7 lines
I tried enabling
CONFIG_NO_HZfrom an otherwise working .config file for 2.6.31 and the new kernel (running as a PV domU) panics early in boot ("Kernel panic -- not syncing: Attempted to kill init!" with a call trace of syscall_call->sys_exit_group->do_group_exit->do_exit->panic). So I'm wondering if I did something stupid or it is known to not work.
No, that's strange. However, someone else reported something similar
which turns out to be triggered by the pvclock vsyscall stuff. I
haven't worked out what's failing yet. (Or why NO_HZ would depend on it, though it might be related to the highres timers options.)
Can you post the full crash message?
J
Quoted 7 lines · Dan Magenheimer
Quoted 5 lines
Has anyone looked at using
CONFIG_NO_HZwith an upstreampv_opskernel? This seems like an intelligent combination... since pvclock is a good timesource, it seems like there should be no reason to have a regular tick, and one could pack more idle domains into one physical machine.
Quoted 6 lines
Yes, I've always recommeded
NO_HZ. The pvops kernel disables the 100Hz
periodic timer and always uses the high-precision timers for its clockevents. The core kernel still asks for periodic interrupts on occasion, so it isn't completely tickless, but that's not really something we should solve at the Xen level.
OK thanks. I'll look into this a bit further for HVMs.
Quoted 8 lines
Quoted 2 lines
I tried enabling
CONFIG_NO_HZfrom an otherwise working .config file for 2.6.31 and the new kernel (running as a PV domU)panics early
Quoted 4 lines
in boot ("Kernel panic -- not syncing: Attempted to kill init!" with a call trace of syscall_call->sys_exit_group->do_group_exit->
do_exit->panic). So I'm wondering if I did something stupid or it is known to not work.
Quoted 4 lines
No, that's strange. However, someone else reported something similar
which turns out to be triggered by the pvclock vsyscall stuff. I
haven't worked out what's failing yet. (Or whyNO_HZwould depend on it, though it might be related to the highres timers options.)
This was a kernel.org 2.6.31 kernel, not from your git tree so no pvclock vsyscall stuff would be in it. (Sorry I guess the subject was confusing.)
Quoted 1 line
Can you post the full crash message?
No, most of it scrolls away in the VNC window. But since I now know it is supposed to work, I'll look into it further.
Thanks,
Dan