[Bug 247690] sysutils/openzfs-kmod performance problem

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jul 1 10:03:31 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247690

            Bug ID: 247690
           Summary: sysutils/openzfs-kmod performance problem
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freqlabs at FreeBSD.org
          Reporter: spam123 at bitbert.com
          Assignee: freqlabs at FreeBSD.org
             Flags: maintainer-feedback?(freqlabs at FreeBSD.org)

Created attachment 216107
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=216107&action=edit
logs + sample test script

I started lots of benchmarks concerning ZFS. Among the test candidates was a
Notebook with a single SSD disk where I compared the performance of FreeBSDs
ZFS shipped with the base system versus openzfs-kmod. I realized that
openzfs-kmod is much slower compared to FreeBSDs base zfs. I used the tool
benchmarks/fio (3.20).

If I pick one test, of course on the same hardware, the random-read-write test
fired up with the "sync"-ioengine and ashift=12, by the command "fio
--name=randrw --rw=randrw --direct=1 --ioengine=sync --bs=8k --numjobs=2
--rwmixread=80 --size=1G --runtime=600 --group_reporting" native-zfs delivers
81.7MiB/s read and 20.5MiB/s write bandwidth whereas openzfs-kmod only reaches
9665KiB/s read and 2422KiB/s write bandwidth.

The difference is quite big on all my tests, with combinations of io-engines
posixaio, psync, mmap, sync, pvsync, vsync; zfs with ashift=9 and ashift=12.
This was not really a scientific test, but still showed the obvious difference
in performance. fio seems to be a linux tool, however, works on FreeBSD - I
don't know how the different io-engines are implemented, but it shows the
difference in all tests.

Tests on normal hdds are to come too, but they take of course significantly
longer. I am also testing geli/zfs-encryption on FreeBSD and Linux (luks
encryption). This is out of scope here, just for info that I can provide logs
of different zfs combinations (2-disk raidz1/zmirror, 3-disk raidz1) at a later
date if desired.

Attached are 24 log files which include the results of some fio tests (and a dd
command output/timing). Also, see the included unenc-openzfs.sh for how/what
tests were done.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list