From: Avi Kivity <avi@redhat.com>
To: Tomasz Chmielewski <mangoo@wpkg.org>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: why guests show "Clocksource tsc unstable" on bootup?
Date: Sun, 15 Mar 2009 15:20:38 +0200 [thread overview]
Message-ID: <49BD00A6.20400@redhat.com> (raw)
In-Reply-To: <49BCFD43.9010604@wpkg.org>
Tomasz Chmielewski wrote:
> Avi Kivity schrieb:
>> Tomasz Chmielewski wrote:
>>> Why do my guests show "Clocksource tsc unstable" on bootup?
>>>
>>
>> Linux expects the tsc to be monotonic and to have a 1:1
>> correspondence with real time, which isn't easy to achieve with
>> virtualization.
>
> But the clocksource is kvm-clock, so why does the guest probe tsc at all?
>
Good question. I don't know what the answer is. Maybe the scheduler
uses tsc for its internal clock.
>
> I pasted a part of /proc/cpuinfo below.
> I saw these with kvm-83 and kvm-84 (with cpufreq disabled, as it
> perhaps can matter).
>
> processor : 3
> vendor_id : AuthenticAMD
> cpu family : 15
> model : 65
> model name : Dual-Core AMD Opteron(tm) Processor 2212
> stepping : 2
> cpu MHz : 2000.000
> cache size : 1024 KB
> physical id : 1
> siblings : 2
> core id : 1
> cpu cores : 2
> fpu : yes
> fpu_exception : yes
> cpuid level : 1
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
> fxsr_opt rdtscp lm 3dnowext 3dnow rep_good pni cx16 lahf_lm cmp_legacy
> svm extapic cr8_legacy
> bogomips : 3993.03
> TLB size : 1024 4K pages
> clflush size : 64
> cache_alignment : 64
> address sizes : 40 bits physical, 48 bits virtual
> power management: ts fid vid ttp tm stc
>
This cpu indeed has unstable tsc, but disabling cpufreq should have
fixed it.
Maybe we need to disable C-states as well?
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-03-15 13:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-09 12:01 why guests show "Clocksource tsc unstable" on bootup? Tomasz Chmielewski
2009-03-15 12:56 ` Avi Kivity
2009-03-15 13:06 ` Tomasz Chmielewski
2009-03-15 13:14 ` Michael Tokarev
2009-03-15 13:20 ` Avi Kivity [this message]
2009-03-15 13:31 ` Avi Kivity
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=49BD00A6.20400@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mangoo@wpkg.org \
/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