* Re: + paravirt-vmi-timer-patches.patch added to -mm tree
[not found] <200612152227.kBFMRNuQ002977@shell0.pdx.osdl.net>
@ 2007-01-06 16:54 ` Daniel Walker
2007-01-06 20:52 ` Zachary Amsden
2007-01-06 18:06 ` Daniel Walker
1 sibling, 1 reply; 6+ messages in thread
From: Daniel Walker @ 2007-01-06 16:54 UTC (permalink / raw)
To: linux-kernel; +Cc: mm-commits, zach, ak, chrisw, jeremy, rusty
On Fri, 2006-12-15 at 14:27 -0800, akpm@osdl.org wrote:
> +
> +unsigned long long vmi_sched_clock(void)
> +{
> + return read_available_cycles();
> +}
> +
This sched_clock is likely broken if it's returning something other than
nanoseconds. It looks like cycles, but it's also getting piped through
an ops pointer so I'm not sure what's getting returned here.
Daniel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: + paravirt-vmi-timer-patches.patch added to -mm tree
[not found] <200612152227.kBFMRNuQ002977@shell0.pdx.osdl.net>
2007-01-06 16:54 ` + paravirt-vmi-timer-patches.patch added to -mm tree Daniel Walker
@ 2007-01-06 18:06 ` Daniel Walker
2007-01-06 20:37 ` Zachary Amsden
1 sibling, 1 reply; 6+ messages in thread
From: Daniel Walker @ 2007-01-06 18:06 UTC (permalink / raw)
To: linux-kernel; +Cc: zach, ak, chrisw, jeremy, rusty
On Fri, 2006-12-15 at 14:27 -0800, akpm@osdl.org wrote:
> +
> +config NO_IDLE_HZ
> + bool
> + depends on PARAVIRT
> + default y
> + help
> + Switches the regular HZ timer off when the system is going
> idle.
> + This helps a hypervisor detect that the Linux system is
> idle,
> + reducing the overhead of idle systems.
There is already a dynamic tick (NO_HZ) system in the -mm tree .. Given
that this implementation seems unnecessary. Why do you need another
different system to do this?
Daniel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: + paravirt-vmi-timer-patches.patch added to -mm tree
2007-01-06 18:06 ` Daniel Walker
@ 2007-01-06 20:37 ` Zachary Amsden
2007-01-06 20:40 ` Daniel Walker
0 siblings, 1 reply; 6+ messages in thread
From: Zachary Amsden @ 2007-01-06 20:37 UTC (permalink / raw)
To: Daniel Walker; +Cc: linux-kernel, ak, chrisw, jeremy, rusty
Daniel Walker wrote:
> On Fri, 2006-12-15 at 14:27 -0800, akpm@osdl.org wrote:
>
>> +
>> +config NO_IDLE_HZ
>> + bool
>> + depends on PARAVIRT
>> + default y
>> + help
>> + Switches the regular HZ timer off when the system is going
>> idle.
>> + This helps a hypervisor detect that the Linux system is
>> idle,
>> + reducing the overhead of idle systems.
>>
>
>
> There is already a dynamic tick (NO_HZ) system in the -mm tree .. Given
> that this implementation seems unnecessary. Why do you need another
> different system to do this?
>
We don't. This was written before the dynamic tick code, and now they
need to be merged. Until then, they can safely coexist.
Zach
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: + paravirt-vmi-timer-patches.patch added to -mm tree
2007-01-06 20:37 ` Zachary Amsden
@ 2007-01-06 20:40 ` Daniel Walker
2007-01-06 20:51 ` Zachary Amsden
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Walker @ 2007-01-06 20:40 UTC (permalink / raw)
To: Zachary Amsden; +Cc: linux-kernel, ak, chrisw, jeremy, rusty
On Sat, 2007-01-06 at 12:37 -0800, Zachary Amsden wrote:
> >
> > There is already a dynamic tick (NO_HZ) system in the -mm tree .. Given
> > that this implementation seems unnecessary. Why do you need another
> > different system to do this?
> >
>
> We don't. This was written before the dynamic tick code, and now they
> need to be merged. Until then, they can safely coexist.
So really this can't go upstream till that merge happens. What's
preventing you from just directly using NO_HZ without changes?
Daniel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: + paravirt-vmi-timer-patches.patch added to -mm tree
2007-01-06 20:40 ` Daniel Walker
@ 2007-01-06 20:51 ` Zachary Amsden
0 siblings, 0 replies; 6+ messages in thread
From: Zachary Amsden @ 2007-01-06 20:51 UTC (permalink / raw)
To: Daniel Walker; +Cc: linux-kernel, ak, chrisw, jeremy, rusty
Daniel Walker wrote:
> On Sat, 2007-01-06 at 12:37 -0800, Zachary Amsden wrote:
>
>
>>> There is already a dynamic tick (NO_HZ) system in the -mm tree .. Given
>>> that this implementation seems unnecessary. Why do you need another
>>> different system to do this?
>>>
>>>
>> We don't. This was written before the dynamic tick code, and now they
>> need to be merged. Until then, they can safely coexist.
>>
>
> So really this can't go upstream till that merge happens. What's
> preventing you from just directly using NO_HZ without changes?
>
For one thing, the fact that it doesn't account for stolen time. But
mostly because going through the regular PIT / APIC timer paths has a
lot of overhead. So we need a separate timer device, and weaving this
in with the local APIC timer dependency for SMP on i386 requires changes
on top of NO_HZ.
Zach
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: + paravirt-vmi-timer-patches.patch added to -mm tree
2007-01-06 16:54 ` + paravirt-vmi-timer-patches.patch added to -mm tree Daniel Walker
@ 2007-01-06 20:52 ` Zachary Amsden
0 siblings, 0 replies; 6+ messages in thread
From: Zachary Amsden @ 2007-01-06 20:52 UTC (permalink / raw)
To: Daniel Walker; +Cc: linux-kernel, mm-commits, ak, chrisw, jeremy, rusty
Daniel Walker wrote:
> On Fri, 2006-12-15 at 14:27 -0800, akpm@osdl.org wrote:
>
>> +
>> +unsigned long long vmi_sched_clock(void)
>> +{
>> + return read_available_cycles();
>> +}
>> +
>>
>
>
> This sched_clock is likely broken if it's returning something other than
> nanoseconds. It looks like cycles, but it's also getting piped through
> an ops pointer so I'm not sure what's getting returned here.
>
Thanks, I'll fix that.
Zach
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-01-06 20:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200612152227.kBFMRNuQ002977@shell0.pdx.osdl.net>
2007-01-06 16:54 ` + paravirt-vmi-timer-patches.patch added to -mm tree Daniel Walker
2007-01-06 20:52 ` Zachary Amsden
2007-01-06 18:06 ` Daniel Walker
2007-01-06 20:37 ` Zachary Amsden
2007-01-06 20:40 ` Daniel Walker
2007-01-06 20:51 ` Zachary Amsden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox