From: Ingo Molnar <mingo@kernel.org>
To: Pekka Enberg <penberg@iki.fi>
Cc: David Ahern <dsahern@gmail.com>,
Pekka Enberg <penberg@kernel.org>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Subject: Re: [PATCH] perf trace: Simplify '--summary' output
Date: Tue, 12 Nov 2013 22:50:24 +0100 [thread overview]
Message-ID: <20131112215024.GA29761@gmail.com> (raw)
In-Reply-To: <52829FB8.6070404@iki.fi>
* Pekka Enberg <penberg@iki.fi> wrote:
> > %. That was dropped in the recent output change.
>
> Sorry about that. Why do we show them in percentages, btw? Standard
> deviation is usually represented in the same unit as the data to make it
> readable.
So, the problem with output in the same unit is that it's hard to tell
'at a glance' what the real, relative stddev is:
syscall calls min avg max stddev
--------------- -------- -------- -------- -------- ------
sendmsg 2 0.002 0.005 0.008 0.001
recvmsg 2 0.002 0.003 0.005 0.0003
epoll_wait 1 0.000 0.000 0.000 0.000
it's also harder to compare stddevs side by side if they are absolute.
The way we try to solve this in perf stat is to output:
comet:~/tip> perf stat -a --repeat 10 --null usleep 1000
Performance counter stats for 'system wide' (10 runs):
0.001772475 seconds time elapsed ( +- 0.58% )
Oh, btw., would anyone would like to implement a cool new 'perf time'
subcommand, which offers time(1) look-alike output but with better
precision and sttdev output?
comet:~> time usleep 1000
real 0m0.002s
user 0m0.000s
sys 0m0.000s
# Mockup:
comet:~> perf time --repeat 10 usleep 1000
real 0m0.002s [ +- 1.38% ]
user 0m0.000s [ +- 0.53% ]
sys 0m0.000s [ +- 0.43% ]
?
I'd use it instead of 'time' all the time ;-)
Thanks,
Ingo
next prev parent reply other threads:[~2013-11-12 21:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-12 14:42 [PATCH] perf trace: Simplify '--summary' output Pekka Enberg
2013-11-12 21:33 ` Ingo Molnar
2013-11-12 21:36 ` David Ahern
2013-11-12 21:38 ` Pekka Enberg
2013-11-12 21:42 ` David Ahern
2013-11-12 21:50 ` Ingo Molnar [this message]
2013-11-12 21:40 ` Ingo Molnar
2013-11-13 6:57 ` Pekka Enberg
2013-11-13 11:14 ` Ingo Molnar
2013-11-12 21:56 ` [tip:perf/urgent] " tip-bot for Pekka Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131112215024.GA29761@gmail.com \
--to=mingo@kernel.org \
--cc=acme@ghostprotocols.net \
--cc=dsahern@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=penberg@iki.fi \
--cc=penberg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.