From: Joanna Rutkowska <joanna@invisiblethingslab.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Tobias Geiger <tobias.geiger@vido.info>, xen-devel@lists.xensource.com
Subject: Re: A clocksource question
Date: Fri, 12 Mar 2010 22:13:14 +0100 [thread overview]
Message-ID: <4B9AAE6A.6050801@invisiblethingslab.com> (raw)
In-Reply-To: <4B9AABB9.7030906@invisiblethingslab.com>
[-- Attachment #1.1: Type: text/plain, Size: 3096 bytes --]
On 03/12/2010 10:01 PM, Joanna Rutkowska wrote:
> On 03/12/2010 11:02 PM, Jeremy Fitzhardinge wrote:
>> On 03/12/2010 01:56 PM, Tobias Geiger wrote:
>>> kbpc2:~# cat
>>> /sys/devices/system/clocksource/clocksource0/current_clocksource
>>> xen
>>> kbpc2:~# cat
>>> /sys/devices/system/clocksource/clocksource0/available_clocksource
>>> xen
>>> kbpc2:~# echo "jiffies"
>>>
>>>> /sys/devices/system/clocksource/clocksource0/current_clocksource
>>>>
>>> kbpc2:~# dmesg | tail -1
>>> [ 7898.642404] Override clocksource jiffies is not HRT compatible.
>>> Cannot switch
>>> while in HRT/NOHZ mode
>>> kbpc2:~#
>>>
>>> Seems like it's not possible to switch to jiffies - however:
>>> kbpc2:~# zcat /proc/config.gz | grep NO_HZ
>>> # CONFIG_NO_HZ is not set
>>>
>>> but CONFIG_SCHED_HRTICK=y
>>>
>>
>> Interesting. BTW, does NO_HZ change the behaviour of this? In
>> principle NO_HZ should be preferable, and particularly in a virtual
>> machine since it should limit the number of timer interrupts.
>>
>> Joanna, are you using NO_HZ?
>>
> Yes, I have:
> CONFIG_NO_HZ=y
>
> BTW, FWIW, I'm attaching my kernel config. It's almost the same as the
> previously mentioned "Young's Dec23" kernel (the only difference being
> some more recent pvops git patches applied and pcifront being enabled as
> a module).
>
> While trying to switch from xen source to jiffies source, I got the same
> message as Tobias:
>
> jiffies clocksource is not HRT compatible. Cannot switch while in
> HRT/NOHZ mode
>
> I can definitely say that this previously mentioned warning from hrtimer
> about interrupt being too slow is the marking of the start of all the
> troubles. E.g. when I run my Dom0 for some time without starting any
> other VMs, the system behaves good, and no warning in dmesg. Only after
> I start a VM, and probably depending on how heavy load it produces, the
> warning appears in Dom0 dmesg and the problem becomes "feelable". And,
> depending on what new "delta" is being chosen, the system is either
> still usable -- e.g. with a delta like in this case:
>
> hrtimer: interrupt too slow, forcing clock min delta to 82595226 ns
>
> which is around 80ms (still the very subtle hiccups can be observed when
> you press and hold a key for some time), or totally unusable, if one is
> unlucky, and the "safe" delta got chosen to be something around 0.5s
> (which interestingly happens most often in my case).
>
> The "clocksource tsc unstable" messages trouble me too BTW. They seem to
> appear before the hrtimer "interrupt too slow" messages.
>
But this "tsc unstable" message does not seem to be so critical, e.g. I
just started my system (xen clocksource) and started a VM, and got the
usual hrtimer "slow interrupt" warning, and then all the symptoms
started, but there no "tsc unstables" warning in dmesg.
However, I previously missed another message, that seem to occur at the
very beginning of the system life (before I started any other VMs):
Marking TSC unstable due to TSC halts in idle
j.
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 226 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2010-03-12 21:13 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-09 10:47 A clocksource question Joanna Rutkowska
2010-03-09 10:50 ` Keir Fraser
2010-03-09 10:54 ` Joanna Rutkowska
2010-03-09 11:06 ` Joanna Rutkowska
2010-03-09 12:07 ` Pasi Kärkkäinen
2010-03-09 12:10 ` Joanna Rutkowska
2010-03-09 15:42 ` Konrad Rzeszutek Wilk
2010-03-09 23:36 ` Jeremy Fitzhardinge
2010-03-10 22:13 ` Joanna Rutkowska
2010-03-11 0:07 ` Dan Magenheimer
2010-03-11 0:15 ` Joanna Rutkowska
2010-03-11 0:21 ` Ian Pratt
2010-03-11 0:44 ` Dan Magenheimer
2010-03-12 0:34 ` Joanna Rutkowska
2010-03-11 0:52 ` Joanna Rutkowska
2010-03-11 1:06 ` Jeremy Fitzhardinge
2010-03-11 1:19 ` Joanna Rutkowska
2010-03-11 4:55 ` Jeremy Fitzhardinge
2010-03-11 10:49 ` Joanna Rutkowska
2010-03-12 0:27 ` Joanna Rutkowska
2010-03-12 0:49 ` Jeremy Fitzhardinge
2010-03-12 0:38 ` Joanna Rutkowska
2010-03-12 19:02 ` Joanna Rutkowska
2010-03-12 21:24 ` Jeremy Fitzhardinge
2010-03-12 21:56 ` Tobias Geiger
2010-03-12 22:02 ` Jeremy Fitzhardinge
2010-03-12 21:01 ` Joanna Rutkowska
2010-03-12 21:13 ` Joanna Rutkowska [this message]
2010-03-12 23:48 ` Jeremy Fitzhardinge
2010-03-13 9:58 ` Joanna Rutkowska
2010-03-13 19:30 ` Jeremy Fitzhardinge
2010-03-15 6:49 ` Tobias Geiger
2010-03-16 6:01 ` Joanna Rutkowska
2010-03-17 13:35 ` Tobias Geiger
2010-03-17 15:21 ` Joanna Rutkowska
2010-03-17 16:20 ` Jeremy Fitzhardinge
2010-03-17 17:05 ` Joanna Rutkowska
2010-03-17 17:21 ` Jeremy Fitzhardinge
2010-03-17 16:26 ` Dan Magenheimer
2010-03-12 22:56 ` Tobias Geiger
2010-03-11 7:47 ` Keir Fraser
-- strict thread matches above, loose matches on Subject: below --
2010-03-12 11:42 Tobias Geiger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B9AAE6A.6050801@invisiblethingslab.com \
--to=joanna@invisiblethingslab.com \
--cc=jeremy@goop.org \
--cc=tobias.geiger@vido.info \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).