From nobody Thu Nov 9 19:25:47 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 4SRBkh4X8Dz506j3 for ; Thu, 9 Nov 2023 19:25:48 +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 4SRBkh2t0Fz3LRy for ; Thu, 9 Nov 2023 19:25:48 +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=1699557948; 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: in-reply-to:in-reply-to:references:references; bh=5r3b7FwwdLzFGofSuVM5FDUMyj+6EaAJw78++b1VW1g=; b=oB3oAZxDnjPY39dzIkfRQYgRar+tsxoaEXT+cZbSagR+JFc8umTglFvfCWPWF3KrxQjrBj OHnc1TU4zw4V89qYJw4MO6wixUisFCiWbn/7cRsEDVjI5aqEcJCFiVrAJMUUKWjvixaZGs sQzGDHdDSWbgCy3w+MoUFs57N1MIGEZPOmbVa3rEex0QESGuZy7jf8rEsSgcipaU/Ggl2f bHCv2W7FLCliJfTWrELpF9ZNxiXu+WXVDF2NxcToMHh6cPykrDDEaZu45XTSXQYK49cpLS ZwvBqowqm/Po7tk+qhJeFlVmkMTYHiYha5ONReb5+YpaH07IcQKZdSNH9Pk8TQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699557948; a=rsa-sha256; cv=none; b=qAfUQWUbOmXmweGCowB/w74Hcy+ITbcl5aWR4ash1x2QdV6F1HpCSjBN1PhlPRvu1OkvTb maw4XiTOCFr2GvNtA2azmPoGulNV78HayR8DridldrHO3KFSJl3B5bsztw9UWCA8xRmlEQ Y4wqJIsyhL5lcC/frgI793SVqaZ3hBh/0avRYbDzVaI/+l2agRPwFdFJq7wolXXlFDkQR6 y1bX4ZGceuJVfye40OFMSiQloBNgJnJQhAuvWFsgqbd6xEgcAY7PygbIX8MOKskut5flRP 6C6zwh7ZTr4EPO24k4nKxrUdnuT/SqKAQHUjzPLzZwRgrmJWJOkr2bNMGp3fKA== 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 4SRBkh1bYqzCp6 for ; Thu, 9 Nov 2023 19:25:48 +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 3A9JPmxR006824 for ; Thu, 9 Nov 2023 19:25:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3A9JPmWO006823 for bugs@FreeBSD.org; Thu, 9 Nov 2023 19:25:48 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 19:25:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: mjg@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: Message-ID: In-Reply-To: References: 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 --- Comment #2 from Mateusz Guzik --- I can run FreeBSD in a vm on Intel(R) Xeon(R) Platinum 8470N which is also Sapphire Rapids. I get: [ 5] 0.00-10.00 sec 71.0 GBytes 61.0 Gbits/sec 3 sender [ 5] 0.00-10.00 sec 71.0 GBytes 61.0 Gbits/sec recei= ver Which is the as Linux on the same machine. Poor man's profiling with dtrace: dtrace -w -n 'profile:::profile-4999 { @[sym(arg0)] =3D count(); } tick-10s { system("clear"); trunc(@, 40); printa("%40a %@16d\n", @); clear(@); }' ... shows that while copyin is indeed high up in terms of CPU usage, the singular most time-consuming thing is lock contention. [snip] kernel`mb_dupcl 2172 kernel`tcp_m_copym 2279 kernel`m_getm2 2683 kernel`tcp_default_output 3364 kernel`mb_free_ext 3443 kernel`spinlock_exit 3487 kernel`tcp_do_segment 4243 kernel`soreceive_generic 5127 kernel`copyout_smap_erms 9601 kernel`copyin_smap_erms 9744 kernel`lock_delay 12566 kernel`acpi_cpu_c1 719581 --=20 You are receiving this mail because: You are the assignee for the bug.=