1) Check disk case by the command df -h
Filesystem Size Used Avail the Use% Mounted ON
/ dev / 61G 214G sda4 289 g of 23% /
tmpfs 7.8G 7.8G 0 0% / dev / SHM
/ dev / sda2 969m 62M 857M 7% / Boot
/ dev / sda1 999m. 1% 998M 268K / Boot / EFI
/ dev / sda3 586g 2% 626 g 8.0 g / Home
2) by hdparm test read rate
[the root] # hdparm -t / dev / SDA
/ dev / SDA:
Timing buffered disk reads: 542 MB in 3.01 seconds = 180.09 MB / sec
As can be seen, the average rate read the disk 180.09 MB / sec
hard disk write speed test under Linux
1. test read speed
haparm -Tt / dev / XXX
1.1 Gets hard disk device name:
fdisk the -l
Disk / dev / xvdf: 365.0 GB, 365 041 287 168 bytes
255 Heads, 63 is sectors / Track, 44380 Cylinders
Units = Cylinders of 16065 * 512 = 8.22528 million bytes
Sector size (Logical / PHYSICAL): 512 bytes / 512 bytes
the I / O size (Minimum / Optimal): 512 bytes / 512 bytes
Disk identifier : 0x00000000
1.2 test disk read speed
hdparm -tT / dev / xvdf
/ dev / xvdf:
the Timing the reads buffered Disk: 962 in 3.00 seconds The MB = 320.56 MB / sec
1.3 hard disk read speed test results
1.3.1 physical desktop machine
spec: 7200
hdparm -tT / dev / sda
/ dev / sda:
the Timing cached reads: 7650 MB in 2.00 seconds The = 3829.28 MB / sec
the Timing buffered Disk reads: 296 MB in 3.02 seconds The = 98.05 MB / sec
1.3.2 virtual machine VmWare
host spec: 7200 rpm hard drive
-tT hdparm / dev / sda
/ dev / sda:
the Timing cached reads: 11396 MB in 2.00 seconds The = 5704.37 MB / sec
the Timing buffered Disk reads: 648 MB in 3.09 seconds The = 209.45 MB / sec
1.3.3 on Amazon EC2 virtual machine
Instance of the type: m1.large
hdparm -tT / dev / xvdf
/ dev / xvdf:
the Timing cached reads: 5830 MB in 1.99 seconds The = 2923.38 MB / sec
the Timing buffered Disk reads: 950 MB in 3.00 seconds The = 316.61 MB / sec
2. written test speed
2.1 test method
using time command and the write rate commands dd simple test hard
2.2 hard disk read speed test results.
2.2.1 physical desktop machine
spec: 7200 rpm hard
time dd if = / dev / zero bs = 1024 count = 1000000 = of / 1Gb.file
1000000 Records in 0 +
1000000 + 0 Records OUT
1024000000 bytes (1.0 GB) copied, 9.78201 s, 105 MB/s
real 0m9.806s
user 0m0.236s
sys 0m3.120s
1.3.2 VmWare虚拟机
host spec: 7200转硬盘
time dd if=/dev/zero bs=1024 count=1000000 of=/1Gb.file
1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB) copied, 13.533 s, 75.7 MB/s
real 0m13.605s
user 0m0.113s
sys 0m3.077s
1.3.3 amazon EC2上虚拟机
Instance type: m1.large
time dd if=/dev/zero bs=1024 count=1000000 of=/1Gb.file
1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB) copied, 22.6497 s, 45.2 MB/s
real 0m23.785s
0m0.504s User
SYS 0m5.888s
3. summarizes
physical machine VmWare virtual machine VM Amazon
reading speed 105 209.45 316.61
write speed 105 75.7 45.2
4. Appendix
hdparm -H
-a <cache> Set read file, in advance the number of partitions into block regions, plus if <cache partition> option, the current setting is displayed.
-A cache function <0 or 1> enable or disable the read file.
-c <I / O mode> set IDE32 bit I / O mode.
-C detecting IDE hard disk power management mode.
-d <0 or 1> DMA mode setting disk.
-f memory buffer data is written to the hard disk, and clear the buffer.
-g display parameters disk track, head, and other magnetic domain.
-h displays help.
-i display the hard disk hardware specification information, which is provided in the boot from the hard disk itself.
-I directly read the hard disk hardware specification information provided.
-k <0 or 1> hard reset, retain the set -dmu parameters.
-K <0 or 1> hard reset, retain the set -APSWXZ parameters.
-m <Number magnetic area>
-n <0 or 1> ignore the error that occurs when the hard disk is written.
-p <PIO Mode> disk drive's PIO mode.
-P <number of magnetic regions> internal hard disk cache set number of partitions.
-q when performing the subsequent parameters not display any information on the screen.
-r <0 or 1> set the hard disk read-write mode.
-S <time> setting the waiting time before entering the power saving mode of the hard disk.
-t assess the efficiency of reading the hard drive. -T evaluate the efficiency of the hard disk read cache.
-u <0 or 1> when disk access, allowing other interrupt requests simultaneously. -v displays set the hard disk.
-W <0 or 1> set the hard disk write cache. -X <Transfer Mode> disk drive's transfer mode.
-y IDE hard disk so that power saving mode. -Y the IDE hard disk into sleep mode.
-Z Seagate drive off certain automatic power saving function.
Read and write speed test under linux disk
Guess you like
Origin www.cnblogs.com/guarderming/p/11088518.html
Recommended
Ranking