1) 衡量內存閑忙指標
buffer cache size:緩存區在內存開銷中占很大比例;
page in/out rates;
swap in/out rates;
可用內存的大小,或用得到內存的大小(available memory size);
自由內存的大小(free memory size):what is currently available,it should not be confused with available memory,which does not change during normal system operation;
swap queue length;
2) 單個進程的內存衡量指標:
一個進程占用物理內存的大小(resident set size)
一個進程占用虛擬內存的大小(virtual set size)
VM reads and writes: it can show how many physical memory management reads and writes were made to and from the disk during the chosen interval.
當內存資源成為系統性能的瓶頸時,它有一些典型癥狀:
很高的換頁率(high pageout rate):HP-UX是一個按需調頁的操作系統,通常情況下,它只執行調入頁面進入內存的操作,以讓進程能夠運行。只有操作系統覺得系統需要釋放一些內存空間時,才會執行從內存調出頁面的操作,而過高的調出頁面操作說明內存缺乏;
進程進入不活動狀態(process deactivation activity):當自由的內存頁面數量小于MINFREE時,很多進程將強制進入不活動狀態,因為 any deactivation activity represents a condition in which normal paging is inadequate to handle the memory demands.
自由內存的數量很小,但活動的虛擬內存卻很大(very small free memory and large active virtual memory)
交換區所以磁盤的活動次數可高(high disk activity on swap devices)
了高的全局系統CPU利用率(high global system CPU utilization)很長的運行進程隊列,但CPU的空閑時間卻很多(large run queue with idle CPU)
內存不夠出錯(out of memory errors)
CPU用于vhand和swapper兩中守護進程的時間(CPU time to vhand and swapper)
必須主要的是,有時候我們發現CPU很忙,這似乎是CPU資源成為系統性能的瓶頸,但如果進一步分析,發現vhand和swapper守護進程占用了大量的系統CPU時間,很顯然,這時系統性能瓶頸真正所在可能是內存。