* TSC unstable due to TSC halts in idle?
@ 2010-05-14 20:13 Jesper Dangaard Brouer
2010-05-14 22:28 ` john stultz
0 siblings, 1 reply; 4+ messages in thread
From: Jesper Dangaard Brouer @ 2010-05-14 20:13 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: linux-kernel, netdev, Len Brown, Shaohua Li, hawk
Hi Thomas,
I want to know, if its safe to enable the TSC clocksource, when the
kernel reports:
"Marking TSC unstable due to TSC halts in idle"
The system selects HPET (in current_clocksource), but I can still see
TSC as an available clocksource (in
/sys/devices/system/clocksource/clocksource0/available_clocksource).
Is it safe to enable TSC manually (by changing current_clocksource)?
(my workload is 10Git/s routing, cannot survive with a slow clock)
Any trick to avoid this? (e.g. kernel config setting, or a /sys/ setting
which changes the minimum P-state?)
The system is a new HP370-G6 server, with two Xeon X5550 CPUs. Its
(currently) running a Debian compiled kernel 2.6.26-2-amd64.
Kernel log:
checking TSC synchronization [CPU#0 -> CPU#1]: passed.
checking TSC synchronization [CPU#0 -> CPU#2]: passed.
...
checking TSC synchronization [CPU#0 -> CPU#14]: passed.
checking TSC synchronization [CPU#0 -> CPU#15]: passed.
Marking TSC unstable due to TSC halts in idle
Cheers,
Jesper Brouer
--
-------------------------------------------------------------------
MSc. Master of Computer Science
Dept. of Computer Science, University of Copenhagen
Author of http://www.adsl-optimizer.dk
-------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: TSC unstable due to TSC halts in idle?
2010-05-14 20:13 TSC unstable due to TSC halts in idle? Jesper Dangaard Brouer
@ 2010-05-14 22:28 ` john stultz
2010-05-14 23:15 ` Suresh Siddha
0 siblings, 1 reply; 4+ messages in thread
From: john stultz @ 2010-05-14 22:28 UTC (permalink / raw)
To: Jesper Dangaard Brouer
Cc: Thomas Gleixner, linux-kernel, netdev, Len Brown, Shaohua Li,
hawk
On Fri, May 14, 2010 at 1:13 PM, Jesper Dangaard Brouer <hawk@diku.dk> wrote:
> I want to know, if its safe to enable the TSC clocksource, when the
> kernel reports:
> "Marking TSC unstable due to TSC halts in idle"
>
> The system selects HPET (in current_clocksource), but I can still see
> TSC as an available clocksource (in
> /sys/devices/system/clocksource/clocksource0/available_clocksource).
>
> Is it safe to enable TSC manually (by changing current_clocksource)?
> (my workload is 10Git/s routing, cannot survive with a slow clock)
>
>
> Any trick to avoid this? (e.g. kernel config setting, or a /sys/ setting
> which changes the minimum P-state?)
Might try booting with the max-cstate=1 option.
thanks
-john
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: TSC unstable due to TSC halts in idle?
2010-05-14 22:28 ` john stultz
@ 2010-05-14 23:15 ` Suresh Siddha
2010-05-15 9:54 ` Jesper Dangaard Brouer
0 siblings, 1 reply; 4+ messages in thread
From: Suresh Siddha @ 2010-05-14 23:15 UTC (permalink / raw)
To: john stultz
Cc: Jesper Dangaard Brouer, Thomas Gleixner,
linux-kernel@vger.kernel.org, netdev, Brown, Len, Li, Shaohua,
hawk@comx.dk
On Fri, 2010-05-14 at 15:28 -0700, john stultz wrote:
> On Fri, May 14, 2010 at 1:13 PM, Jesper Dangaard Brouer <hawk@diku.dk> wrote:
> > I want to know, if its safe to enable the TSC clocksource, when the
> > kernel reports:
> > "Marking TSC unstable due to TSC halts in idle"
> >
> > The system selects HPET (in current_clocksource), but I can still see
> > TSC as an available clocksource (in
> > /sys/devices/system/clocksource/clocksource0/available_clocksource).
> >
> > Is it safe to enable TSC manually (by changing current_clocksource)?
> > (my workload is 10Git/s routing, cannot survive with a slow clock)
> >
> >
> > Any trick to avoid this? (e.g. kernel config setting, or a /sys/ setting
> > which changes the minimum P-state?)
>
> Might try booting with the max-cstate=1 option.
Jesper mentioned that it is xeon 5550. TSC's for that processor doesn't
stop in idle. Perhaps he is using an older kernel which doesn't detect
this fact. Jesper, more recent kernels should be able to use TSC as the
clocksource.
thanks,
suresh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: TSC unstable due to TSC halts in idle?
2010-05-14 23:15 ` Suresh Siddha
@ 2010-05-15 9:54 ` Jesper Dangaard Brouer
0 siblings, 0 replies; 4+ messages in thread
From: Jesper Dangaard Brouer @ 2010-05-15 9:54 UTC (permalink / raw)
To: Suresh Siddha
Cc: john stultz, Thomas Gleixner, linux-kernel@vger.kernel.org,
netdev, Brown, Len, Li, Shaohua, hawk@comx.dk
On Fri, 14 May 2010, Suresh Siddha wrote:
> On Fri, 2010-05-14 at 15:28 -0700, john stultz wrote:
>> On Fri, May 14, 2010 at 1:13 PM, Jesper Dangaard Brouer <hawk@diku.dk> wrote:
>>> I want to know, if its safe to enable the TSC clocksource, when the
>>> kernel reports:
>>> "Marking TSC unstable due to TSC halts in idle"
>>>
>>> The system selects HPET (in current_clocksource), but I can still see
>>> TSC as an available clocksource (in
>>> /sys/devices/system/clocksource/clocksource0/available_clocksource).
>>>
>>> Is it safe to enable TSC manually (by changing current_clocksource)?
>>> (my workload is 10Git/s routing, cannot survive with a slow clock)
>>>
>>>
>>> Any trick to avoid this? (e.g. kernel config setting, or a /sys/ setting
>>> which changes the minimum P-state?)
>>
>> Might try booting with the max-cstate=1 option.
>
> Jesper mentioned that it is xeon 5550. TSC's for that processor doesn't
> stop in idle.
Thanks, then it should be safe to force using TSC, even on this older
kernel.
> Perhaps he is using an older kernel which doesn't detect this fact.
> Jesper, more recent kernels should be able to use TSC as the
> clocksource.
Guess this it the problem. As I'm running a standard Debian compiled
kernel 2.6.26-2-amd64 (which comes with Debian lenny). I'm not going to
run with this kernel in production, as it doesn't have multiqueue support
and doesn't support the NICs I'm using.
I'm already annoyed with this old kernel, as it doesn't support any of the
NICs in the machine, not even the build in NICs in the HP370 G6 server.
I'll boot a new kernel on the machine Monday, and I'll complain if it
didn't solve the issue, else consider this issue solved "in a newer kernel
version".
Cheers,
Jesper Brouer
--
-------------------------------------------------------------------
MSc. Master of Computer Science
Dept. of Computer Science, University of Copenhagen
Author of http://www.adsl-optimizer.dk
-------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-05-15 9:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-14 20:13 TSC unstable due to TSC halts in idle? Jesper Dangaard Brouer
2010-05-14 22:28 ` john stultz
2010-05-14 23:15 ` Suresh Siddha
2010-05-15 9:54 ` Jesper Dangaard Brouer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).