Skip to content

Instantly share code, notes, and snippets.

@stengoes
Last active January 10, 2020 15:08
Show Gist options
  • Save stengoes/d307e1a1969894a5e4a32effcebac6f3 to your computer and use it in GitHub Desktop.
Save stengoes/d307e1a1969894a5e4a32effcebac6f3 to your computer and use it in GitHub Desktop.
Benchmarking write performance harddisk

Linux command for benchmarking write performance hdd

Single file write performance

# dd if=/dev/zero of=/nvme/test.bla bs=4096k count=1000
1000+0 records in
1000+0 records out
4194304000 bytes (4.2 GB, 3.9 GiB) copied, 2.15929 s, 1.9 GB/s

Multi file write performance (5000 files 1.6MB)

# time /bin/bash -c "for i in {1..5000}; do dd if=/dev/zero of=/nvme/test/logs/$i.bla bs=1600k count=1 status=none; done"
2.44user 25.36system 0:29.19elapsed 95%CPU (0avgtext+0avgdata 4180maxresident)k
416inputs+16000000outputs (0major+2598291minor)pagefaults 0swaps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment