[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Hibernation


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: mail4dla@xxxxxxxxxxxxxx
  • Date: Fri, 13 Jul 2007 09:59:51 +0200
  • Delivery-date: Fri, 13 Jul 2007 00:57:45 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lvVbQSv/AK8p7VFf6lGX4x6oz/qof39Xa4Gcf9cz8AJ0gIxOwP+GdrsoN0beSRntbZ3v6iO7/Xb0Ps5BvcIb9xxMoVM7r6ysZ5s1EV/jNYKzZg/x+L0Tk7AsF5/6n15pTAOTxj3wUF8B3g19wFgfmXPNAPiwxptaAaEcZf2FgZA=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello all,

thanks for the clarification. You saved me from reading the authoritative documentation (aka sourcecode) :-)

By default, PV guests share the host's time that cannot be changed from the DomU.

The application layer is no problem as this can be put into the design requirements.
My concern was the one that Mark pointed out and I am glad to hear that PV domains are prepared to handle this.
However, advances in time should be less a problem than stepping backwards, as in that case there might be files that have been created or accessed in the "future".
btw: If you have a look at tools like ntpdate, they can be configured to not correct the time immediately but over multiple iterations that only cause moderate time changes.

Regards,
dla

On 7/12/07, Dylan Martin <dmartin@xxxxxxxxxxxx> wrote:
Here's another thing.  AFAIK, your running OS probably ignores the
hardware clock.  The only time your system accesses the hw clock is
during boot up to set the system clock and during shutdown to set the
HW clock to match up with the system clock.  Your suspended guest
should need NTP or something to correct the system clock when it wakes
up.

Disclaimer: I'm basing this off of experience setting up NTP servers 5
years ago, with zero exposure to how Windows handles things.  I think
it's the same though.

> > > I am a bit scared that this might cause problems within the affected
> > > OS because after restore, the system clock will show a great leap.
> >
> > IMHO, it would be really weird for an OS, apps or anything to
> > seriously freak out if the clock leaped.  I mean, does your computer
> > crash a daylight savings?  What about when you just set the clock by
> > hand?  If that breaks your OS or apps, you've got bigger problems.
>
> Well, if apps break they're arguably badly written.  Not that we can probably
> rule that out ;-)  But I wouldn't expect big problems with this; as Dylan
> quite rightly points out there are lots of circumstances when the clock can
> change unexpectedly.
>
> The case of suspend / resume is a little different, in that if you suspend an
> OS to disk and then resume it later without telling it it /could/ conceivably
> confuse the OS, which might not expect time to suddenly change underneath it.
> For PV, this is fine.  For HVM...  well I assume it works somehow ;-)  I'm
> just not sure how it's currently implemented or if it could maybe be improved
> by making the guest OS more aware of the suspend process.
>
> Cheers,
> Mark
>
>
> --
> Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
> Mark: To answer a question with a question: What use is a skateboard?
> Dave: Skateboards have wheels.
> Mark: My wheel has a wheel!

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.