martes, 22 de agosto de 2017

Velocidades de disco en centos

You can check hardisk performance write/read speed in command line. For list all disk installed on your server use this command ;
1.fdisk -l
Sample output :
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26        1300    10241437+  83  Linux
/dev/sda3            1301        6399    40957717+  83  Linux
/dev/sda4            6400       60801   436984065    5  Extended
/dev/sda5            6400       10223    30716248+  83  Linux
/dev/sda6           10224       14047    30716248+  83  Linux
/dev/sda7           14048       16087    16386268+  82  Linux swap / Solaris
/dev/sda8           16088       16724     5116671   83  Linux
/dev/sda9           16725       60801   354048471   83  Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       60801   488384001   83  Linux
In this case we want to check first hard disk /dev/sda, use this command ;
1.hdparm -t /dev/sda
Sample output :
/dev/sda:
 Timing buffered disk reads:  310 MB in  3.05 seconds = 101.48 MB/sec
or you can use dd command ;
1.dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
Sample output :

16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 22.6081 seconds, 47.5 MB/s

No hay comentarios:

Publicar un comentario