From nobody Thu Nov 9 17:53:33 2023 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 4SR8hF6YtBz50jjg for ; Thu, 9 Nov 2023 17:53:33 +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 4SR8hF44kHz4Yh3 for ; Thu, 9 Nov 2023 17:53:33 +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=1699552413; 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=M1ngb+HuCUuOpDgTv/Nc/CuUsAlU6VHndJSIDEb3gyo=; b=ygHo7NK9jFyfVVPnco+hTFCEuIvy3bkcLeF8uNkd1ftniCDNyydU5V5nblAAKb03fyZEP2 FGiFWiZkH4AAuc49iJyL9yHBSk0fv8sf0CO0wGb/HNpmVUQa3+a/F8+zeIyQ/1jY9F3/J5 p3wf0/5vsuXXaqovaEJ9SFmXHJgnFM6cT0xtz9aeY2b3zzA2Pjd8EGx4CUXcdOHd93qXGr I2oECfxzqpTK77i+CK0kszU4sCMhT7vihGmaa4yWFL5kukZzNgW6Ih1DRlHNtyVARTc7xm erU2km4hFlkqmQU4VZjQvYOoREAIA6H/OLWy8PW5JRvIxtrIT0YQVJ+bAXubyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699552413; a=rsa-sha256; cv=none; b=wegofTSn9xR5DsCB7MoQ69N0M1AbD3GadqB5ynNPAcK+fOZs41e9TS1Miy/uaIVqnssUHj nI8htmTh+caEemIpW5wAldPtPZHoeqtstEixjx93dxg+3GgvpobQQrmunRjTk/0RyIJEBX RY9KGstq5QnjFL0SxGiCAvqQ6HSaJwKvBMXjba0eX3tQ4qiHodzWypX424XpJQPfSF+Ahb nJC2UO8Ws9Ah9evkVlgg53xEaFQDDDnbldqCBksujHcAARX/NEOhZZYpHYAbo89qmYodNV astZsxb+lh7zsTsAa5wqfaG0M+9k1TSlA9Bp2WBMNoG0h9/8l7hwo3D/Vf3HSQ== 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 4SR8hF2rYXz9Yx for ; Thu, 9 Nov 2023 17:53:33 +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 3A9HrX8X057300 for ; Thu, 9 Nov 2023 17:53:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3A9HrXji057298 for bugs@FreeBSD.org; Thu, 9 Nov 2023 17:53:33 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 274994] Regression of iperf3 network throughput tests with erms "rep movsb" copyto loops Date: Thu, 09 Nov 2023 17:53:33 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rscheff@freebsd.org 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 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=3D274994 Bug ID: 274994 Summary: Regression of iperf3 network throughput tests with erms "rep movsb" copyto loops Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: rscheff@freebsd.org Initially, the thinking was, that a missing patch 6210ac95a194 was responsi= ble, but even with=20 that patch, the below results are reproducable; The exclusion of the erms codepath was performed by patching copyout.c like= so - thus only the copyin smap_std or copyin_nosmap_std would be used; however, smap is disabled elsewhere too, thus this collapses to a comparison between copyin_nosmap_std and copyin_nosmap_erms: > switch (cpu_stdext_feature & (CPUID_STDEXT_SMAP | CPUID_STDEXT_ER= MS)) { > case CPUID_STDEXT_SMAP: > return (copyin_smap_std); > + #if 0 > case CPUID_STDEXT_ERMS: > return (copyin_nosmap_erms); > case CPUID_STDEXT_SMAP | CPUID_STDEXT_ERMS: > return (copyin_smap_erms); > + #else=20 > + case CPUID_STDEXT_SMAP | CPUID_STDEXT_ERMS: > + return (copyin_smap_std); > #endif=20 > default: > return (copyin_nosmap_std); > } On Sapphire Rapids Xeon Gold 5416S (processor ID 0x806f7) (4th Gen) with erms "rep movsb": > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 4] 0.00-20.00 sec 83.6 GBytes 35.9 Gbits/sec 0 sen= der > [ 4] 0.00-20.04 sec 83.6 GBytes 35.9 Gbits/sec rec= eiver replacing the erms with no-smap,no-erms copyto: > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 4] 0.00-20.00 sec 86.7 GBytes 37.2 Gbits/sec 147 sen= der > [ 4] 0.00-20.04 sec 86.7 GBytes 37.2 Gbits/sec rec= eiver Xeon Gold 6438N (processor ID 0x806f7) (4th Gen)=20 with erms "rep movsb": - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 4] 0.00-20.00 sec 1.55 GBytes 664 Mbits/sec 0 sen= der > [ 4] 0.00-20.05 sec 1.54 GBytes 661 Mbits/sec rec= eiver replacing the erms with no-smap,no-erms copyto: > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 4] 0.00-20.00 sec 91.9 GBytes 39.5 Gbits/sec 0 sen= der > [ 4] 0.00-20.05 sec 91.9 GBytes 39.4 Gbits/sec rec= eiver On Ice Lake Xeon Platinum 8352Y (processor ID 0x606a6) (3rd Gen) with erms "rep movsb": > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 4] 0.00-20.00 sec 33.6 GBytes 14.5 Gbits/sec 0 sen= der > [ 4] 0.00-20.04 sec 33.6 GBytes 14.4 Gbits/sec rec= eiver replacing the erms with no-smap,no-erms copyto: > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 4] 0.00-20.00 sec 76.1 GBytes 32.7 Gbits/sec 0 sen= der > [ 4] 0.00-20.03 sec 76.1 GBytes 32.6 Gbits/sec rec= eiver >=20 Similar performance degradation was observed on many older platforms using = the erms codepath, and the iperf3 testing utility, with typical performance imp= act between 40-60%. --=20 You are receiving this mail because: You are the assignee for the bug.=