From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH v2 00/11] KVM in-guest performance monitoring Date: Thu, 16 Jun 2011 17:27:01 +0200 Message-ID: <1308238021.13240.84.camel@twins> References: <1307972106-2468-1-git-send-email-avi@redhat.com> <4DF66B1A.6060606@cisco.com> <4DF71DA3.2080300@redhat.com> <4DF7972F.3040103@cisco.com> <4DF79941.9050705@siemens.com> <4DF79B6F.10102@cisco.com> <4DF79EFE.1050201@cisco.com> <4DF7A436.8090308@cisco.com> <4DF873FD.6040903@redhat.com> <4DF8A82F.5090900@cisco.com> <4DF8B1F8.6030502@redhat.com> <4DF8D8FE.2080808@cisco.com> <4DF8DD87.8040905@redhat.com> <4DF8E328.6070708@cisco.com> <4DFA0AC4.9050702@redhat.com> <4DFA0E56.70301@cisco.com> <1308236915.13240.66.camel@twins> <4DFA1F18.4090903@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Cc: Avi Kivity , Marcelo Tosatti , kvm@vger.kernel.org, Ingo Molnar , Arnaldo Carvalho de Melo To: David Ahern Return-path: Received: from casper.infradead.org ([85.118.1.10]:46473 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754343Ab1FPP1a convert rfc822-to-8bit (ORCPT ); Thu, 16 Jun 2011 11:27:30 -0400 In-Reply-To: <4DFA1F18.4090903@cisco.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 2011-06-16 at 09:19 -0600, David Ahern wrote: > > On 06/16/2011 09:08 AM, Peter Zijlstra wrote: > > On Thu, 2011-06-16 at 08:08 -0600, David Ahern wrote: > >> Command: > >> perf stat -e instructions openssl speed aes > >> > >> Guest: > >> 135,522,189,056 instructions # 0.00 insns per cycle > >> > >> > >> Host: > >> 346,082,922,185 instructions # 0.00 insns per cycle > > > > How does: perf stat -e instructions:u openssl speed aes, compare? > > In the past couple of months I recall you posted a one billion > instruction benchmark in analyzing perf correctness. I can't seem to > find that email. Do you recall the benchmark and if so can you resend ? Sure, I've got a couple of those things lying around: # perf stat -e instructions:u ./loop_1b_instructions-4x Performance counter stats for './loop_1b_instructions-4x': 4,000,085,344 instructions:u # 0.00 insns per cycle 0.311861278 seconds time elapsed --- #include #include #include main () { int i; fork(); fork(); for (i = 0; i < 100000000; i++) { asm("nop"); asm("nop"); asm("nop"); asm("nop"); asm("nop"); asm("nop"); asm("nop"); } wait(NULL); wait(NULL); wait(NULL); wait(NULL); }