问题描述
这是我的问题:
perf stat
将显示程序运行的一些信息。
下面是我在具有 Intel 32 核的 Linux 系统上运行的程序,我的程序有 32 个线程。
Performance counter stats for './mul8_t32_lock/dfc_main':
2,527,620.62 msec task-clock # 27.051 cpus utilized
5,382,455 context-switches # 0.002 M/sec
322,153 cpu-migrations # 0.127 K/sec
6,728,473 page-faults # 0.003 M/sec
5,773,817,446,711 cycles # 2.284 GHz
8,504,327,916,051 instructions # 1.47 insn per cycle
358,700,135,637 branches # 141.912 M/sec
952,042,974 branch-misses # 0.27% of all branches
93.438474548 seconds time elapsed
2482.333923000 seconds user
66.839344000 seconds sys
那么,为什么 seconds user
+ seconds sys
不等于 seconds time elapsed
?
而且,我想知道 seconds user
和 seconds sys
的真正含义。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)