public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Fjellstrom <thomas@fjellstrom.ca>
To: Avi Kivity <avi@redhat.com>
Cc: Nick <oinksocket@letterboxes.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: kvm linux guest hanging for minutes at a time
Date: Thu, 11 Aug 2011 10:37:29 -0600	[thread overview]
Message-ID: <201108111037.29798.thomas@fjellstrom.ca> (raw)
In-Reply-To: <4E437901.9070207@redhat.com>

On August 11, 2011, Avi Kivity wrote:
> On 08/09/2011 06:33 PM, Nick wrote:
> > Hi,
> > 
> > Just joined this list, looking for leads to solve a similar-sounding
> > problem (guest processes hanging for seconds or minutes when host IO
> > load is high). I'll say more in a separate email, but I caught the end
> > of this thread and wanted to ask about kvm-clock.
> > 
> > Naively I'd have thought that using the wrong clock would not actually
> > *cause* hangs like this. Or is that what you're implying?
> 
> Using the wrong clock easily causes hangs.  The system schedules a
> wakeup in 3 ms, wrong clock causes it to wakeup in 3 years, you get a
> hang for (3 years - 3 ms).

I am wondering though why the system time would be used to schedule wakeups 
when something a little more like the posix CLOCK_MONOTONIC would make more 
sense. You (at least I don't think you do) really don't want host clock 
changes to interfere with a guest so much that it sleeps forever.

-- 
Thomas Fjellstrom
thomas@fjellstrom.ca

      reply	other threads:[~2011-08-11 16:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-07 14:06 kvm linux guest hanging for minutes at a time Thomas Fjellstrom
2011-08-09  9:16 ` Avi Kivity
2011-08-09 12:03   ` Thomas Fjellstrom
2011-08-09 12:36     ` Avi Kivity
2011-08-09 14:31       ` Thomas Fjellstrom
2011-08-09 14:37         ` Avi Kivity
2011-08-09 14:46           ` Thomas Fjellstrom
2011-08-09 14:49             ` Avi Kivity
2011-08-09 14:54               ` Thomas Fjellstrom
2011-08-09 15:01               ` Thomas Fjellstrom
2011-08-10 15:03             ` Philipp Hahn
2011-08-09 15:33           ` Nick
2011-08-11  6:38             ` Avi Kivity
2011-08-11 16:37               ` Thomas Fjellstrom [this message]

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=201108111037.29798.thomas@fjellstrom.ca \
    --to=thomas@fjellstrom.ca \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=oinksocket@letterboxes.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