Linux - How to perform I/O performance test with dd command

Linux - How to perform I/O performance test with dd command

 
Question : How to perform I/O performance test in Linux to find r/w speed?
Answer :  It can be achieved using dd command.

Example to test write speed :
1. Go to the directory location where you want to perform the test.
[root@server ~]# cd /dir

2. Run dd command below.
[root@server ~]# dd if=/dev/zero of=dd.data bs=4k count=200000 conv=fsync
200000+0 records in
200000+0 records out
819200000 bytes (819 MB) copied, 8.47374 seconds, 96.7 MB/s

[root@server ~]# ls -la
total 801588
drwxr-xr-x 2 root     root          4096 Oct 22 12:51 .
drwxr-x--- 5 root     root           8192 Oct 22 12:51 ..
-rw-r--r-- 1 root     root     819200000 Oct 22 12:51 dd.data


Example to test read speed :
[root@server ~]# time time dd if=/path/to/bigfile of=/dev/null bs=8k

                              if = name of input file
                             of = name of output file
                             bs = size of block
                        count = number of block
                         conv = fsync - flush data at the end of the copy
                                   dsync - flush data after every block of the copy
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Script to Offline and Remove A Disk In Linux
Viewed 2110 times since Mon, Jan 28, 2019
RHEL: GPT/MBR partition tables (using disks larger than 2 TiB)
Viewed 12514 times since Sun, May 27, 2018
RHCS6: Debug and test multicast traffic between two hosts
Viewed 6891 times since Sun, Jun 3, 2018
Installing and Configuring an OCFS2 Clustered File System
Viewed 6097 times since Sat, Jun 2, 2018
high swap space utilization in LINUX
Viewed 6719 times since Fri, Jul 13, 2018
RHEL: Reinstalling Boot Loader on the Master Boot Record (MBR)
Viewed 3595 times since Sun, May 27, 2018
OpenSSL: Check If Private Key Matches SSL Certificate & CSR
Viewed 3365 times since Mon, Feb 18, 2019
10 Linux nslookup Command Examples for DNS Lookup
Viewed 10407 times since Sun, Sep 30, 2018
HP-UX - Stunnel Configuration
Viewed 2565 times since Fri, Sep 28, 2018
www.unixarena.com
Viewed 2601 times since Fri, Jul 27, 2018