Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DWykk-0006zA-0t for qemu-devel@nongnu.org; Sat, 14 May 2005 11:40:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DWykh-0006wV-Km for qemu-devel@nongnu.org; Sat, 14 May 2005 11:40:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWydn-0004r6-HL for qemu-devel@nongnu.org; Sat, 14 May 2005 11:33:23 -0400 Received: from [65.54.175.18] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DWyak-00065D-2E for qemu-devel@nongnu.org; Sat, 14 May 2005 11:30:14 -0400 Message-ID: In-Reply-To: <200505141231.22402.paul@codesourcery.com> From: "Blue Swirl" Subject: Re: [Qemu-devel] Re: request : qemu-smp as target Date: Sat, 14 May 2005 17:22:52 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: paul@codesourcery.com, qemu-devel@nongnu.org >I guess you'd really want to simulate multiple CPUs with multiple host >threads. One of the additional problems could then be memory/cache >coherency. >I'm not sure how much of a problem this would be in practice. If both host >and guest require the same (or no) explicit SMP memory barriert it's not a >problem. It the guest has stronger coherency requirements than the host we >have a problem. Sparc32 architecure requires flushes and atomic instructions in critical code in Total Store Ordering mode. There is also higher performance mode requiring memory barriers called Partial Store Ordering, but I think Linux doesn't enable it. > > For some reason, Sparc performance is low (1/10 of native x86 nbench) > > compared to x86 (2/3). Simulating SMP on a uniprocessor would only >decrease > > performance. > >It think x86-on-x86 user-mode uses code-copying by default. ie. it runs a >lot >of the the code unmodified. In my experience i386-softmmu is generally >10-15x >slower than native, and arm-user is 5-10x slower. Good point. With -no-code-copy I get about 1/6 of native nbench in x86-x86, comparable to Sparc figure. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/