From: Dominique Martinet <asmadeus@codewreck.org>
To: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Salvatore Bonaccorso <carnil@debian.org>,
Steven Sistare <steven.sistare@oracle.com>,
Pavel Tatashin <pavel.tatashin@microsoft.com>,
Daniel Jordan <daniel.m.jordan@oracle.com>,
linux@armlinux.org.uk, schwidefsky@de.ibm.com,
heiko.carstens@de.ibm.com, John Stultz <john.stultz@linaro.org>,
sboyd@codeaurora.org, x86@kernel.org,
LKML <linux-kernel@vger.kernel.org>,
mingo@redhat.com, Thomas Gleixner <tglx@linutronix.de>,
hpa@zytor.com, douly.fnst@cn.fujitsu.com,
Peter Zijlstra <peterz@infradead.org>,
prarit@redhat.com, feng.tang@intel.com,
Petr Mladek <pmladek@suse.com>,
gnomes@lxorguk.ukuu.org.uk, linux-s390@vger.kernel.org,
boris.ostrovsky@oracle.com, jgross@suse.com, pbonzini@redhat.com,
virtualization@lists.linux-foundation.org, kvm@vger.kernel.org,
qemu-devel@nongnu
Subject: Re: [PATCH v15 23/26] sched: early boot clock
Date: Tue, 8 Jan 2019 00:48:39 +0100 [thread overview]
Message-ID: <20190107234839.GA15269@nautica> (raw)
In-Reply-To: <CA+CK2bDj1f=VpT+k-e8kSSaoLJ3W9-JPPq9udFdDwd6ijXi28g@mail.gmail.com>
Pavel Tatashin wrote on Mon, Jan 07, 2019:
> I could not reproduce the problem. Did you suspend to memory between
> wake ups? Does this time jump happen every time, even if your laptop
> sleeps for a minute?
I'm not sure I understand "suspend to memory between the wake ups".
The full sequence is:
- start a VM (just in case, I let it boot till the end)
- suspend to memory (aka systemctl suspend) the host
- after resuming the host, soft reboot the VM (login through
serial/ssh/whatever and reboot or in the qemu console 'system_reset')
I've just slept exactly one minute and reproduced again with the fedora
stock kernel now (4.19.13-300.fc29.x86_64) in the VM.
Interestingly I'm not getting the same offset between multiple reboots
now despite not suspending again; but if I don't suspend I cannot seem
to get it to give an offset at all (only tried for a few minutes; this
might not be true) ; OTOH I pushed my luck further and even with a five
seconds sleep I'm getting a noticeable offset on first VM reboot after
resume:
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 179.362163] kvm-clock: cpu 0, msr 13c01001, primary cpu clock
[ 179.362163] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
Honestly not sure what more information I could give, I'll try on some
other hardware than my laptop (if I can get a server to resume after
suspend through ipmi or wake on lan); but I don't have anything I could
install ubuntu on to try their qemu's version... although I really don't
want to believe that's the difference...
Thanks,
--
Dominique
next prev parent reply other threads:[~2019-01-07 23:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180719205545.16512-1-pasha.tatashin@oracle.com>
[not found] ` <20180719205545.16512-24-pasha.tatashin@oracle.com>
2018-11-06 5:42 ` [PATCH v15 23/26] sched: early boot clock Dominique Martinet
2018-11-06 11:35 ` Steven Sistare
2019-01-02 20:20 ` Salvatore Bonaccorso
2019-01-03 21:28 ` Pavel Tatashin
2019-01-03 23:43 ` Dominique Martinet
2019-01-07 18:17 ` Pavel Tatashin
2019-01-07 23:48 ` Dominique Martinet [this message]
2019-01-08 1:04 ` Pavel Tatashin
2019-01-08 1:09 ` Dominique Martinet
2019-01-26 2:04 ` Jon DeVree
2019-01-26 16:11 ` Pavel Tatashin
[not found] ` <154644530361.2390.18185252504260044930.reportbug@ci-busyapps.lan.tarent.de>
[not found] ` <20190104053013.GA6519@lorien.valinor.li>
2019-01-04 7:30 ` Bug#918036: [PATCH v15 23/26] sched: early boot clock (was Re: Bug#918036: linux: uptime after reboot wrong (kvm-clock related?)) Thorsten Glaser
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=20190107234839.GA15269@nautica \
--to=asmadeus@codewreck.org \
--cc=boris.ostrovsky@oracle.com \
--cc=carnil@debian.org \
--cc=daniel.m.jordan@oracle.com \
--cc=douly.fnst@cn.fujitsu.com \
--cc=feng.tang@intel.com \
--cc=gnomes@lxorguk.ukuu.org.uk \
--cc=heiko.carstens@de.ibm.com \
--cc=hpa@zytor.com \
--cc=jgross@suse.com \
--cc=john.stultz@linaro.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mingo@redhat.com \
--cc=pasha.tatashin@soleen.com \
--cc=pavel.tatashin@microsoft.com \
--cc=pbonzini@redhat.com \
--cc=peterz@infradead.org \
--cc=pmladek@suse.com \
--cc=prarit@redhat.com \
--cc=qemu-devel@nongnu \
--cc=sboyd@codeaurora.org \
--cc=schwidefsky@de.ibm.com \
--cc=steven.sistare@oracle.com \
--cc=tglx@linutronix.de \
--cc=virtualization@lists.linux-foundation.org \
--cc=x86@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox