Performance monitoring and benchmarking suite
Likwid is a simple to install and use toolsuite of command line applications and a library for performance oriented programmers. It works for Intel, AMD, ARMv8 and POWER9 processors on the Linux operating system. There is additional support for Nvidia and AMD GPUs. There is support for ARMv7 and POWER8/9 but there is currently no test machine in our hands to test them properly.
It consists of:
For further information please take a look at the Wiki or contact us via Matrix chat LIKWID General.
Intel
AMD
ARM
POWER (experimental)
Nvidia GPUs
AMD GPUs
You can get the releases of LIKWID at: http://ftp.fau.de/pub/likwid/
For build and installation hints see INSTALL file or check the build instructions page in the wiki https://github.com/RRZE-HPC/likwid/wiki/Build
For quick install:
VERSION=stable
wget http://ftp.fau.de/pub/likwid/likwid-$VERSION.tar.gz
tar -xaf likwid-$VERSION.tar.gz
cd likwid-*
vi config.mk # configure build, e.g. change installation prefix and architecture flags
make
sudo make install # sudo required to install the access daemon with proper permissionsFor ARM builds, the COMPILER flag in config.mk needs to changed to GCCARMv8 or ARMCLANG (experimental).
For POWER builds, the COMPILER flag in config.mk needs to changed to GCCPOWER or XLC (experimental).
For Nvidia GPU support, set NVIDIA_INTERFACE in config.mk to true and adjust build-time variables if needed
For AMD GPU support, set ROCM_INTERFACE in config.mk to true and adjust build-time variables if needed
likwid-topology
--------------------------------------------------------------------------------
CPU name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU type: Intel Skylake processor
CPU stepping: 3
********************************************************************************
Hardware Thread Topology
********************************************************************************
Sockets: 1
Cores per socket: 4
Threads per core: 2
--------------------------------------------------------------------------------
HWThread Thread Core Die Socket Available
0 0 0 0 0 *
1 0 1 0 0 *
2 0 2 0 0 *
3 0 3 0 0 *
4 1 0 0 0 *
5 1 1 0 0 *
6 1 2 0 0 *
7 1 3 0 0 *
--------------------------------------------------------------------------------
Socket 0: ( 0 4 1 5 2 6 3 7 )
--------------------------------------------------------------------------------
********************************************************************************
Cache Topology
********************************************************************************
Level: 1
Size: 32 kB
Cache groups: ( 0 4 ) ( 1 5 ) ( 2 6 ) ( 3 7 )
--------------------------------------------------------------------------------
Level: 2
Size: 256 kB
Cache groups: ( 0 4 ) ( 1 5 ) ( 2 6 ) ( 3 7 )
--------------------------------------------------------------------------------
Level: 3
Size: 8 MB
Cache groups: ( 0 4 1 5 2 6 3 7 )
--------------------------------------------------------------------------------
********************************************************************************
NUMA Topology
********************************************************************************
NUMA domains: 1
--------------------------------------------------------------------------------
Domain: 0
Processors: ( 0 4 1 5 2 6 3 7 )
Distances: 10
Free memory: 318.203 MB
Total memory: 7626.23 MB
--------------------------------------------------------------------------------
likwid-perfctr
$ likwid-perfctr -C 0 -g L2 hostname
--------------------------------------------------------------------------------
CPU name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU type: Intel Skylake processor
CPU clock: 4.01 GHz
--------------------------------------------------------------------------------
mytesthost
--------------------------------------------------------------------------------
Group 1: L2
+-----------------------+---------+------------+
| Event | Counter | HWThread 0 |
+-----------------------+---------+------------+
| INSTR_RETIRED_ANY | FIXC0 | 321342 |
| CPU_CLK_UNHALTED_CORE | FIXC1 | 450498 |
| CPU_CLK_UNHALTED_REF | FIXC2 | 1118900 |
| L1D_REPLACEMENT | PMC0 | 6670 |
| L1D_M_EVICT | PMC1 | 1840 |
| ICACHE_64B_IFTAG_MISS | PMC2 | 9293 |
+-----------------------+---------+------------++--------------------------------+------------+
| Metric | HWThread 0 |
+--------------------------------+------------+
| Runtime (RDTSC) [s] | 0.0022 |
| Runtime unhalted [s] | 0.0001 |
| Clock [MHz] | 1613.6392 |
| CPI | 1.4019 |
| L2D load bandwidth [MBytes/s] | 197.8326 |
| L2D load data volume [GBytes] | 0.0004 |
| L2D evict bandwidth [MBytes/s] | 54.5745 |
| L2D evict data volume [GBytes] | 0.0001 |
| L2 bandwidth [MBytes/s] | 528.0381 |
| L2 data volume [GBytes] | 0.0011 |
+--------------------------------+------------+
likwid-pin
$ likwid-pin -c 0,1,2 ./a.out
[pin-264468] Pinning enabled (./a.out), mapping:
[pin-264468] 0 -> 0 | 1 -> 1 | 2 -> 2
[pin-264468] Found OpenMP runtime: /lib/x86_64-linux-gnu/libgomp.so.1
[...]
likwid-bench
$ likwid-bench -t triad_avx -W N:2GB:3
Warning: Sanitizing vector length to a multiple of the loop stride 16 and thread count 3 from 62500000 elements (500000000 bytes) to 62499984 elements (499999872 bytes)
Allocate: Process running on hwthread 0 (Domain N) - Vector length 62499984/499999872 Offset 0 Alignment 512
Allocate: Process running on hwthread 0 (Domain N) - Vector length 62499984/499999872 Offset 0 Alignment 512
Allocate: Process running on hwthread 0 (Domain N) - Vector length 62499984/499999872 Offset 0 Alignment 512
Allocate: Process running on hwthread 0 (Domain N) - Vector length 62499984/499999872 Offset 0 Alignment 512
Initialization: Each thread in domain initializes its own stream chunks
--------------------------------------------------------------------------------
LIKWID MICRO BENCHMARK
Test: triad_avx
--------------------------------------------------------------------------------
Using 1 work groups
Using 3 threads
--------------------------------------------------------------------------------
Running without Marker API. Activate Marker API with -m on commandline.
--------------------------------------------------------------------------------
Group: 0 Thread 1 Global Thread 1 running on hwthread 4 - Vector length 20833328 Offset 20833328
Group: 0 Thread 0 Global Thread 0 running on hwthread 0 - Vector length 20833328 Offset 0
Group: 0 Thread 2 Global Thread 2 running on hwthread 1 - Vector length 20833328 Offset 41666656
--------------------------------------------------------------------------------
Cycles: 22977763263
CPU Clock: 4007946861
Cycle Clock: 4007946861
Time: 5.733051e+00 sec
Iterations: 96
Iterations per thread: 32
Inner loop executions: 1302083
Size (Byte): 1999999488
Size per thread: 666666496
Number of Flops: 3999998976
MFlops/s: 697.71
Data volume (Byte): 63999983616
MByte/s: 11163.34
Cycles per update: 11.488885
Cycles per cacheline: 91.911077
Loads per update: 3
Stores per update: 1
Load bytes per element: 24
Store bytes per elem.: 8
Load/store ratio: 3.00
Instructions: 2374999408
UOPs: 3749999040
--------------------------------------------------------------------------------
likwid-mpirun
$ likwid-mpirun -mpi slurm -np 4 -t 2 ./a.out
MPI started
Process with rank 0 running on Node f0846.nhr.fau.de core 0
Process with rank 2 running on Node f0859.nhr.fau.de core 0
Process with rank 3 running on Node f0859.nhr.fau.de core 36
Process with rank 1 running on Node f0846.nhr.fau.de core 36
Enter OpenMP parallel region
Start OpenMP threads
Rank 0 Thread 0 running on Node f0846.nhr.fau.de core 0
Rank 0 Thread 1 running on Node f0846.nhr.fau.de core 1
Rank 1 Thread 0 running on Node f0846.nhr.fau.de core 36
Rank 1 Thread 1 running on Node f0846.nhr.fau.de corNo open issues yet, or sync has not completed.