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
How to disable SSH cipher/ MAC algorithms for Linux and Unix
Viewed 47331 times since Fri, Aug 21, 2020
RHEL: Displaying/setting kernel parameters - ’sysctl’
Viewed 3130 times since Sat, Jun 2, 2018
debian Debian/Ubuntu Linux: Find If Installed APT Package Includes a Fix/Patch Via CVE Number
Viewed 9564 times since Sun, Sep 23, 2018
LVM: Recovering Physical Volume Metadata
Viewed 13233 times since Sat, Jun 2, 2018
RHEL: Forgotten ’root’ password / using single-user to gain access
Viewed 7657 times since Sat, Jun 2, 2018
A tcpdump Tutorial and Primer with Examples
Viewed 5392 times since Sun, Jun 17, 2018
KONTO SFTP Z CHROOTEM Z UŻYCIEM OPENSSH-SERVER NA CENTOS/RHEL6
Viewed 1941 times since Fri, Nov 30, 2018
How To: Create Self-Signed Certificate – OpenSSL
Viewed 3112 times since Mon, Feb 18, 2019
RHEL: What is "SysRq key" and how to use it
Viewed 5457 times since Sat, Jun 2, 2018
10 Linux DIG Command Examples for DNS Lookup
Viewed 11209 times since Sun, Sep 30, 2018