日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

五 性能調(diào)試---I/O性能分析( 二 )


對(duì)結(jié)果的分析:

如果某個(gè)磁盤的%busy列的值大于50%,則說(shuō)明該磁盤可能存在瓶頸;

如果某個(gè)磁盤的avwait珍的值大于avserv列的值,也說(shuō)明該磁盤可能存在瓶頸;


利用SAR命令分析緩沖區(qū)的活動(dòng)


通過(guò)命令sar -b,我們可以分析系統(tǒng)中的緩沖區(qū)的活動(dòng)情況 。

Report activity for each block device, e.g., disk or tape drive. One line is printed for each device that had activity during the last interval. If no devices were active, a blank line is printed.Each line contains the following data:

bread/s Number of physical reads per second from the disk (or other block devices) to the buffer cache;
bwrit/s: Number of physical writes per second from the buffer cache to the disk (or other block device);
lread/s: Number of reads per second from buffer cache;
lwrit/s: Number of writes per second to buffer cache;
%rcache: Buffer cache hit ratio for read requests e.g., 1 - bread/lread;
%wcache: Buffer cache hit ratio for write requests e.g., 1 - bwrit/lwrit;
pread/s: Number of reads per second from character device using the physio() (raw I/O) mechanism;
pwrit/s: Number of writes per second to character device using the physio() (i.e., raw I/O ) mechanism; mechanism.
對(duì)結(jié)果的分析:

如果%rcache列的值小于90%,并且%wcache列的值不在70-70%之間,我們必須觀察系統(tǒng)中什么應(yīng)用在做什么樣的讀/寫操作,我們是否需要增加緩沖歐的大小 。


利用SAR命令分析交換區(qū)的活動(dòng)


通過(guò)命令sar -w,我們可以分析系統(tǒng)中的交換區(qū)的活動(dòng)情況 。

Report activity for each block device, e.g., disk or tape drive. One line is printed for each device that had activity during the last interval. If no devices were active, a blank line is printed.Each line contains the following data:

swpin/s: Number of process swapins per second;
swpot/s: Number of process swapouts per second;
bswin/s: Number of 512-byte units transferred for swapins per second;
bswot/s: Number of 512-byte units transferred for swapouts per second;
pswch/s: Number of process context switches per second.
對(duì)結(jié)果的分析:

如果swpin/s的值大于零,那么swpot的值必須引起注意;

同時(shí)必須注意pswch/s的值,如果很大,說(shuō)明進(jìn)程切換頻繁 。



利用GlancePlus分析系統(tǒng)的I/O活動(dòng)情況


1)對(duì)磁盤的整體使用情況的分析:

進(jìn)入GlancePlus;
按?鍵進(jìn)入聯(lián)機(jī)幫助界面;
按d鍵進(jìn)入磁盤的詳細(xì)界面;
按b鍵表示向后翻頁(yè),按f鍵表示向前翻頁(yè);
通過(guò)Disk Detail Screen,我們可以知道所有的邏輯和物理I/O請(qǐng)求的分布情況 。

2)對(duì)Disk I/O by File System

進(jìn)入GlancePlus;
按?鍵進(jìn)入聯(lián)機(jī)幫助界面;
按i鍵Disk I/O by File System表界面;
按b鍵表示向后翻頁(yè),按f鍵表示向前翻頁(yè);
這個(gè)界面很有用,因?yàn)樗床煌奈募@示I/O的繁忙程度 。

3)對(duì)邏輯卷的分析

進(jìn)入GlancePlus;
按?鍵進(jìn)入聯(lián)機(jī)幫助界面;
按v鍵I/O by logical volumes表界面;
按b鍵表示向后翻頁(yè),按f鍵表示向前翻頁(yè);
通過(guò)把對(duì)文件系統(tǒng)的分析和邏輯卷的分析結(jié)合起來(lái),能夠知道哪個(gè)磁盤的I/O最忙 。

4)對(duì)磁盤的分析

5)對(duì)交換區(qū)的分析


GlancePlus


GlancePlus是HP公司的性能分析工具,它是一個(gè)聯(lián)機(jī)性能分析和診斷工具,用于監(jiān)控正在發(fā)生的系統(tǒng)活動(dòng)情況 。它的特點(diǎn)是:

聯(lián)機(jī)性能分析和診斷;
監(jiān)控系統(tǒng)資源的使用情況;
多屏幕輸出;
帶有聯(lián)機(jī)幫助;
進(jìn)程閥值識(shí)別和報(bào)警,這個(gè)閥值可以基于被監(jiān)控的進(jìn)程、資源的利用率、用戶、進(jìn)程名或者終端名;
和前面介紹的其他性能分析工具,如:SAR,iostat,vmstat等相比,GlancePlus有一最大好處,這就是:GlancePlus不僅能對(duì)系統(tǒng)的整體情況進(jìn)行分析,而且還可以對(duì)某個(gè)進(jìn)程進(jìn)行深入分析 。

推薦閱讀