From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [patch 0/3] separate thread for IO handling V3 Date: Thu, 03 Apr 2008 18:26:17 +0300 Message-ID: <47F4F719.8040703@qumranet.com> References: <20080402232013.121684903@localhost.localdomain> <47F4B045.30102@qumranet.com> <47F4D1BA.8060604@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Dor Laor , kvm-devel@lists.sourceforge.net To: Marcelo Tosatti Return-path: In-Reply-To: <47F4D1BA.8060604@qumranet.com> 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 Avi Kivity wrote: > Avi Kivity wrote: >> >> There's still something wrong. When I start Windows with these >> patches applied, Windows startup consumes ~50 sec of cpu time, >> compared to ~12 sec without. Pinning qemu into cpu 0 seems to fix this. >> >> I'll investigate some more. >> > > Changing GUI_REFRESH_INTERVAL to 1000 (from 30) reduces cpu usage back > to normal. So I'm guessing there's some bad interaction between the > iothread getting the dirty log and vcpu 0. > Turns out we held slots_lock while in guest mode (which we can be in for unbounded time). Dropping the lock restored behavior to normal, so I'm applying the patches. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace