Linux平台下如何看OS曆史的效能資料

來源:互聯網
上載者:User

標籤:sar   linux   曆史資料   

同事電話詢問Linux下一個叢集內2個主機前後2天相繼無響應,表現狀況為ping都沒響應。

因為沒任何監控或其他效能資料,故需要擷取曆史OS效能資料。


 我們知道rhel5,6下預設可以通過sar命令查看OS曆史資訊,故執行sar即可看到當天的資料。


[[email protected] sa]# sar

Linux 2.6.32-431.el6.x86_64 (ora11g)    09/16/2015      _x86_64_        (2 CPU)


08:43:42 PM       LINUX RESTART


08:50:01 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle

09:00:01 PM     all      0.24      0.00      0.41      0.06      0.00     99.29

09:10:01 PM     all      0.24      0.00      0.33      0.01      0.00     99.43

09:20:01 PM     all      0.19      0.06      0.86      0.52      0.00     98.37

09:30:01 PM     all      0.57      0.00      0.93      0.11      0.00     98.40

Average:        all      0.31      0.01      0.63      0.17      0.00     98.87


若要看曆史資料,目錄為 /var/log/sa ,添加參數 -f 即可




[[email protected] sa]# sar -f sa21 

Linux 2.6.32-431.el6.x86_64 (ora11g)    08/21/2015      _x86_64_        (2 CPU)


12:20:29 PM       LINUX RESTART


12:30:01 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle

12:40:01 PM     all      0.26      0.00      0.92      0.01      0.00     98.81

12:50:01 PM     all      0.24      0.00      0.88      0.00      0.00     98.88

01:00:01 PM     all      0.17      0.00      0.42      0.01      0.00     99.41

01:10:01 PM     all      0.29      0.00      0.80      0.01      0.00     98.90

01:20:01 PM     all      0.26      0.00      0.96      0.01      0.00     98.77

01:30:01 PM     all      0.30      0.00      0.99      0.01      0.00     98.71

01:40:02 PM     all      0.31      0.06      1.46      0.32      0.00     97.85

01:50:01 PM     all      0.33      0.00      1.09      0.01      0.00     98.58

02:00:01 PM     all      0.25      0.00      0.59      0.01      0.00     99.16

02:10:01 PM     all      0.31      0.00      0.97      0.02      0.00     98.69

02:20:01 PM     all      0.28      0.00      1.00      0.00      0.00     98.71

Average:        all      0.27      0.01      0.92      0.04      0.00     98.77


Linux平台下如何看OS曆史的效能資料

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.