xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Lloyd Dizon <thecarrionkind@gmail.com>
Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org>,
	Todd Deshane <todd.deshane@xen.org>,
	xen-devel mailing list <xen-devel@lists.xensource.com>,
	Remi Gacogne <rgacogne-xen@valombre.net>
Subject: Re: [Xen-users] Xen timekeeping best practices
Date: Mon, 16 Apr 2012 15:57:03 +0100	[thread overview]
Message-ID: <1334588223.14560.205.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <CAFj8LaeXZNzSaNVcAMU1r3svwh4UrZLhv1wZfXn7_UHaT7A3GA@mail.gmail.com>

On Mon, 2012-04-16 at 15:45 +0100, Lloyd Dizon wrote:
> On Mon, Apr 16, 2012 at 11:57 AM, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> >
> > On Fri, 2012-04-13 at 18:22 +0100, Todd Deshane wrote:
> > > Adding Xen-devel.
> > >
> > > What are the current timekeeping best practices now?
> >
> > pvops kernels behave as if independent_wallclock == 1, so the existing
> > advice:
> >        set /proc/sys/xen/independent_wallclock to 1 and run ntp on
> >        domU.
> > still applies.
> 
> This also applies to Xen 4.0 (4.0.0) if I understood correctly?

This is entirely a function of the guest kernel version and not the
hypervisor

> If so and based on previous posts can we resume that this is what is
> recommended:

If you s/Xen3/Classic XenoLinux Kernels/ and s/Xen4/Paravirt Ops Linux
Kernels/g then I think it is somewhat accurate, at least for the PV
line.

I must confess I don't really know for the HVM line. I suspect that it
is actually:

Classic XenoLinux -- no PV time source, independent_wallclock means
nothing, run NTP in the guest

Paravirt ops kernels _without_ PV time PVHVM extensions -- no PV time
source, independent_wallclock means nothing, run NTP in the guest

Paravirt ops kernels _with_ PV time PVHVM extensions -- PV time source,
independent_wallclock always == 1, run NTP.

So in short always run NTP in an HVM guest, regardless of the presence
or absence of PV time extensions.

>         |        Xen3                     |          Xen4               |
> ---------------------------------------------------------------------
> PV    | independent_wallclock = 0 or 1  | independent_wallclock =  1  |
> ---------------------------------------------------------------------
> HVM | independent_wallclock = 0       | independent_wallclock =  1  |
> ---------------------------------------------------------------------
> 
> With priority to independent_wallclock=1 and if activated, ntp required.

  reply	other threads:[~2012-04-16 14:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <alpine.DEB.2.00.1204131435280.16529@legendary.xserve.fr>
     [not found] ` <CAFj8LacDbEc00x6vSyG+hgkB1omVbcE8aiC0Au7gR=xAGicXeA@mail.gmail.com>
     [not found]   ` <CAMrPLWJE5VpfH6d_3ZumHPqOX3Vi2sV3ppahN-WE=kjO2zejcA@mail.gmail.com>
     [not found]     ` <alpine.DEB.2.00.1204131825410.16529@legendary.xserve.fr>
2012-04-13 17:22       ` [Xen-users] Xen timekeeping best practices Todd Deshane
2012-04-16  9:57         ` Ian Campbell
2012-04-16 12:55           ` [Xen-devel] " Remi Gacogne
2012-04-16 14:45           ` Lloyd Dizon
2012-04-16 14:57             ` Ian Campbell [this message]
2012-04-17  7:41               ` Lloyd Dizon
2012-04-17  8:16                 ` [Xen-users] " Ian Campbell
2012-04-17  9:35                   ` [Xen-devel] " Lloyd Dizon

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=1334588223.14560.205.camel@zakaz.uk.xensource.com \
    --to=ian.campbell@citrix.com \
    --cc=rgacogne-xen@valombre.net \
    --cc=thecarrionkind@gmail.com \
    --cc=todd.deshane@xen.org \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-users@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 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).