From nobody Fri Nov 19 15:04:50 2021 X-Original-To: freebsd-arm@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 29592188F464 for ; Fri, 19 Nov 2021 15:04:50 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hwg1t0XrCz3LZ8 for ; Fri, 19 Nov 2021 15:04:50 +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 E6C3426E2 for ; Fri, 19 Nov 2021 15:04:49 +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 1AJF4nlO064996 for ; Fri, 19 Nov 2021 15:04:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AJF4nHc064995 for freebsd-arm@FreeBSD.org; Fri, 19 Nov 2021 15:04:49 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: freebsd-arm@FreeBSD.org Subject: [Bug 259937] OpenSSL is 20x slower at AES-GCM than on Linux Date: Fri, 19 Nov 2021 15:04:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: allanjude@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@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 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: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259937 Bug ID: 259937 Summary: OpenSSL is 20x slower at AES-GCM than on Linux Product: Base System Version: 13.0-RELEASE Hardware: arm64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: allanjude@FreeBSD.org FreeBSD 14-current: # openssl speed -evp aes-256-gcm Doing aes-256-gcm for 3s on 16 size blocks: 19608265 aes-256-gcm's in 3.19s Doing aes-256-gcm for 3s on 64 size blocks: 5182139 aes-256-gcm's in 3.07s Doing aes-256-gcm for 3s on 256 size blocks: 1328395 aes-256-gcm's in 3.09s Doing aes-256-gcm for 3s on 1024 size blocks: 345918 aes-256-gcm's in 3.18s Doing aes-256-gcm for 3s on 8192 size blocks: 43314 aes-256-gcm's in 3.18s Doing aes-256-gcm for 3s on 16384 size blocks: 21688 aes-256-gcm's in 3.18s OpenSSL 1.1.1l-freebsd 24 Aug 2021 built on: reproducible build, date unspecified options:bn(64,64) rc4(int) des(int) aes(partial) idea(int) blowfish(ptr) compiler: clang The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 byt= es=20 16384 bytes aes-256-gcm 98425.80k 108020.57k 110199.61k 111400.89k 111592.= 19k=20 111751.92k Same machine with Ubuntu 20.04: $ openssl speed -evp aes-256-gcm Doing aes-256-gcm for 3s on 16 size blocks: 83708856 aes-256-gcm's in 3.00s Doing aes-256-gcm for 3s on 64 size blocks: 55912628 aes-256-gcm's in 3.00s Doing aes-256-gcm for 3s on 256 size blocks: 20800967 aes-256-gcm's in 3.00s Doing aes-256-gcm for 3s on 1024 size blocks: 5873794 aes-256-gcm's in 3.00s Doing aes-256-gcm for 3s on 8192 size blocks: 768122 aes-256-gcm's in 3.00s Doing aes-256-gcm for 3s on 16384 size blocks: 386083 aes-256-gcm's in 3.00s OpenSSL 1.1.1f 31 Mar 2020 built on: Mon Aug 23 17:02:39 2021 UTC options:bn(64,64) rc4(char) des(int) aes(partial) blowfish(ptr) compiler: gcc -fPIC -pthread -Wa,--noexecstack -Wall -Wa,--noexecstack -g -= O2 -fdebug-prefix-map=3D/build/openssl-OpXo8E/openssl-1.1.1f=3D. -fstack-protector-strong -Wformat -Werror=3Dformat-security -DOPENSSL_TLS_SECURITY_LEVEL=3D2 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_= ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=3D2 The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 byt= es=20 16384 bytes aes-256-gcm 446447.23k 1192802.73k 1775015.85k 2004921.69k 2097485.= 14k=20 2108527.96k --=20 You are receiving this mail because: You are the assignee for the bug.=