From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: XP smp using a lot of CPU Date: Wed, 13 May 2009 09:56:18 +0300 Message-ID: <4A0A6F12.9000909@redhat.com> References: <1242175298.15140.12.camel@iron.psg.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Ross Boylan Return-path: Received: from mx2.redhat.com ([66.187.237.31]:36694 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbZEMG6l (ORCPT ); Wed, 13 May 2009 02:58:41 -0400 In-Reply-To: <1242175298.15140.12.camel@iron.psg.net> Sender: kvm-owner@vger.kernel.org List-ID: Ross Boylan wrote: > I just installed XP into a new VM, specifying -smp 2 for the machine. > According to top, it's using nearly 200% of a cpu even when I'm not > doing anything. > > Is this real CPU useage, or just a reporting problem (just as my disk > image is big according to ls, but isn't really)? > > If it's real, is there anything I can do about it? > > kvm 0.7.2 on Debian Lenny (but 2.6.29 kernel), amd64. Xeon chips; 32 > bit version of XP pro installed, now fully patched (including the > Windows Genuine Advantage stuff, though I cancelled it when it wanted to > run). > > Task manager in XP shows virtually no CPU useage. > > Please cc me on responses. > > I'm guessing Windows uses a pio port to sleep, which kvm doesn't support. Can you provide kvm_stat output? -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.