Checking the speed of disks with the DD command
The following tutorial describes how to quickly check the speed of our disk using the dd command.
The command will work for both Debian systems, Ubuntu and CentOS
It all comes down to issuing one command in the console.
We log into the terminal of our server, computer or wherever we want to check the speed and issue a command:
1 | dd if=/dev/zero of=/tmp/test bs=64k count=16k conv=fdatasync |
we get the result:
This is the result for the SSDNvme drive:
1 2 3 | 16384+0 przeczytanych recordów 16384+0 zapisanych recordów skopiowane 1073741824 bajty (1,1 GB), 1,1295 s, 951 MB/s |
Now, for comparison, the result from a regular SSD drive:
1 2 3 | 16384+0 przeczytanych rekordów 16384+0 zapisanych rekordów skopiowane 1073741824 bajtów (1,1 GB, 1,0 GiB), 2,631 s, 408 MB/s |
And as a curiosity, a completely new regular HDD:
1 2 3 | 16384+0 przeczytanych recordów 16384+0 zapisanych recordów skopiowane 1073741824 bajty (1,1 GB), 7,47575 s, 144 MB/s |
There is a world of difference in the type of true drive? 🙂