On Thu, Mar 3, 2022 at 3:08 PM Jan Klemkow <j.klem...@wemelug.de> wrote:
>
> On Thu, Mar 03, 2022 at 02:59:33PM +0200, Mihai Popescu wrote:
> > 2. Can you suggest a sane disk I/O benchmark, writing from RAM to disk
> > (i.e. cp /dev/null ....)?
>
> /dev/null will act as an empty file.  you have to use /dev/zero.
>
> i do my test with this command:
>
> dd if=/dev/zero of=test10g.dat bs=1m count=10240 conv=fsync

$ time dd if=/dev/zero of=test10g.dat bs=1m count=10240 conv=fsync
10240+0 records in
10240+0 records out
10737418240 bytes transferred in 260.289 secs (41251827 bytes/sec)
    4m20.32s real     0m00.01s user     0m17.70s system

Is it too low? Is it expected?
More info are here:
https://marc.info/?l=openbsd-misc&m=164548029214340&w=2

Reply via email to