From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsXHR-0007GY-QQ for qemu-devel@nongnu.org; Thu, 05 Jun 2014 09:00:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsXHL-0003G9-Ro for qemu-devel@nongnu.org; Thu, 05 Jun 2014 09:00:29 -0400 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:50400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsXHL-0003E7-4q for qemu-devel@nongnu.org; Thu, 05 Jun 2014 09:00:23 -0400 Received: by mail-la0-f41.google.com with SMTP id e16so552008lan.14 for ; Thu, 05 Jun 2014 06:00:21 -0700 (PDT) Message-ID: <539069E3.5040200@gmail.com> Date: Thu, 05 Jun 2014 17:00:19 +0400 From: Sergey Fedorov MIME-Version: 1.0 References: <538E0233.7040202@gmail.com> <87a99rwzt3.fsf@linaro.org> In-Reply-To: <87a99rwzt3.fsf@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] =?utf-8?b?562U5aSNOiAgRXhwYW5zaW9uIFJhdGlvIElzc3Vl?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QWxleCBCZW5uw6ll?= , Chaos Shu Cc: 'Peter Maydell' , 'QEMU Developers' On 05.06.2014 12:02, Alex Bennée wrote: > Chaos Shu writes: > >> Hi >> >> I'm running SPEC CPU2006 on three kinds of situation, native aarch64 binary and emulator x86_64 system running SPEC CPU2006 and linux user mode level running x86_64 SPEC CPU2006 binary. >> >> To find where the performance lose, translator ? or execution of instruction after TCG? Or something else >> >> I guess most of time, up to 90% should be spent on exec the >> instruction of TCG, does that mean the quality of translating lead to >> the performance lost directly ? > It really depends on the type of code you are executing but yes most of > the time should be spent in TCG generated code. However if you are > running a lot of FP heavy code you'll find it spends a lot of time in > helper routines calling the internal softfloat code. > > I posted some patches a few months ago that enabled output to help the > Linux "perf" tool track this. I haven't got time to re-work at the > moment but it might give you a head start to instrumentation: > > https://patches.linaro.org/27229/ Thanks for replying! I used to think about Drystone, gzim, gcc in user mode. In system mode, Linux boot up and, again, Drystone, gzim, gcc. Regarding SPEC test, that is not available for free, isn't it? Thanks, Sergey > >> Thanks >> Chaos >> >> On 29.05.2014 13:04, Peter Maydell wrote: >>> No, we don't in general have any benchmarking of TCG codegen. I think >>> if we did do benchmarking we'd be interested in performance >>> benchmarking -- code expansion ratio doesn't seem like a very >>> interesting thing to measure to me. >> Hi, >> >> I have a plan to play with TCG performance benchmarking. And then try to implement some optimizations. So maybe there would be some suggestions on how to perform such benchmarking? What tests seems to be appropriate for this task? I think the benchmarking should reflect real TCG use cases. So what the most typical use cases for TCG are there? Seems that system and user modes may be different from this point. >> >> Appreciate any help. >> >> Thanks, >> Sergey.