From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEtip-0000DB-KF for qemu-devel@nongnu.org; Tue, 15 Jan 2008 16:53:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEtin-0000Cm-5U for qemu-devel@nongnu.org; Tue, 15 Jan 2008 16:53:27 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEtim-0000Cj-VQ for qemu-devel@nongnu.org; Tue, 15 Jan 2008 16:53:25 -0500 Received: from wx-out-0506.google.com ([66.249.82.235]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JEtim-0001u3-L8 for qemu-devel@nongnu.org; Tue, 15 Jan 2008 16:53:24 -0500 Received: by wx-out-0506.google.com with SMTP id h31so14761wxd.4 for ; Tue, 15 Jan 2008 13:53:23 -0800 (PST) Message-ID: <761ea48b0801151353m2b1aa434ke575646497af47bb@mail.gmail.com> Date: Tue, 15 Jan 2008 22:53:21 +0100 From: "Laurent Desnogues" Subject: Re: [Qemu-devel] define desired speed? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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 Jan 15, 2008 10:34 PM, Jeremy C. Reed wrote: > Any way to startup qemu with my own desired speed? You can't as qemu emulated target speed is not constant. qemu generates code on-the-fly and uses optimizations that result in big variations. Add to that there's no cycle accuracy at all. > Bochs provides a CPU "IPS" (emulated Instructions Per Second) > configuration that can be adjusted to get at least close to the desired > speed. IIRC Bochs is an interpreted simulator so it can count instructions. Counting instructions is only a crude approximation as most processors have pipeline and caches. > I know that BogoMips is not a real benchmark, but the Linux system I am > running in qemu says it is at 7497.31 BogoMIPS which is the probably same > as if I booted the Linux system outside of qemu on same 1900Mhz hardware. > (I was hoping to see the BogoMips in the 200 to 700 range.) 7.4 BGIPS is an indicator that the bogo loop was very well optimized by qemu and/or the timer is wrong :-) Laurent