鍍金池/ 教程/ Linux/ UNIX 系統(tǒng)性能
UNIX 文件權(quán)限/訪問模式
UNIX 系統(tǒng)性能
UNIX 管道和過濾器
UNIX 進(jìn)程管理
Shell 內(nèi)置數(shù)學(xué)函數(shù)
UNIX 環(huán)境
UNIX 文件管理
Unix
UNIX 網(wǎng)絡(luò)實(shí)用工具
UNIX 系統(tǒng)日志
UNIX 目錄管理
vi編輯器教程
Unix 基本工具(打印,電子郵件)
UNIX 用戶管理
UNIX 信號(hào)和陷阱
Unix 正則表達(dá)式SED
Unix 文件系統(tǒng)基礎(chǔ)
Unix是什么?
Unix 有用命令

UNIX 系統(tǒng)性能

本教程的目的是引進(jìn)性能分析師提供的免費(fèi)工具,來監(jiān)視和管理UNIX系統(tǒng)的性能,以及如何診斷和修復(fù)性能問題在Unix環(huán)境提供指引。

UNIX具有以下主要資源類型,需要進(jìn)行監(jiān)測(cè)和調(diào)整:

  • CPU

  • 內(nèi)存

  • 磁盤空間

  • 通信線路

  • I/O 時(shí)間

  • 網(wǎng)絡(luò)時(shí)間

  • 應(yīng)用程序

性能組件:

有以下主要的五個(gè)組成部分的系統(tǒng)總時(shí)間的推移:

組件 描述
User state CPU The actual amount of time the CPU spends running the users program in the user state. It includes time spent executing library calls, but does not include time spent in the kernel on its behalf.
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 the use of blocking for I/O transfers.
I/O Time and Network Time These are the amount of time spent moving data and servicing I/O requests
Virtual Memory Performance This includes context switching and swapping.
Application Program Time spent running other programs - when the system is not servicing this application because another application currently has the CPU.

性能工具:

UNIX提供了重要的工具來測(cè)量和微調(diào)Unix系統(tǒng)的性能:

命令 描述
nice/renice Run a program with modified scheduling priority
netstat Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
time Time a simple command or give resource usage
uptime System Load Average
ps Report a snapshot of the current processes.
vmstat Report virtual memory statistics
gprof Display call graph profile data
prof Process Profiling
top Display system tasks

您可以使用聯(lián)機(jī)幫助幫助這里提到的每個(gè)命令的語法檢查完成。