Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
NickTheGreek

Check hard disk speed in CentOS from command line

Recommended Posts

You can check hardisk performance write/read speed in command line. For list all disk installed on your server use this command ;

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 ;

hdparm -t /dev/sda

ample output :

/dev/sda:
 Timing buffered disk reads:  310 MB in  3.05 seconds = 101.48 MB/sec

or you can use dd command ;

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

http://ssh9.com/tips-and-tricks/check-hard-disk-speed-in-centos-from-command-line

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×