All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Buswell <buswellj@carbonmountain.com>
To: kvm@vger.kernel.org
Subject: [PROBLEM] Guest with SMP >=2 with kvm_clock has jumping clock every few seconds
Date: Mon, 12 Apr 2010 14:20:44 -0400	[thread overview]
Message-ID: <4BC3647C.80102@carbonmountain.com> (raw)

I ran into the problem below running 2.6.33.2:

Problem: KVM guest running Linux 2.6.33.2 with kvm_clock as the clock 
source and more than 1 virtual CPU has the clock jumping forward 1 hour, 
13 minutes and 17 seconds (consistently)

Hardware: AMD Athlon Dual Core 4850e @ 2511.769 MHz

I can reproduce this consistently, and it does not happen on the same 
machine if I launch the same KVM guest with -smp 1.

With RTC compiled into the kernel you can see that its just clock, the 
localtime was set to UTC:

Running the following in a loop:

cat /sys/class/rtc/rtc0/time ; date

You see:

18:07:49
Mon Apr 12 18:07:49 UTC 2010

18:08:21
Mon Apr 12 19:21:49 UTC 2010

18:08:21
Mon Apr 12 18:08:22 UTC 2010

The load average on the system is 0, the guest is doing nothing but 
running init. It happens regardless of whether I run one guest or over 
10 guests on the same system.

I can easily reproduce this issue, so if you need someone to test 
patches etc, I can easily do that.

Thanks

-- 
John Buswell
http://www.carbonmountain.com


             reply	other threads:[~2010-04-12 18:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 18:20 John Buswell [this message]
2010-04-14 15:00 ` [PROBLEM] Guest with SMP >=2 with kvm_clock has jumping clock every few seconds John Buswell

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=4BC3647C.80102@carbonmountain.com \
    --to=buswellj@carbonmountain.com \
    --cc=kvm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.