All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] perf report: different reports when run on terminal as opposed to script
@ 2012-10-29 16:01 Dhaval Giani
  2012-10-29 16:45 ` Dhaval Giani
  0 siblings, 1 reply; 6+ messages in thread
From: Dhaval Giani @ 2012-10-29 16:01 UTC (permalink / raw)
  To: Arnaldo de Melo, mingo, Peter Zijlstra, namhyung; +Cc: akshay kumar, LKML

Hi,

As part of a class assignment I have to collect some performance
statistics. In order to do so I run

perf record -g <the program I have to profile>

And in another window, I start 200 threads of the load generator
(which is not recorded by perf)

This generates me statistics that I expect to see, and I am happy. As
this is academia and a class assignment, I need to collect information
and analyze it across different setups. Which of course meant I script
this whole thing, which basically is

for i in all possibilities
do
perf record -g <the program I have to profile> &
WAITPID=$!
for j in NR_THREADS
do
<start load generator> &
KILLPID=$!
done
wait $PID
kill $KILLPID
mv perf.data results/perf.data.$i
done

(This is basic pseudo script of what I am doing), which results me
having my profile being topped by _vscanf() and the function which I
was seeing dominating in the older report dropping down to something
like 5% (as opposed to 16-17%)

Have I misunderstood how perf works? Something deeper? I am currently
on 3.6.3. I can update to the latest upstream and report back. Any
debug code is very welcome. I can also make my toy program and the
scripts available for you to try out.

Thanks!
Dhaval

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-31 22:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-29 16:01 [BUG] perf report: different reports when run on terminal as opposed to script Dhaval Giani
2012-10-29 16:45 ` Dhaval Giani
2012-10-30  7:42   ` Namhyung Kim
2012-10-30 12:05     ` Dhaval Giani
2012-10-31  7:12       ` Namhyung Kim
2012-10-31 22:15         ` Dhaval Giani

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.