Performance difference between UFS and ZFS with NFS

Freddie Cash fjwcash at gmail.com
Mon Nov 25 18:18:32 UTC 2013


On Mon, Nov 25, 2013 at 10:14 AM, Eric Browning <
ericbrowning at skaggscatholiccenter.org> wrote:

> I am using /dev/zero
>
> /usr/bin/time -h dd if=/dev/zero of=sometestfile bs=1024 count=3000000
>

You really shouldn't use /dev/zero to "benchmark" ZFS.  It doesn't work the
way you think it will, especially if dedupe or compression are enabled.

Either use a proper filesystem benchmarking tool like iozone or bonnie++ or
fio; or create a big file using /dev/random and then dd that file to
various places in the filesystem.​​

# ​dd if=/dev/random of=bigfile.100M bs=1M count=100​

​Reboot to clear caches.  Then use if=bigfile.100M in your actual testing.​


-- 
Freddie Cash
fjwcash at gmail.com


More information about the freebsd-fs mailing list