apc-llc / likwid

Lightweight performance tools
https://code.google.com/p/likwid/
GNU General Public License v3.0
1 stars 0 forks source link

How to use the timeline mode on sandy bridge? #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using likwid-perfctr tool to calculate the IPC at every 2ms. I am working 
on the intel Xeon-E5 architecture and I am using command "sudo likwid-perfctr 
-c 0 -M 0 -g CLOCK -d 2ms ./proj"

I am expected to get the IPC every 2ms however above command is giving me only 
one value of IPC.
Can you please guide me?

Regards,

Original issue reported on code.google.com by maya.mal...@gmail.com on 29 Jul 2014 at 9:13

GoogleCodeExporter commented 9 years ago
Hi,

your command string is not fully correct, there is no -d switch anymore, the 
timeline mode is activated with -t <time>. Moreover, I recommend to pin your 
application to a CPU core (-C instead of -c), otherwise your process could be 
scheduled to another CPU core and you won't get the results you want.

sudo likwid-perfctr -C 0 -M 0 -g CLOCK -t 2ms ./proj

Greetings
Thomas

Original comment by Thomas.R...@googlemail.com on 30 Jul 2014 at 8:06

GoogleCodeExporter commented 9 years ago
Thomas

Thanks for your reply. So the output of the command is sudo likwid-perfctr -C 0 
-M 0 -g CLOCK -t 2s ./proj

CPU type:   Intel Core SandyBridge EP processor 
CPU clock:  1.90 GHz 
Measuring group CLOCK
-------------------------------------------------------------
CORES: 0 
INSTR_RETIRED_ANY 0.000000e+00 1.390000e+02 
CPU_CLK_UNHALTED_CORE 0.000000e+00 2.102000e+03 
CPU_CLK_UNHALTED_REF 0.000000e+00 3.458000e+03 
PWR_PKG_ENERGY 0.000000e+00 5.278400e+04 
PWR_DRAM_ENERGY 0.000000e+00 -6.294608e+180 
Runtime (RDTSC) [s] 0.000000e+00  0.000000e+00  
Runtime unhalted [s] 0.000000e+00  1.106317e-06  
Clock [MHz] 0.000000e+00  1.154944e+03  
CPI 0.000000e+00  1.512230e+01  
Energy [J] 0.000000e+00  5.278400e+04  
Power [W] 0.000000e+00  inf  
Energy DRAM [J] 0.000000e+00  9.223372e+18  
Power DRAM [W] 0.000000e+00  inf  
INSTR_RETIRED_ANY 2.000099e+00 1.840730e+05 
CPU_CLK_UNHALTED_CORE 2.000099e+00 6.792210e+05 
CPU_CLK_UNHALTED_REF 2.000099e+00 1.075419e+06 
PWR_PKG_ENERGY 2.000099e+00 1.300000e+01 
PWR_DRAM_ENERGY 2.000099e+00 1.300000e+01 
Runtime (RDTSC) [s] 2.000099e+00  2.000099e+00  
Runtime unhalted [s] 2.000099e+00  3.574851e-04  
Clock [MHz] 2.000099e+00  1.200015e+03  
CPI 2.000099e+00  3.689955e+00

However, the ./proj is actually a script that has the command "bin/hadoop jar 
hadoop-0.20.2-examples.jar wordcount input output". When I run sudo 
likwid-perfctr -C 0 -M 0 -g CLOCK -t 2ms ./proj it is not generating the output 
file on HDFS. I think above command is calculating the performance parameters 
every 2s however ./proj is not executing.

Original comment by maya.mal...@gmail.com on 30 Jul 2014 at 3:27

GoogleCodeExporter commented 9 years ago
Hi,

Which version of LIKWID are you using? I've tried 3.1.2 and got all desired 
values from the timeline mode.

Can you try to run the hadoop command directly without the detour of the script 
./proj? Likwid does pin only the processes of the executable itself but does 
not create a taskset (CPU-set) that has to be used by all childs of the 
executable, hence the childs can be executed on CPUs that are not measured by 
LIKWID.

Greetings,
Thomas

Original comment by Thomas.R...@googlemail.com on 1 Aug 2014 at 11:27

GoogleCodeExporter commented 9 years ago
Do you still have problems or does LIKWID do the right thing now? If so, I 
would like to close the issue to cleanup my TODO list.

Greetings,
Thomas

Original comment by Thomas.R...@googlemail.com on 22 Aug 2014 at 9:00

GoogleCodeExporter commented 9 years ago
Yes, it is working fine now ...
Thank you so much

Original comment by maya.mal...@gmail.com on 22 Aug 2014 at 11:25

GoogleCodeExporter commented 9 years ago
Working => closing issue

Original comment by Thomas.R...@googlemail.com on 27 Aug 2014 at 3:34