Nagy,

On Sun, Apr 19, 2009 at 9:05 AM, Nagy Mostafa <nagy.most...@gmail.com> wrote:
> Hi,
>
> I have a question about something strange I have noticed while collecting
> profiles using pfmon. When I run a single cold run of the 2to3 benchmark,
> the "time" command (or using --show-time) gives me:
> $time /usr/local/bin/python -E -O benchmarks/unladen-swallow/lib/2to3/2to3
> -f all benchmarks/unladen-swallow/lib/2to3 > /dev/null
>
> real 0m19.523s      user 0m19.485s         sys 0m0.044s
>

If you want comparable results, you simply need to count and breakdown
kernel vs. user. Here how you can do this (assuming Core 2):

pfmon -eunhalted_core_cycles,cpu_clk_unhalted:core_p,cpu_clk_unhalted_core_p
--priv-levels=uk,u,k 2to3

You will get 3 counts out. The first counts user+kernel cycles, the
2nd only user, 3rd only kernel.

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to