Centos 檢查磁碟讀寫效能

來源:互聯網
上載者:User

標籤:

啟動Tomcat發現deploy war的速度明顯變慢, 懷疑磁碟出問題

測試寫入

[[email protected] ~]$ dd if=/dev/zero of=kwxgd bs=64k count=4k oflag=dsync4096+0 records in4096+0 records out268435456 bytes (268 MB) copied, 127.514 s, 2.1 MB/s[[email protected] ~]$ iostatLinux 2.6.32-131.0.15.el6.x86_64 (localhost.localdomain)        07/02/2015 _x86_64_        (24 CPU)avg-cpu:  %user   %nice %system %iowait  %steal   %idle           0.16    0.00    0.08    0.08    0.00   99.67Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtnsda              10.08         0.04       120.22    1583980 4321086552

測試讀取

dd if=kwxgd of=/dev/zero bs=64k count=4k iflag=direct

硬碟效能測試
一、安裝hdparm

yum install hdparm -y

二、評估讀取
SSD 硬碟,請使用hdparm命令進行讀取測試。

hdparm -t /dev/xvda

SSH執行以上命令,可使用hdparm評估SSD的讀取速率。
“/dev/xvda”指的是對應磁碟的驅動號,請執行“fdisk -l”查看

Centos 檢查磁碟讀寫效能

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.