Tuesday, January 24, 2017

Test hard disk performace on Linux Server

Performance testing was done on /dev/sda drive with cache enable & disable mode of hard drive

cache enable/disable syntax is below
hdparm -W(value) /dec/sda

Value 0 means cache disable
Value 1 means cache enable

One gigabyte was written for the test, first with the cache activated (hdparm -W1 /dev/sda):

root@bhagwat~# dd if=/dev/zero of=/root/testfile bs=1G count=1 oflag=direct
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 32.474 s, 33.1 MB/s
root@bhagwat~#


Then, with the cache deactivated (hdparm -W0 /dev/sda):

root@bhagwat~# dd if=/dev/zero of=/root/testfile bs=1G count=1 oflag=direct   
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 123.37 s, 8.7 MB/s

No comments:

Post a Comment