In a very similar question, the accepted answer suggests to do:
dd if=/dev/zero of=/tmp/output bs=8k count=10k;
to measure the write speed of a hard disk.
My tests were inconclusive. I have an LVM-based software RAID 1 setup with two ordinary hard disks. When running the aforementioned command, it gives the following result:
10240+0 records in
10240+0 records out
83886080 bytes (84 MB) copied, 0.0784284 s, 1.1 GB/s
Not that I'm unhappy to have a RAID array which can store 1 GB per second, but I would still like to know:
Why am I getting wrong results? Is it something to do with cache? RAID? LVM?
How to get the actual file-level write performance?
time
and&& sync
you could just try addingconv=fdatasync
to thedd
command. – thomasrutter Jan 25 '15 at 11:47