From: Dan Kenigsberg Subject: Re: Clock off in guest Date: Wed, 13 Feb 2008 13:25:38 +0200 Message-ID: <20080213112536.GA6132@karma.qumranet.com> References: <1202895704.5251.23.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net To: Koen Vermeer Return-path: Content-Disposition: inline In-Reply-To: <1202895704.5251.23.camel@localhost> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org On Wed, Feb 13, 2008 at 10:41:44AM +0100, Koen Vermeer wrote: > Hi, > > I'm running an Linux AMD64 guest on an AMD64 host. The host is running a > 2.6.23 kernel (self compiled), the guest is running a stock > linux-image-2.6.22-3-amd64 Debian kernel. > > My problem is that the clock on the guest is off (slow), while the clock > on the host seems to be OK. When doing 'time sleep 10' on the guest, it > takes about 16 'real' seconds for it to finish. What is the clock source of your guest? If it is the traditional PIT, you describe a known problem in busy hosts. You may try to set clocksource=tsc in the guest kerenl parameters. Regards, Dan. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/