【正文】
processes swapped out but otherwise runnable.Thisfield is calculated, but Linux never desperation swaps. Memoryswpd: the amount of virtual memory used (kB).free: the amount of idle memory (kB).buff: the amount of memory used as buffers (kB).Swapsi: Amount of memory swapped in from disk (kB/s). 虛擬內(nèi)存的頁(yè)導(dǎo)入(從SWAP DISK導(dǎo)入RAM)so: Amount of memory swapped to disk (kB/s). 虛擬內(nèi)存的頁(yè)導(dǎo)出.(從RAM到SWAP DISK)IObi: Blocks sent to a block device (blocks/s).bo: Blocks received from a block device (blocks/s).Systemin: The number of interrupts per second, including the clock.cs: The number of context switches per second.: CPUThese are percentages of total CPU time.us: user timesy: system timeid: idle time如果 r經(jīng)常大于 4 ,且id經(jīng)常少于40,表示cpu的負(fù)荷很重。(本文環(huán)境REDHAT?。蹋椋睿酰罚玻¬MSTAT介紹通過(guò)STATSPACK收集服務(wù)器信息,主要通過(guò)收集VMSTAT的信息來(lái)展現(xiàn)服務(wù)器狀況。當(dāng)這個(gè)值超過(guò)了CPU數(shù)目,就會(huì)出現(xiàn)CPU瓶頸了。唯一能夠確定CPU瓶頸的還是r(運(yùn)行隊(duì)列)的值。解決的辦法有幾種:1. 最簡(jiǎn)單的,加大RAM2. 改小SGA,使得對(duì)RAM需求減少3. 減少RAM的需求(如:減少PGA)我們基本的了解了VMSTAT工作,下面是STATSPACK通過(guò)vmstat統(tǒng)計(jì)收集服務(wù)器性能數(shù)據(jù)。s Manual VMSTAT(8)NAMEvmstat Report virtual memory statisticsSYNOPSISvmstat [n] [delay [ count]]vmstat[V]DESCRIPTIONvmstat reports information about processes, memory, paging, block IO, traps, and CPU activity.The first report produced gives averages since the last reboot. Additional reports give information on a sampling period of length delay. The process and memory reports are instantaneous in either case.OptionsThe n switch causes the header to be displayed only once rather than periodically.delay is the delay between updates in seconds.