From: Diana Crisan <dcrisan@flexiant.com>
To: David Vrabel <david.vrabel@citrix.com>
Cc: Anthony PERARD <anthony.perard@citrix.com>,
George Dunlap <dunlapg@umich.edu>,
xen-devel@lists.xen.org, Alex Bligh <alex@alex.org.uk>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: HVM Migration of domU on Qemu-upstream DM causes stuck system clock with ACPI
Date: Tue, 21 May 2013 12:16:14 +0100 [thread overview]
Message-ID: <519B577E.6070200@flexiant.com> (raw)
In-Reply-To: <519B50C9.1000008@citrix.com>
On 21/05/13 11:47, David Vrabel wrote:
> On 21/05/13 11:22, Diana Crisan wrote:
>> Hello,
>>
>>> On Mon, May 20, 2013 at 11:38:45PM +0100, Alex Bligh wrote:
>>>> Konrad,
>>>>
>>>> --On 20 May 2013 15:28:52 -0400 Konrad Rzeszutek Wilk
>>>> <konrad.wilk@oracle.com> wrote:
>>>>
>>>>> It was actually David (CC-ing him here). Alex, when you boot the hosts,
>>>>> are the RTC times the same? (date?)
>>>> I believe they boot with ntpdate and run ntp, so the wallclock times are
>>>> the same. I haven't specifically checked the CMOS clock times if that's
>>>> what you meant - I'm not even sure how one does that - but I believe
>>>> ntp writes to the CMOS RTC these days.
>>> 11 minutes after ntpd has started.
> NTP updates the persistent clock when it is first synchronized and then
> every 11 minutes.
>
>> I have checked our machines and they aren't running ntpd, but they
>> were synchronised with ntpdate. The date command showed the wallclock
>> was in sync and clock -r showed the rtc was also in sync. Both cases
>> have a delay of at most 1 second.
> Running ntpdate does /not/ set the persistent wallclock so the
> persistent clock may be incorrect however if the CMOS RTC is correct on
> both machines then the persistent clocks will be approximately the same
> anyway.
> So, you could try the wallclock[1] series but I think it is unlikely to
> help here.
>
> It looks like the guests may not be properly notified of a resume (after
> the migration) and therefore are not properly accounting for the step
> change in their clock source. This means migrations one way look like
> the clock source as stepped backwards and I guess this is confusing the
> kernel as the close source is supposed to be monotonic.
>
> Migrations the other way then work fine as the clock source steps
> forwards not backwards.
Actually, I have seen the problem replicated when the vm migrates back
to the original host ( the one it was started on), as well as on a first
migrate. I can confirm I alternated between the hosts on the creation of
the vm to ensure I get all the possible scenarios. This was done without
re-synchronising the hosts.
> Can you restart the hosts say, 5 minutes apart and then see if the
> guest's time recovers (without manually setting the time etc.) within ~5
> mins?
I restarted the hosts as you asked 5 minutes apart and the wallclocks
and the hardware clocks are still in sync without having run any manual
update/ ntpdate on the clock.
> David
>
> [1] http://lists.xen.org/archives/html/xen-devel/2013-05/msg01399.html
next prev parent reply other threads:[~2013-05-21 11:16 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1223417765.8633857.1368537033873.JavaMail.root@zimbra002>
2013-05-14 13:11 ` HVM Migration of domU on Qemu-upstream DM causes stuck system clock with ACPI Diana Crisan
2013-05-14 16:09 ` George Dunlap
2013-05-15 10:05 ` Diana Crisan
2013-05-15 13:46 ` Alex Bligh
2013-05-20 11:11 ` George Dunlap
2013-05-20 19:28 ` Konrad Rzeszutek Wilk
2013-05-20 22:38 ` Alex Bligh
2013-05-21 1:04 ` Konrad Rzeszutek Wilk
2013-05-21 10:22 ` Diana Crisan
2013-05-21 10:47 ` David Vrabel
2013-05-21 11:16 ` Diana Crisan [this message]
2013-05-21 12:49 ` David Vrabel
2013-05-21 13:16 ` Alex Bligh
2013-05-24 16:16 ` George Dunlap
2013-05-25 10:18 ` Alex Bligh
2013-05-26 8:38 ` Ian Campbell
2013-05-28 15:06 ` Diana Crisan
2013-05-29 16:16 ` Alex Bligh
2013-05-29 19:04 ` Ian Campbell
2013-05-30 14:30 ` George Dunlap
2013-05-30 15:39 ` Frediano Ziglio
2013-05-30 15:26 ` George Dunlap
2013-05-30 15:55 ` Diana Crisan
2013-05-30 16:06 ` George Dunlap
2013-05-30 17:02 ` Diana Crisan
2013-05-31 8:34 ` Diana Crisan
2013-05-31 10:54 ` George Dunlap
2013-05-31 10:59 ` George Dunlap
2013-05-31 11:41 ` George Dunlap
2013-05-31 21:30 ` Konrad Rzeszutek Wilk
2013-05-31 22:51 ` Alex Bligh
2013-06-03 9:43 ` George Dunlap
2013-05-31 11:18 ` Alex Bligh
2013-05-31 11:36 ` Diana Crisan
2013-05-31 11:41 ` Diana Crisan
2013-05-31 11:49 ` George Dunlap
2013-05-31 11:57 ` Alex Bligh
2013-05-31 12:40 ` Ian Campbell
2013-05-31 13:07 ` George Dunlap
2013-05-31 15:10 ` Roger Pau Monné
2013-06-03 8:37 ` Roger Pau Monné
2013-06-03 10:05 ` Stefano Stabellini
2013-06-03 10:23 ` Roger Pau Monné
2013-06-03 10:30 ` Stefano Stabellini
2013-06-03 11:16 ` George Dunlap
2013-06-03 11:24 ` Diana Crisan
2013-06-03 14:01 ` Diana Crisan
2013-06-03 17:09 ` Alex Bligh
2013-06-03 17:12 ` George Dunlap
2013-06-03 17:18 ` Alex Bligh
2013-06-03 17:25 ` George Dunlap
2013-06-03 17:42 ` Alex Bligh
2013-06-03 10:25 ` George Dunlap
2013-05-31 13:16 ` Alex Bligh
2013-05-31 14:36 ` Ian Campbell
2013-05-31 15:18 ` Alex Bligh
2013-05-31 12:34 ` Ian Campbell
2013-05-30 14:32 ` George Dunlap
2013-05-30 14:42 ` Diana Crisan
2013-06-03 17:18 Alex Bligh
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=519B577E.6070200@flexiant.com \
--to=dcrisan@flexiant.com \
--cc=alex@alex.org.uk \
--cc=anthony.perard@citrix.com \
--cc=david.vrabel@citrix.com \
--cc=dunlapg@umich.edu \
--cc=konrad.wilk@oracle.com \
--cc=xen-devel@lists.xen.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.