This list of Linux benchmark scripts and tools should prove helpful for quick performance checks of CPU, storage, memory, and network on Linux servers and VPS. Check each script before running from the command line. Most of these scripts will benchmark the CPU, memory, storage, and network. In most cases, the CPU Model, frequency, and… continue reading.
This list of Linux benchmark scripts and tools should prove helpful for quick performance checks of CPU, storage, memory, and network on Linux servers and VPS. Check each script before running from the command line. Most of these scripts will benchmark the CPU, memory, storage, and network. In most cases, the CPU Model, frequency, and… continue reading.
Can I ask for some scripts and examples of commands to test NVME disk in real-life-scenarios?
Hi Adrian, welcome to the community! In addition to the benchmark scripts that are listed at the top of the linked page above; you can use dd
for R/W tests. The list of commands to use is on this page.
(I used the ‘fdatasync’ flag with dd as it’s likely the closest behavior to the real-world tasks, for dd).
You can also use hdparm. Something like sudo hdparm -tT /dev/nvme0n1
:
Use lsblk -t
or fdisk -l
for a list of your disks and partitions
dd requires mounted partitions for the test, while hdparm does not.
For a closer real-world performance of your NVMe, use bonnie++ or similar tools.
@hydn is there anything you don’t have an answer to?
Anyway, I compared my two SSDs. The differences are really small.
sda = Samsung 870 EVO
sdc = Samsung 850 EVO
/dev/sda:
Timing cached reads: 35836 MB in 2.00 seconds = 17960.57 MB/sec
Timing buffered disk reads: 1614 MB in 3.00 seconds = 537.78 MB/sec
/dev/sdc:
Timing cached reads: 38838 MB in 1.99 seconds = 19469.86 MB/sec
Timing buffered disk reads: 1526 MB in 3.00 seconds = 508.02 MB/sec