From owner-freebsd-ports-bugs@freebsd.org Wed Jul 1 10:03:31 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DDC4634A56B for ; Wed, 1 Jul 2020 10:03:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49xcHl5drHz4Ff5 for ; Wed, 1 Jul 2020 10:03:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C187234A56A; Wed, 1 Jul 2020 10:03:31 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C14EA34A58C for ; Wed, 1 Jul 2020 10:03:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49xcHl4nP0z4FXL for ; Wed, 1 Jul 2020 10:03:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 87AF9274E4 for ; Wed, 1 Jul 2020 10:03:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 061A3VAL048333 for ; Wed, 1 Jul 2020 10:03:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 061A3VJd048332 for ports-bugs@FreeBSD.org; Wed, 1 Jul 2020 10:03:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 247690] sysutils/openzfs-kmod performance problem Date: Wed, 01 Jul 2020 10:03:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: spam123@bitbert.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freqlabs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2020 10:03:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247690 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@FreeBSD.org Reporter: spam123@bitbert.com Assignee: freqlabs@FreeBSD.org Flags: maintainer-feedback?(freqlabs@FreeBSD.org) Created attachment 216107 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D216107&action= =3Dedit 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 t= est fired up with the "sync"-ioengine and ashift=3D12, by the command "fio --name=3Drandrw --rw=3Drandrw --direct=3D1 --ioengine=3Dsync --bs=3D8k --nu= mjobs=3D2 --rwmixread=3D80 --size=3D1G --runtime=3D600 --group_reporting" native-zfs = delivers 81.7MiB/s read and 20.5MiB/s write bandwidth whereas openzfs-kmod only reac= hes 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=3D9 and ashift= =3D12. This was not really a scientific test, but still showed the obvious differe= nce 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 lo= gs of different zfs combinations (2-disk raidz1/zmirror, 3-disk raidz1) at a l= ater 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. --=20 You are receiving this mail because: You are the assignee for the bug.=