📅  最后修改于: 2020-10-31 14:59:56             🧑  作者: Mango
在本章中,我们将详细讨论Unix中的系统性能。
我们将向您介绍一些免费的工具,这些工具可用于监视和管理Unix系统上的性能。这些工具还提供了有关如何在Unix环境中诊断和修复性能问题的指南。
Unix具有以下主要资源类型,需要对其进行监视和调整-
中央处理器
记忆
磁盘空间
通讯线
I / O时间
网络时间
应用程序
下表列出了占用系统时间的五个主要组件-
Sr.No. | Component & Description |
---|---|
1 |
User State CPU The actual amount of time the CPU spends running the users’ program in the user state. It includes the time spent executing library calls, but does not include the time spent in the kernel on its behalf |
2 |
System State CPU This is the amount of time the CPU spends in the system state on behalf of this program. All I/O routines require kernel services. The programmer can affect this value by blocking I/O transfers |
3 |
I/O Time and Network Time This is the amount of time spent moving data and servicing I/O requests |
4 |
Virtual Memory Performance This includes context switching and swapping |
5 |
Application Program Time spent running other programs – when the system is not servicing this application because another application currently has the CPU |
Unix提供以下重要工具来测量和微调Unix系统性能-
Sr.No. | Command & Description |
---|---|
1 |
nice/renice Runs a program with modified scheduling priority |
2 |
netstat Prints network connections, routing tables, interface statistics, masquerade connections, and multicast memberships |
3 |
time Helps time a simple command or give resource usage |
4 |
uptime This is System Load Average |
5 |
ps Reports a snapshot of the current processes |
6 |
vmstat Reports virtual memory statistics |
7 |
gprof Displays call graph profile data |
8 |
prof Facilitates Process Profiling |
9 |
top Displays system tasks |
您可以使用帮助手册来检查此处提到的每个命令的完整语法。