From nobody Tue Oct 15 17:03:45 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XSgRR2Qmzz5YhsJ for ; Tue, 15 Oct 2024 17:03:47 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XSgRP6SCzz4Rqg for ; Tue, 15 Oct 2024 17:03:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729011825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=E8UCt786nS9FwEesxc+Lk7Lz+tzO2EDVmatdSb4yT5A=; b=EfuRaWXdvMezPI13sVhTVJGsBScPTFVY72fxfnolXPV0RrSrucMN6H9y3xBaZZj8etYJeC 207JIVeJXslG4vpGCM4UM+FGF3MA87/7DuSi05L4h1PwdsG3qWeIod2uKn4MSN7GQq+SM0 JXxc2GV5YVXOYurv0DE7eeGghmxK62tvbSyYS/CGpiN7toIYXsFk/nyeNNyXrDAXy4xV0k yXrCwi4RSJipTnoK95MTTdEkQDVtVWi+WdZcjVBhBXhXL7XZCjzmLkDGX+/8KT6flZ+P2K BRYZdy0OJrSn9D0GLy5FrtiuBKCrjx6nNDz7VpdHG5NOXYkktwNE/Jsa3i6f1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729011825; a=rsa-sha256; cv=none; b=Wv+wTuPjyCDHqjTarKmPyrmTR1p05EiYXC7QYDnFM+ni4Jsws7xHv2C5Kv5Dd77jWkesTe HxHtHHs0VGfujklVryRH6QlR+9D1YqLJOz9Q9hHkVHJ1XyvBd/YzRXpHMj0XCoT9mSoZyu pu8sveiD9vtpjoXQSzAFPYbF9eR1Z/bSwJOadlhXCor5gm8Z66PYXPGTUQY6i4/vpuRaNP 4oWc3tm42qkZCOQ+6qHdXNnepZ6+IOnRZIgEALbbd3kYzIEdmPm59xo9naUeg8YgzoyxeO hWqVvrQamaAk0D8MJXv5Kcs6RrAC0kVvuZiTEZIxJLiaGOJRlT8IAI8hK4hmDA== 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 4XSgRP63gpzWM5 for ; Tue, 15 Oct 2024 17:03:45 +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 49FH3jc8095048 for ; Tue, 15 Oct 2024 17:03:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49FH3j7H095047 for bugs@FreeBSD.org; Tue, 15 Oct 2024 17:03:45 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: bugs@FreeBSD.org Subject: [Bug 282115] GELI + QAT - 8955 performance is less than software encoding for block device acceleration Date: Tue, 15 Oct 2024 17:03:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: james@elstone.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282115 Bug ID: 282115 Summary: GELI + QAT - 8955 performance is less than software encoding for block device acceleration Product: Base System Version: 14.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: james@elstone.net Created attachment 254268 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D254268&action= =3Dedit Memory Disk QAT + Geli Test Steps Having installed an Intel QAT 8955 card and tested performance, there is a significant decrease in speed with the QAT card enabled compared to software crypto.=20 The CPU used for these offline tests was an old Intel(R) Xeon(R) CPU E5-240= 3 0 @ 1.80GHz that has the AES-NI instruction set. Fresh install of FreeBSD 14.= 1-p5 was used for each test, that than a custom kernel with AES-NI removed. The disk used to test against in the results below is a WD BLACK SN750 SE i= n a PCI slot adapter. The DD speed to a mounted volume for this disk is 1532 MB= /s. The script to generate these results is attached for referencem but uses a memory disk for testing maximal throughput. The /boot/loader.conf is: dev.qat.0.cfg_services =3D "sym;asym" qat_dh895xcc_fw_load=3D"YES" qat_load=3D"YES" cryptodev_load=3D"YES" Parameters: A:HMAC/SHA256 E:AES-CBC L:256 Crypto: hardware irq85: qat0:b0 77310798 1368 irq86: qat0:b1 120404887 2130 DD - DISK_BLK_SIZE:4096 DD_BLK_SIZE:8388608 DD_COUNT:25 ** write speed: (66,475,964 bytes/sec) irq85: qat0:b0 77310798 1368 irq86: qat0:b1 120833699 2137 Parameters: A:HMAC/SHA256 E:AES-XTS L:256 BS:4096 Crypto: hardware irq85: qat0:b0 77310798 1367 irq86: qat0:b1 121389848 2147 DD - DISK_BLK_SIZE:4096 DD_BLK_SIZE:8388608 DD_COUNT:25 ** Write speed: (61,894,122 bytes/sec) irq85: qat0:b0 77310798 1367 irq86: qat0:b1 121841632 2155 Parameters: A:HMAC/SHA256 E:AES-CBC L:256 BS:4096 Crypto: software DD - DISK_BLK_SIZE:4096 DD_BLK_SIZE:8388608 DD_COUNT:25 ** write speed: (110,486,470 bytes/sec) Parameters: A:HMAC/SHA256 E:AES-XTS L:256 Crypto: software DD - DISK_BLK_SIZE:4096 DD_BLK_SIZE:8388608 DD_COUNT:25 ** write speed: (102,362,135 bytes/sec) The above shows a drop in performance of 40%. Additionally when using the attached memory disk example, the throughput of this system tops out at ~135Mbps when writing to a mounted encrypted ramdisk UFS volume, with the 4 cores operating at about 25% each. --=20 You are receiving this mail because: You are the assignee for the bug.=