From nobody Tue Jun 27 00:08:05 2023 X-Original-To: threads@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 4QqlRB1qPxz4hqP4 for ; Tue, 27 Jun 2023 00:08:06 +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 4QqlR94VTKz4F59 for ; Tue, 27 Jun 2023 00:08:05 +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=1687824485; 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=1CBx5aV+kBVVVFzGpZYXtFCnQjUsxAzv/3FlGEOiQP0=; b=dGghN6yXdpmGi+A9GeJcIjC4SXDtWhq8yVbRQq3sFodZv/CJJU15MK5oov1IHSGQPIkc7b nupNj7qK0mYYtaRjIgUe6SKEMOx7Ti1ypL9z9IgeahEFxLi5+6GX4SKvXMZVCJDv+2JAvk IwHGKRtP6JMwn/7/5vQFo1H6w4l2hDCZID8eAANxIrQAHq1jtm56BWCvFRmQaxUtpP/XBc IuFz2iJzrTPJOVlwl4JdFlzb5+Bhpknqg+Ux5sWQBr5p5f7kqtHwPwEFAWdwGyiF0lqXAJ IcrS5CpFgBLQ97mTtCUDL8rw4+ify2GmR6/Fl8d17PbwJ43PKKupoP0VXpecWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687824485; a=rsa-sha256; cv=none; b=mXkuQbd2WlckrTM/rMxR5BdQE1VuDbw7Lzf9qpRasTT/10struRoKQIwI1lkjN00siiJia yG+bS9LeFca5Z3wXYBh5ZUJph4xqHahr+dcJ88vNA2lY8ia+b51u/hSXE0pruJqa6BY2WL lk/BEFVU6PH67GcTgg+na1naMxLp/a+JvPMr/jffLwDM/XyfOWEHu7XolAKpK/AUS3Le+M gw8AsCulxEUqSU9vbinc3DQ2orRtNzHNHoeaZmx129rDDQJLwjjvDwzQ2gttlH0Z06d0HC ecYI3LA0flw4qaiyNksPukyfZzIOYPrlnaCkJDEBcn4r92glDHIkRU9B+P8vQA== 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 4QqlR91q18zWG0 for ; Tue, 27 Jun 2023 00:08:05 +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 35R0857I035943 for ; Tue, 27 Jun 2023 00:08:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35R0851X035942 for threads@FreeBSD.org; Tue, 27 Jun 2023 00:08:05 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: threads@FreeBSD.org Subject: [Bug 272238] [PATCH] false sharing with pthread rw and spin locks leads to severe perf degradation Date: Tue, 27 Jun 2023 00:08:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mjg@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-threads@freebsd.org X-BeenThere: freebsd-threads@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272238 Mateusz Guzik changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mjg@FreeBSD.org --- Comment #2 from Mateusz Guzik --- Huh, that code is pretty nasty all around -- even with just one lock use performance under contention is lower than it should be. That said, your patch pushes it forward even if one could raise some cosmet= ic conerners. Preferably you would mail git format-patch output to me so that i can git a= m, otherwise I'm going to write my own commit message and set you as the autho= r. --=20 You are receiving this mail because: You are the assignee for the bug.=