windows Linux/Unix 中“性能计数器”的概念

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1100733/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 12:47:29  来源:igfitidea点击:

Concept of "Performance Counters" in Linux/Unix

windowslinuxunixperformancecounter

提问by user15071

Windows has a Performance Countersinfrastructure. The OS provides some common counters, and I can go add my own. What is the corresponding concept in Linux/Unix?

Windows 具有性能计数器基础结构。操作系统提供了一些常用的计数器,我可以自己添加。Linux/Unix中对应的概念是什么?

采纳答案by Brandon E Taylor

回答by Roman Plá?il

There is also PAPI and PerfSuite.

还有 PAPI 和 PerfSuite。

回答by Josh Kelley

Several applications exist which periodically check system performance.

存在一些定期检查系统性能的应用程序。

  • iostat, vmstat, and netstat- Run these commands once to get a snapshot of activity.
  • sysstat- This runs periodically and maintains a history of statistics such as the above.
  • Munin- As sysstat, but with pretty web graphs.
  • iostatvmstatnetstat- 运行这些命令一次以获取活动快照。
  • sysstat- 这会定期运行并维护上述统计信息的历史记录。
  • Munin- 作为 sysstat,但具有漂亮的网络图表。