On 1/9/20 3:22 PM, Hamd wrote:
FreeBSD:
freebsd@test:~ # time sh -c "dd if=/dev/zero of=test.tmp bs=4k count=50000
&& sync"
50000+0 records in
50000+0 records out
204800000 bytes transferred in 0.239590 secs (854792500 bytes/sec)
0.000u 0.195s 0:00.25 76.0% 22+198k 0+1568io 0pf+0w
Result: *854.79 MB/s disk speed*
I'm afraid a lot of those data are still in RAM waiting for fs sync. At
least do sync which is whole sys sync and add time of it to to the time
of dd. It'll still not be 100% accurate, but at least more realistic...
OpenBSD:
test$ time sh -c "dd if=/dev/zero of=test.tmp bs=4k count=50000 && sync"
50000+0 records in
50000+0 records out
204800000 bytes transferred in 12.303 secs (16645247 bytes/sec)
0m12.32s real 0m00.13s user 0m01.28s system
Result: *16.64 MB/s disk speed*
test$ uname -a
OpenBSD test.local 6.6 GENERIC#3 amd64
As someone already recommended you, you need to provide at least dmesg.