March 3rd, 2016

dd if=/dev/zero of=/home/test/swap bs=1M count=1024
mkswap /home/test/swap
swapon /home/test/swap  来扩充swap .
swapoff /home/test/swap 来卸载文件


测试磁盘的IO写速度time dd if=/dev/zero of=/test.dbf bs=8k count=300000
测试磁盘的IO读速度time dd if=/home/test of=/dev/null bs=8k
磁盘读写速度hdparm -Tt /dev/sda

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>