From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JybuH-0000iU-NL for qemu-devel@nongnu.org; Tue, 20 May 2008 20:10:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JybuG-0000i5-AW for qemu-devel@nongnu.org; Tue, 20 May 2008 20:10:13 -0400 Received: from [199.232.76.173] (port=45669 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JybuG-0000hx-43 for qemu-devel@nongnu.org; Tue, 20 May 2008 20:10:12 -0400 Received: from csl.cornell.edu ([128.84.224.10]:4968 helo=vlsi.csl.cornell.edu) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JybuF-0007Qs-VE for qemu-devel@nongnu.org; Tue, 20 May 2008 20:10:12 -0400 Received: from bell.csl.cornell.edu (bell.csl.cornell.edu [128.84.224.41]) by vlsi.csl.cornell.edu (8.13.4/8.13.4) with ESMTP id m4L09vju020185 for ; Tue, 20 May 2008 20:10:02 -0400 (EDT) Date: Tue, 20 May 2008 20:09:57 -0400 (EDT) From: Vince Weaver Subject: Re: [Qemu-devel] Performance Monitoring In-Reply-To: <200805202306.45277.paul@codesourcery.com> Message-ID: <20080520200519.N34495-100000@bell.csl.cornell.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tue, 20 May 2008, Paul Brook wrote: > > You probably already know this, but I'd be surprised if the statistics you get > have much/any correlation with real world performance on modern hardware. You might be suprised. I've been adding hooks to Qemu to generate traces for use in computer architecture research. I compare the results to hardware performance counters, and things like branch-prediction, cache miss rates, and total instruction mixes come across very well (with errors less than 5-10%). [this is simulating MIPS and also x86] Now things that depend a lot on actual timing like cycle counts and CPI you can't do. I've actually had a paper published that involves using Qemu in a similar fashion. It generates traces at least as good as Valgrind and Pin can. http://www.csl.cornell.edu/~vince/papers/hipeac08.html Vince