January 2018
Intermediate to advanced
456 pages
12h 49m
English
Perf can be used to provide a default set of event statistics for a particular workload with:
# perf stat <command>
For example, a single ping will provide the following output:
# perf stat ping -c 1 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=6.489 ms
--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 6.489/6.489/6.489 ms
Performance counter stats for 'ping -c 1 192.168.1.1':
3.447000 task-clock (msec) # 0.518 CPUs utilized
2 context-switches # 0.580 K/sec
0 cpu-migrations # 0.000 K/sec
40 page-faults # 0.012 M/sec
2705987 cycles # 0.785 GHz
682239 stalled-cycles-frontend # 25.21% frontend ...Read now
Unlock full access