Differenze tra le versioni di "Test HDD performance"
Da WikiSitech.
Vai alla navigazioneVai alla ricercaRiga 1: | Riga 1: | ||
= hdparm command = | = hdparm command = | ||
− | You can use the hdparm command to check hard disk speed. It provides a command line interface to various hard disk ioctls supported by the stock Linux ATA/IDE/SATA device driver subsystem. Login as the root and enter the following command: | + | You can use the hdparm command to check hard disk speed. It provides a command line interface to various hard disk ioctls supported by the stock Linux ATA/IDE/SATA device driver subsystem. Login as the root and enter the following command:<br> |
[root@server2 ~]# hdparm -tT /dev/sda | [root@server2 ~]# hdparm -tT /dev/sda | ||
Sample outputs: | Sample outputs: | ||
− | + | ||
− | /dev/sda: | + | /dev/sda: |
− | + | Timing cached reads: 29084 MB in 2.00 seconds = 14574.71 MB/sec | |
− | + | Timing buffered disk reads: 308 MB in 3.01 seconds = 102.36 MB/sec | |
− | Note: | + | Note: |
− | -t :perform device read timings | + | -t :perform device read timings |
− | -T :perform cache read timings | + | -T :perform cache read timings |
− | /dev/sda : Hard disk device file | + | /dev/sda : Hard disk device file |
− | + | ||
= dd Command = | = dd Command = | ||
Riga 23: | Riga 23: | ||
Sample outputs: | Sample outputs: | ||
− | + | dd: writing `/tmp/test.img': No space left on device | |
− | dd: writing `/tmp/test.img': No space left on device | + | 210779+0 records in |
− | 210779+0 records in | + | 210778+0 records out |
− | 210778+0 records out | + | 1726697472 bytes (1.7 GB) copied, 22.3398 seconds, 77.3 MB/s |
− | 1726697472 bytes (1.7 GB) copied, 22.3398 seconds, 77.3 MB/s | + | |
− | |||
= Bonnie = | = Bonnie = | ||
Per effettuare dei benchmark sui dischi, è possibile utilizzare anche [[Bonnie++]]. | Per effettuare dei benchmark sui dischi, è possibile utilizzare anche [[Bonnie++]]. |
Versione attuale delle 13:59, 28 nov 2016
hdparm command
You can use the hdparm command to check hard disk speed. It provides a command line interface to various hard disk ioctls supported by the stock Linux ATA/IDE/SATA device driver subsystem. Login as the root and enter the following command:
[root@server2 ~]# hdparm -tT /dev/sda
Sample outputs:
/dev/sda: Timing cached reads: 29084 MB in 2.00 seconds = 14574.71 MB/sec Timing buffered disk reads: 308 MB in 3.01 seconds = 102.36 MB/sec Note: -t :perform device read timings -T :perform cache read timings /dev/sda : Hard disk device file
dd Command
You can use the dd command as follows to get speed info too:
[root@server2 ~]# dd if=/dev/zero of=/tmp/test.img bs=8k count=256k [root@server2 ~]# rm /tmp/test.img
Sample outputs:
dd: writing `/tmp/test.img': No space left on device 210779+0 records in 210778+0 records out 1726697472 bytes (1.7 GB) copied, 22.3398 seconds, 77.3 MB/s
Bonnie
Per effettuare dei benchmark sui dischi, è possibile utilizzare anche Bonnie++.