From nobody Sun Sep 24 06:05:40 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 4Rtb8h53p2z4t9lN for ; Sun, 24 Sep 2023 06:05:40 +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 4Rtb8h2MRdz3MgS for ; Sun, 24 Sep 2023 06:05:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695535540; a=rsa-sha256; cv=none; b=nWIGLK6JZBSBSXUtE75OczFZmWO9LCS25jeQqiHw5BvyzpcdJDethKKaTb0D73SjWH8CC0 B2FkJBYl2XZWbNhy+Evt5gONvSZbczqbnQ2LV2rwiHkOs0v9Um2keTG3moy3LZVhwF9Sal ioaNUehreUZYkiM5Hh56KjJxlfMdLLU2Nexccv6GOcHL7DIp7EUZjtmTRHN2RguVZ6hxiL 6lkWMwyOvyt6BuJnKU12I+JWa05PcQuPc+VZE/KsZqEfEbNjxH3s5EkUaRExLKv9ZnAHqy 0lxXfcpbmEaq9AaSp6h2dzQ7GCWGfUhNgM2wjHDG3OQDYS1T876iQs7S+LBibg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695535540; 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=D3Mj8qIfR2aANUl64duJozdevfOWH09VaXwWQVD2r2I=; b=n39Dqfg0XLFPHNZRZG+W3o62ZtoARkKpwUyzYOm66vCjbLXzldmNtzqFCohiOM03IZEbL4 3P43z3NBxByA3dX0dGOWSpuoyMtaN13sNM+m+ucskENHaFmckDaP0nAdo5MobbXHvorVv4 VpMV9mhidRoIZidQ38x5xkF4xfseIAo+g/OQfAD/ucUdd8or2kicX4kIqtpnsxBBnZehCa UIf+zjvu45VatVLi7z0sZBxqm31L9cdocdzhOJKK05IkrJJdxwGXvISpvSoCfCftPl1iTW Lycpa4WIhDtJ4Q/J54hJ/bd6Jcpwkd80FduLzhcB8IVJsEXMAI96J3gEv+Kj4A== 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 4Rtb8g64lszbnd for ; Sun, 24 Sep 2023 06:05:39 +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 38O65dtV093611 for ; Sun, 24 Sep 2023 06:05:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38O65dAV093610 for threads@FreeBSD.org; Sun, 24 Sep 2023 06:05:39 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 268532] [libthr] pthread_mutex_destroy/pshared_gc slow when destroying many process shared locks Date: Sun, 24 Sep 2023 06:05:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: atle.solbakken@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268532 Atle changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #238992|0 |1 is obsolete| | --- Comment #3 from Atle --- Created attachment 245177 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D245177&action= =3Dedit Patch with saving last timestamp after iteration instead of before Thanks for the suggestion. I've moved the store of the last iteration time to after the GC-ing. Now, in the situation of GC-ing being slow, we will still wait a consistent amount = of time before doing it again. --=20 You are receiving this mail because: You are the assignee for the bug.=