Testing the hard disk for reading / writing in Centos 7
Checking disk read speed
To check the reading speed, we need a utility hdparm, install it
[[email protected]]# yum -y install hdparm
See the list of sections
[[email protected]]# fdisk -l
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x000d428d
Устр-во Загр Начало Конец Блоки Id Система
/dev/sda1 * 2048 526335 262144 83 Linux
/dev/sda2 526336 4720639 2097152 82 Linux swap / Solaris
/dev/sda3 4720640 3907028991 1951154176 83 Linux
Select a partition, for example / dev / sda3, and check the read speed
[[email protected]]# hdparm -t /dev/sda3
/dev/sda3:
Timing buffered disk reads: 566 MB in 3.00 seconds = 188.35 MB/sec
Checking the disc writing speed
To check the write speed, we will use the standard utility ddCreate a 1 Gb file in 1 Mb portions, run this test several times
[[email protected]]# sync; dd if=/dev/zero of=/opt/tempfile bs=1M count=1024; sync
1024+0 записей получено
1024+0 записей отправлено
скопировано 1073741824 байта (1,1 GB), 7,77424 c, 138 MB/c
[[email protected]]# sync; dd if=/dev/zero of=/opt/tempfile bs=1M count=1024; sync
1024+0 записей получено
1024+0 записей отправлено
скопировано 1073741824 байта (1,1 GB), 7,84737 c, 137 MB/c
[[email protected]]# sync; dd if=/dev/zero of=/opt/tempfile bs=1M count=1024; sync
1024+0 записей получено
1024+0 записей отправлено
скопировано 1073741824 байта (1,1 GB), 7,9069 c, 136 MB/c
[[email protected]]# sync; dd if=/dev/zero of=/opt/tempfile bs=1M count=1024; sync
1024+0 записей получено
1024+0 записей отправлено
скопировано 1073741824 байта (1,1 GB), 7,86588 c, 137 MB/c