Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
open("/dev/vhost-net", O_RDWR) = -1 ENOMEM (Cannot allocate memory)
write(2, «qemu-system-x86_64:», 19qemu-system-x86_64:) = 19
sendmsg(6, {msg_name(0)=NULL, msg_iov(2)=[{"l\1\0\1\t\0\0\0\3\0\0\0\200\0\0\0\1\1o\0\23\0\0\0/org/xfc"..., 144}, {"\0\0\0\0\0\0\0\0\0", 9}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 15 3 poll([{fd=6, events=POLLIN}], 1, 5000) = 0 (Timeout)
$ sudo perf record -a -g ./src/stress --cpu 4 --io 2 --vm 2 --timeout 10s
$ sudo perf report -g
# ========
# captured on: Fri Mar 14 04:12:21 2014
# hostname : ######
# os release : 3.12-1-amd64
# perf version : 3.12.6
# arch : x86_64
# nrcpus online : 8
# nrcpus avail : 8
# cpudesc : #################
# cpuid : ###########
# total memory : #########
# cmdline : /usr/bin/perf_3.12 record -a -g ./src/stress --cpu 4 --io 2 --vm 2 --timeout 10s
# event : name = cycles, type = 0, config = 0x0, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, excl_host = 0, excl_guest = 1, precise_ip = 0, attr_mmap2 = 0, attr_mmap = 1, attr_mmap_data = 0
# HEADER_CPU_TOPOLOGY info available, use -I to display
# HEADER_NUMA_TOPOLOGY info available, use -I to display
# pmu mappings: cpu = 4, software = 1, tracepoint = 2, breakpoint = 5
# ========
#
# Samples: 241K of event 'cycles'
# Event count (approx.): 221562887737
#
# Overhead Command Shared Object Symbol
# ........ ............. .................. .............................................
#
30.28% stress libc-2.18.so [.] __random_r
|
--- __random_r
19.70% stress libc-2.18.so [.] __random
|
--- __random
8.41% stress stress [.] hogcpu
|
--- hogcpu
5.94% stress [kernel.kallsyms] [k] page_fault
|
--- page_fault
hogvm
5.05% stress libc-2.18.so [.] rand
|
--- rand
4.84% stress [kernel.kallsyms] [k] clear_page_c_e
|
--- clear_page_c_e
hogvm
4.23% stress stress [.] hogvm
|
--- hogvm
2.74% stress stress [.] rand@plt
|
--- rand@plt
1.90% stress [kernel.kallsyms] [k] get_page_from_freelist
|
--- get_page_from_freelist
...
Strace