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
Linux 16 Useful Bandwidth Monitoring Tools to Analyze Network Usage in Linux
Viewed 20374 times since Mon, Sep 21, 2020
RHEL: Create a local RPM repository
Viewed 12530 times since Sun, May 27, 2018
Fałszujemy rozpoznania skanerów #1
Viewed 3880 times since Mon, May 21, 2018
linux manual tools
Viewed 3677 times since Fri, Sep 28, 2018
10 Linux rsync Examples to Exclude Files/Directories
Viewed 12762 times since Wed, Oct 31, 2018
Secure Secure Shell
Viewed 13185 times since Fri, Aug 21, 2020
Linux Find Large Files
Viewed 3753 times since Mon, Oct 29, 2018
Linux - How to get Memory information
Viewed 2704 times since Fri, Jun 8, 2018
RHEL: Handling SCSI disks
Viewed 13840 times since Sun, May 27, 2018
Yum Update: DB_RUNRECOVERY Fatal error, run database recovery
Viewed 5176 times since Fri, Jan 17, 2020