From nobody Sun Apr 16 08:50:51 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 4PzkRc2Qn7z44wrX for ; Sun, 16 Apr 2023 08:50:52 +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 4PzkRc1QPWz4TtX for ; Sun, 16 Apr 2023 08:50:52 +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=1681635052; 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=hkzXS+36tgn74NhBmrAjEIeR7Mqouvlx8d4aiN5pXI4=; b=v+R3/uoTk8QKV57EI6qYk8zick+KzHxUWkfuxkQFpdidqgNUOBLngpbP6NK0x3ZwNigaE5 rX+iti9J5Y0G/uqMekSWB3xcg3k6+Z50XMgH/qsV0nEvL8e798ui0CbOMEl7zrZmrh9n4Z bmQJtd4oZ409MZCnlHko9YC09iwD2pgiWqsWnQFfbLwqaUiyUIPG5ZUqWnbZvR3jSSwlY3 2VxgBdSFWdcZxbuW0POLoT82EonDJv5BWore+qCPwrDxjczqOOAtsS/LjKEUDiNsPGlCc0 QK9seBnWmzY/p6+Iqq4Kp3GFuZUEUBsGANAl+DV7PJ/LTZeJmYaKWbeogx/j6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681635052; a=rsa-sha256; cv=none; b=ikq8UKBKypMnk/dMqr/a+JKuayNg5EyPDk8+bwaW9aFBJ1p1rLuJNOnBpWNYjhDlUTMhLs W7C3BaOwjJDhdlN0AbkV/W3WHU4PD8JxVxBFwAyoKTzMtrtGqEWX0kaFxfJMIR2Oae+phH I3JMh8rxTWnhL8xZIaWMxjLjcHihu0r//Un5/tU3JHNy3ShiDdrdvhWc22J2I5qjO66aK0 zzvQxvDWIho1hcQq2UVAb40CrwHD1gtzd8w6WbE++DloDEtcoZEibl65wa2awfQgmtn1RH WbPIPzvYUaj4mMYac2hvE/adYGASzVNpqpzSVUXL9h7JIoqVqPDFsCVbb4NNSQ== 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 4PzkRc0Q2zzhGG for ; Sun, 16 Apr 2023 08:50:52 +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 33G8oqHa072741 for ; Sun, 16 Apr 2023 08:50:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33G8op99072740 for threads@FreeBSD.org; Sun, 16 Apr 2023 08:50:52 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 270785] Performance and power efficiency regression due to pthread_cond_timedwait() changes Date: Sun, 16 Apr 2023 08:50:51 +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: 13.2-RELEASE X-Bugzilla-Keywords: performance, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bllcha013@myuct.ac.za X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@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: 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=3D270785 --- Comment #10 from bllcha013@myuct.ac.za --- Thank you, I applied the diff on a clean git clone on releng/13.2 and teste= d, but unfortunately it doesn't appear to have any effect. The sysctl is visib= le as kern.ipc.umtx_min_timeout. I set it to 10ms (10000000ns) by issuing "sys= ctl kern.ipc.umtx_min_timeout=3D10000000" but unfortunately there doesn't seem = to be any effect. CPU usage stays the same. Here's the truss and dtrace output: syscall seconds calls errors __sysctlbyname 0.000986089 6 0 getrusage 0.008186177 106 0 sched_yield 1.172105081 28475 0 _umtx_op 30.594233465 28659 28654 ------------- ------- ------- 31.775510812 57246 28654 dtrace: description 'fbt::do_wait:entry ' matched 1 probe CPU ID FUNCTION:NAME 5 18113 do_wait:entry struct _umtx_time { struct timespec _timeout =3D { time_t tv_sec =3D 0x16a long tv_nsec =3D 0x279c2e2a } __uint32_t _flags =3D 0x1 __uint32_t _clockid =3D 0x4 } 6 18113 do_wait:entry struct _umtx_time { struct timespec _timeout =3D { time_t tv_sec =3D 0x16a long tv_nsec =3D 0x279dd9fd } __uint32_t _flags =3D 0x1 __uint32_t _clockid =3D 0x4 } It seems the high volume of syscalls stayed the same, with the same short 0= .1ms delay. Assuming this can be made to work though, this tunable would be really grea= tly appreciated. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Apr 16 10:27:04 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 4PzmZd5h5Xz4552v for ; Sun, 16 Apr 2023 10:27:05 +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 4PzmZd2Wg9z4QXh for ; Sun, 16 Apr 2023 10:27: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=1681640825; 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=eeQwa1qbrfn20hv1x88XGuwg3ig2wGgmLzJliHq5VmI=; b=kSfXHVBlxcfiZ0QP6cX0m+2QPJuSlYg+L3zNgsRn4Cv8NOneLAx6HlE+8wPPct9mcTyv4Q TO6kvypWONIwguosyvFKfy/jzEbldsbLQs2xhKfTMwiLHsHIiCgqQqU5zksE6P71Jt6KU2 yqZatoYGyR/EDX/MpFQ+mbHvdPQWlTLHrgziV8dOPr65uPqC5NbQBxFMX59nBZOpyvJMj6 0ZCHckm8SovGfEaMO7pLwR2zx/yxFaCuJtCyjn1jU1Jjg4uoMwUh5BCQ+hVj1IvNFttXOS ACDeIOq69RwsypsxZENqDTz5wYNsKhNdILEXrTRs0jCQikZXzAFLZB4mqCaraw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681640825; a=rsa-sha256; cv=none; b=q2V53YjoTkKb+i3kNSfi3EuUkpzll8lNWluBBaGESWKWCH7QkOJVLSpL2+FJEKblluDGaT UWcjafNnukDhhPWZGK/J/GNHVW8ploibDFW32BDfe3qPnjHnWPWEr+jcrs5bX/akyJsqc8 4iPDzkNcbQs34Kp7xDfM0YNdNrtJANeWPCilfwDDMzoFXcH6+HN4Rb5ZusKK/ikSyGAuNq UOcihTazXXWhiO80cOkSe67D8gwsHMQcsAbd/9gCZI7Vle258QNleYACR/de/FjXG7B4XV 1bLsq3XVbIz49BvHAyfezre0UiZRH/9Pyni2vZSX56STDe7uOFQOpZ1zflE8Ag== 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 4PzmZd1bggzkFS for ; Sun, 16 Apr 2023 10:27: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 33GAR5jE050347 for ; Sun, 16 Apr 2023 10:27:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33GAR5l2050346 for threads@FreeBSD.org; Sun, 16 Apr 2023 10:27: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 270785] Performance and power efficiency regression due to pthread_cond_timedwait() changes Date: Sun, 16 Apr 2023 10:27:04 +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: 13.2-RELEASE X-Bugzilla-Keywords: performance, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kib@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: 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=3D270785 --- Comment #11 from Konstantin Belousov --- Yes, there was at least one conceptual bug in the patch which made it non-functional. Try the update please. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Apr 16 12:48:19 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 4Pzqjc2fN6z45Hfp for ; Sun, 16 Apr 2023 12:48:20 +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 4Pzqjc0xrhz4LxB for ; Sun, 16 Apr 2023 12:48:20 +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=1681649300; 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=6dGD9iMP7tWxB+SgxOEFMybRCCMHaDE8N4wTpdxC+ck=; b=iv63n8R6RtWrKxzttdRInoCVFQE2aNds/0uckokE4jk/Kzl6U+PIN3zeA5+qUxeRs3hDZU tNs2zOXakDocs6sY6f6er4B5CpnUCZ/d5/A1x1897HathpCxJFjI1ZlM6Q0H7VCOnwdMoa LlC4ra4NtkImmZM62yVLgZrRcyG/bS4fit48maNtgEQCdPpuBt4g/EGqG5nzrGHakDRDu3 RakKysl22b6ZnW8BUS5/QQzvxBgYAqsOOJzWodsqMkZ9tZ6hGMn9FQP6erA4emGQa/TAp7 CcSr0bKwqi3mS2W5wpwU1q6z9gsuWZONscGCSLxNC/jNiwexFW1RdpPkCBLk0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681649300; a=rsa-sha256; cv=none; b=Qe3rZccahsa+DN47UDAes0buHDw8u/1jUXfzvvv4DVe3f7wdUH/b2y6jd4Ik/H2roR6cKh W0awnXZtyYMOY1QQc06YYGkoJdwvIRJQJ1LjuXdaQQ+7x+Djq1HTymFmbGCRXrJ2KXxV0F 8UvYqacS0IjeGuazKgx+JnZoegNiQdxePvrbog6keRb6KoiKSmC2IfrkkxN9sEQdVC14pF pJL6YwGLjgZa6i0X0iyXM1Cc6vWc5jqpxsBq+AEPfi6hjmK+DX+ElFV/iLwGcqg6emBthK dZg2k4vqVjTUtK80gcLBoL1GwqxO89Lt0zWkqr1Iu0JodttYNT2FiMv9VFseuQ== 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 4Pzqjb6psGznVG for ; Sun, 16 Apr 2023 12:48:19 +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 33GCmJKI013292 for ; Sun, 16 Apr 2023 12:48:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33GCmJ3B013291 for threads@FreeBSD.org; Sun, 16 Apr 2023 12:48:19 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 270785] Performance and power efficiency regression due to pthread_cond_timedwait() changes Date: Sun, 16 Apr 2023 12:48:19 +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: 13.2-RELEASE X-Bugzilla-Keywords: performance, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bllcha013@myuct.ac.za X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@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: 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=3D270785 --- Comment #12 from bllcha013@myuct.ac.za --- Thank you, I applied the updated patch and tested, now Java seems to hang a= fter Minecraft server has started when the sysctl kern.ipc.umtx_min_timeout is s= et to anything except 0. I tried 1, 10, 100000, 10000000, etc... which all resulted in a hang, but 0 is perfectly fine. These are the last few lines f= rom truss when Java hangs and the truss output stops. WCPU usage of java process drops to 0%. Only way to stop it at this point is kill -9. _umtx_op(0x27cea36b0188,UMTX_OP_MUTEX_WAIT,0x0,0x0,0x0) =3D 0 (0x0) _umtx_op(0x27cea36b0188,UMTX_OP_MUTEX_WAIT,0x0,0x0,0x0) =3D 0 (0x0) _umtx_op(0x27cea36b0188,UMTX_OP_MUTEX_WAIT,0x0,0x0,0x0) =3D 0 (0x0) _umtx_op(0x27cea36b0188,UMTX_OP_MUTEX_WAKE2,0x0,0x0,0x0) =3D 0 (0x0) _umtx_op(0x27cea36b0188,UMTX_OP_MUTEX_WAIT,0x0,0x0,0x0) =3D 0 (0x0) _umtx_op(0x27cea36b0188,UMTX_OP_MUTEX_WAIT,0x0,0x0,0x0) =3D 0 (0x0) _umtx_op(0x27cea36b0188,UMTX_OP_MUTEX_WAKE2,0x0,0x0,0x0) =3D 0 (0x0) _umtx_op(0x27cea36b0188,UMTX_OP_MUTEX_WAIT,0x0,0x0,0x0) =3D 0 (0x0) __sysctlbyname("vm.stats.vm.v_free_count",24,0x27d0328ecc04,0x27d0328ecbf8,= 0x0,0) =3D 0 (0x0) __sysctlbyname("vm.stats.vm.v_cache_count",25,0x27d0328ecc04,0x27d0328ecbf8= ,0x0,0) =3D 0 (0x0) __sysctlbyname("vm.stats.vm.v_inactive_count",28,0x27d0328ecc04,0x27d0328ec= bf8,0x0,0) =3D 0 (0x0) mprotect(0x27ceb6394000,65536,PROT_READ|PROT_WRITE|PROT_EXEC) =3D 0 (0x0) __sysctlbyname("vm.stats.vm.v_free_count",24,0x27d047c69c04,0x27d047c69bf8,= 0x0,0) =3D 0 (0x0) __sysctlbyname("vm.stats.vm.v_cache_count",25,0x27d047c69c04,0x27d047c69bf8= ,0x0,0) =3D 0 (0x0) __sysctlbyname("vm.stats.vm.v_inactive_count",28,0x27d047c69c04,0x27d047c69= bf8,0x0,0) =3D 0 (0x0) In addition, when the sysctl is set to anything except 0, dtrace shows this output from the moment I start Java/Minecraft to the moment it freezes: dtrace: description 'fbt::do_wait:entry ' matched 1 probe If I set the sysctl back to 0, kill and restart Java/Minecraft, then dtrace shows lots of output as expected. As soon as I set the sysctl again, then dtrace output immediately stops as well as truss output, leaving the above. It's as if it is not entering do_wait at all when the sysctl is set? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Apr 16 16:19:51 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 4PzwPg1v9Mz45cwP for ; Sun, 16 Apr 2023 16:19:51 +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 4PzwPf6qt9z3J9r for ; Sun, 16 Apr 2023 16:19:50 +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=1681661991; 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=SeKH2gnIs+HIwQICoBLe+4fUGJ08pOvVhqV14mcjGKU=; b=oqwQLWoQ5kOhJBobmh/WMRj5+Xl3ygLindS6qGlpIWQgyixoXHGYngfV+Fn45iJg7WkjmH dSIA9t3Gr0nUsROVEBH8aKUxGdfrzI440qZtEuNfuqdNSlNrJYFdKHAREGpavzPpCIE6uJ wjAtB3kiwPrwThKQ915dNDbP7cdDEwMMH5xzPE0sDV4iCQo4c8VMiD9Ikw91UNVh4z3TA8 wIDMP49jhYIe/OMAyfUtyeG1/1G3tELWf3W5reoTwqpRPI8had3MI3a5re7TJcXxabb5+q c2UCg03htTeXJLYA7FzzoOWEdPG7FnohGgQNr1cg/hCx8L8pgaVj54Y6mYyHVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681661991; a=rsa-sha256; cv=none; b=u3TVpsHBZXf5FQqwWT/1KkpxFBH2vsZmVsCmCMRO+SHNQ0c8Wa960yPpSUgYhIqssaTLoP f20NstqmRiBqUqTOru/M935L7aBr+bprQ8h18kgWI46p+k8CEKxD7i3Rbjsnkf012RVOrx 9LA9XAr35JxV4ntvuqL3c4vAZ8hXXc8Tkon6iqTkgMKuTfc2I+ioHxCsx9nm0eb5VB+VNn P7PBu7NAq9T8bUs4qjziiMDTAbafigbxsTO5rH+QrDLENPNXWp1FKC1r+hwSfENBA3Ftng DMJcNBMzaxr/7NOHMRmWVYPb541drN5y4wDlduF+hNLtkwFpWqDuhhJP7T3o6Q== 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 4PzwPf5ty0ztqT for ; Sun, 16 Apr 2023 16:19:50 +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 33GGJoRp057898 for ; Sun, 16 Apr 2023 16:19:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33GGJohx057897 for threads@FreeBSD.org; Sun, 16 Apr 2023 16:19:50 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 270785] Performance and power efficiency regression due to pthread_cond_timedwait() changes Date: Sun, 16 Apr 2023 16:19:51 +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: 13.2-RELEASE X-Bugzilla-Keywords: performance, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kib@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: 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=3D270785 --- Comment #13 from Konstantin Belousov --- I misused abs time instead of the uptime for the timeout recalculation. Please try the updated patch. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Apr 16 18:02:06 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 4Pzygf2KPBz45lQR for ; Sun, 16 Apr 2023 18:02: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 4Pzygf0lw3z4JZ4 for ; Sun, 16 Apr 2023 18:02:06 +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=1681668126; 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=fo5GUPQVe9wJUG5DjIUY2hdAec3gNJXU0dspp55KSNw=; b=smO58qpgYXAIE8wnqMnOfpRoGgT9rAPUZGF+/RkgiCmwLvOu4CPf23T11ritVvF3xe6F9M qRQKNlyC/8jSZFVjZZuVTHhsw4Hlfo3gWKX7GpGBuzmLw3ihQkh8wBao8XUcr2hbGz7L1T aaDpp/8ZWhkZU2pExAjfB3XpIK28lrkpUAe9zVOKFkcMbpRXac6nNC5IFy9SP6jDXRuzBx 26bxqI9RCVl7EUlKQxByj6Xrd90uVtqvHjadl96jrVBD8EcDGuo1PazHJBH2r0Vnzxee7h 6L2K+uQEmm5jZ3Q5HvkR3rC5AliVzAZ48Y8emCgUxo7PWnb20PG18/f0z+h0aQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681668126; a=rsa-sha256; cv=none; b=TDfmAUv8NrN8IRowi5X2lZ1oJD4hxCtZY1v0N2VE74xRe93qf6J/VUAfdCyohca+/DgWPA n6+UfiI8E26Y0EfZwBfgPSfu7DXVHu4zxn95rZHxbAWUHySzrYCv/PtqFslI/XYbDbgUJH I3q/F9S7r4PhO0D2CdPNBYQ5+SPMe75a5EMtSlbd0y4p3UPepu8Q1bQXnwmuV+RKiqtsA9 pKXXIocZDffkdgrwmvendJg2YniWJoiDxPumnnIUGVhgCE48h4kfn1ZHOffIHOfRDsQf+6 fM0rilVAY9bLkoNvCEpjY8cQ6PLBSvzphyS4eNXAMpseT+SEEmnB6L9dF49hKQ== 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 4Pzygd6xFxzxXR for ; Sun, 16 Apr 2023 18:02: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 33GI25vF020707 for ; Sun, 16 Apr 2023 18:02:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33GI25la020683 for threads@FreeBSD.org; Sun, 16 Apr 2023 18:02: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 270785] Performance and power efficiency regression due to pthread_cond_timedwait() changes Date: Sun, 16 Apr 2023 18:02:06 +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: 13.2-RELEASE X-Bugzilla-Keywords: performance, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bllcha013@myuct.ac.za X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@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: 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=3D270785 --- Comment #14 from bllcha013@myuct.ac.za --- Thank you, it works now. Setting kern.ipc.umtx_min_timeout to 10000000 (10m= s) gives nice low CPU usage, and the CPU is spending much more time in low-pow= er C-states. I'll keep an eye on it for a while more but for now it seems perf= ect. I really appreciate this patch, and I'm sure others will find this very helpful. May I ask if this patch will be included in an update or patch to FreeBSD? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Apr 16 21:01: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 4Q02fB3GMLz44jbR for ; Sun, 16 Apr 2023 21:01: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 4Q02f96n5lz47kP for ; Sun, 16 Apr 2023 21:01: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=1681678866; 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=OqiiM3nFW5nnT16/kzbZROJApoR+T/4u56soW8AKdWE=; b=k92XXeQWunOeVvlPPQtNUUUIdHHcM4iQ3DRSvxbhxWc81JacqICQ/C6DsRXyLzXk4r6f9i DhfNSW988EhgtBJn5S0JxA+TyFjNxRH7JiAO9QmKztz75jcSEIvx8MZ6BYhlla7GhPZ9ys xdHj+kY+THt7hNTmjaHjPOcW2HISsMUFQv58FpgtQxvJrCbMZtEP8/eR8QEBHKPq5riPay nIsf33KW1bvYKixpY19vbQlAMYqOYLiT4mu5ZcuhiZv6KA/uaLc3M9j2igvahmcVedBox9 SBPBDNmSLBDZyq497rtFWpeQu5M2Iht2A5kQx+VHAoE2G4YnESLp7yxDRJJ20A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681678866; a=rsa-sha256; cv=none; b=JpVamXpzKtNw0OstDQ6t9k/uJEzzC3depaYuF2K2z2kemB1tywCcCVVZGMG5cgGgDVT7Dh 5vQrSmZZGIQxHLMFOPvedthgey23GxBj5oHT4VbAmqVksqp/FeBLzqP24fmnxPV+Izsld6 EmS/MSMe+VXHuMArECeJk+5+kzjDKAtn+RnjPNQ60KfeCllzhWcfz9E5+PWYzAh+c5fSkh jB5xnul6iVea5e7ByJFr6nMHvO3Zmay5eOtEK2D1/1LuBu+SFn84gu7i4mOvFYub3Kas/J JV7zVLvSsnViVNMNg5QirMQWPvvwF+iDoTdNpuUlrToagYzfWWUcraFYl81/0A== 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 4Q02f95tSWz12jt for ; Sun, 16 Apr 2023 21:01: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 33GL15jF097333 for ; Sun, 16 Apr 2023 21:01:05 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33GL152F097332 for threads@FreeBSD.org; Sun, 16 Apr 2023 21:01:05 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202304162101.33GL152F097332@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: threads@FreeBSD.org Subject: Problem reports for threads@FreeBSD.org that need special attention Date: Sun, 16 Apr 2023 21:01:05 +0000 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 Content-Type: multipart/alternative; boundary="16816788656.35ac29c.92183" Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N --16816788656.35ac29c.92183 Date: Sun, 16 Apr 2023 21:01:05 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 237195 | pthread_mutex_unlock crash as unlocked mutex dest 1 problems total for which you should take action. --16816788656.35ac29c.92183 Date: Sun, 16 Apr 2023 21:01:05 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
Open        |    237195 | pthread_mutex_unlock crash as unlocked mutex dest

1 problems total for which you should take action.
--16816788656.35ac29c.92183-- From nobody Mon Apr 17 08:23:28 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 4Q0KnX5N8sz45YxB for ; Mon, 17 Apr 2023 08:23:28 +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 4Q0KnX14wgz4LX4 for ; Mon, 17 Apr 2023 08:23:28 +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=1681719808; 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=FkTsnunHb9pOu84ICTjPlzM5W0/jWnAJyvqw72Ax04A=; b=TH1C6lDqvLG+IQg/N2lglPbX3I41nOLMjYc6l2T7AP8pIpexEz242VJwFKB9XWOXry5FvP mD5TdSk4Zqnyze9eMUiM8IgdB1c24GWr2VGd2o0cwobb6ChRBCihqq5Y6TPe7WKk2qeQhV cJ9HC6UHn8/WexSesPuhD6E340K5qN71qavZ7WjxKIGGk+08Z4KTq1G6v5yYg9nJSGHUbA wXSSx5P6764ukY/LrCPyr5bTKp5EG1VXcpMcqnWlCu7CqenlH1XcwzuHGdmXsQderY8mwx WsnB1m0Yni1ONJtlkoqg5yF7/0+wCBFPlL+IH4Xej6iG8K3OHfoMf2NmggKTDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681719808; a=rsa-sha256; cv=none; b=x/1khVCxDI4yfAmhRz9FAoe/prEn0MXkT315AiJlFKXK90XUoHLJ8HoB1sxWcOEmpravD5 hkbJBasssNsDOKQi07XWeJIKjJmDPyDIEDwvxUSj0KQ7WsNisZ+LmXp0ZntKYgtZ0SCOEO BqPiIRRuCSmK5Ju/5jKP9ih3CHtiHa+XYYYfwJ5ac6TkH1Fqcj9aQ9UDxmkTtSpyN1Agcy SZuiGSHi8d3T3dC0A2MTYOHJ1JKGfDcJGjDeaTzQnSfvaafbTl20pwxKscECn/KuRa9gq0 9o1eKU2vAEuPI2lGzgVjJmCSikwt0o/cE0c2G/zm++lHH/M0MYeaBxPm5J4OiA== 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 4Q0KnX04wszM29 for ; Mon, 17 Apr 2023 08:23:28 +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 33H8NRnn089540 for ; Mon, 17 Apr 2023 08:23:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33H8NRZ5089539 for threads@FreeBSD.org; Mon, 17 Apr 2023 08:23:27 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 270785] Performance and power efficiency regression due to pthread_cond_timedwait() changes Date: Mon, 17 Apr 2023 08:23:28 +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: 13.2-RELEASE X-Bugzilla-Keywords: performance, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: iron.udjin@gmail.com 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=3D270785 iron.udjin@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iron.udjin@gmail.com --- Comment #15 from iron.udjin@gmail.com --- Can we expect this patch in -STABLE? Thank you. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Apr 17 18:40:11 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 4Q0bT80kM5z452YK for ; Mon, 17 Apr 2023 18:40:12 +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 4Q0bT7636Pz3h21 for ; Mon, 17 Apr 2023 18:40:11 +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=1681756811; 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=/zi62AdPSFEo9jSyTrsMqJepIBSABC1tvT3w9dO5iRQ=; b=UwOpOzAWUjyFzz1IVoaur/OQNkmCjr0mhwCg+P8R7fsQSSVYcgx81bF2/Hflj5+gclLh8j +Z0GjnARM129DHMBbeHw2fcYx52W8nKwlInkzLga+8i4PkSXdp+Uao5la8wnbflmLCS9A+ nr/2IK3djNXuYIK0h1kCko0XzQuWAmyL4OuOCWv3wvB7hoAQ8WTdYYGcelmEucrqJMXuCk w0a9qqlADGuPY2JYhr55r3wF6m4DIZPb27dsP3PxK3A/XcYnc5hLc9nl4vCklCE2UBiBip 0bPK0d0xmrLixwDfd5wvAwZtH2j7hjvhH62ZkgA/hGvb9NJ8pSoaSCBScoX2BQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681756811; a=rsa-sha256; cv=none; b=RDutMC26Zm9gk55cb6ZkwLwa7nGkux0vmyPIXAJcurzsdV+EqbwSBX2OMphacESCS1XlCC JY11t2jLVv6jIXMPc/QJh7dWdJjBmflYnPaZhy8BHcB37G4DX6zVwnJK8WIrm9VO8Xqwit +UVbpKaBph6R/zelnQMHDjcBWl0DTY/GTKHxtSeZpnkAvrksr241JPZce1J/HxGIi1NFhF 255OjaeRqZExTmAFvZIyRiY5zpBOoohddjGKvBvKqQ2fxJvWF0HBOHP/h+k8hnAABzNSj2 yvYE0hvgHktEmCZJFvyhaDxXOGRY5g9Dutp94G1+FxSurRsLXdnGtNpE45TkrQ== 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 4Q0bT757BDzgJQ for ; Mon, 17 Apr 2023 18:40:11 +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 33HIeBo8004696 for ; Mon, 17 Apr 2023 18:40:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33HIeBgw004694 for threads@FreeBSD.org; Mon, 17 Apr 2023 18:40:11 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 270785] Performance and power efficiency regression due to pthread_cond_timedwait() changes Date: Mon, 17 Apr 2023 18:40:11 +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: 13.2-RELEASE X-Bugzilla-Keywords: performance, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kib@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: 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=3D270785 --- Comment #16 from Konstantin Belousov --- Can people retest with the updated patch from https://reviews.freebsd.org/D39584 ? Now the env var LIBPTHREAD_UMTX_MIN_TIMEOUT should be set per-process, instead of the global sysctl knob. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Apr 18 23:23:29 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 4Q1KjZ0GqMz45r31 for ; Tue, 18 Apr 2023 23:23:30 +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 4Q1KjY61P7z4X3y for ; Tue, 18 Apr 2023 23:23:29 +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=1681860209; 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=TZjzz+1OH5WSdzSHrdBGrJyMpTsavSetSJrK2hBCwgg=; b=SK8KQWXhFIwbOZhObZAKHXdBEC2w9iU4+c85A4An7GpoiPQzDzmws9bGxWVmrWvSBpzeY7 YtPu+F1ni4Dvp1XaWjyNlxErvHl5eGZzfntvhTRxfVy1Ex6VDMk4LnbTvQTyt8Ej12V0Cw 76jKSzeiPgrC/OwM8jaMccyDon/Avr9aXdrOvIT9BGZoBvbYZPxu3e29+N4b+3yXbkEn3B YZ76087DTqN2lL4TerIkPkjlNOwbqO8ZacbrKiAwcOHV74EiDTJQE/SEKzRA6W37HL8a/S agfc3Ry1TJQNR0bhAKEOP+M3+PDvhcA/1rSqdDeSdKTm/t2uIDPccMy8lHSOBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681860209; a=rsa-sha256; cv=none; b=a1il55Chimdpsl1q3UIVXeAxNatAblBvad6ipxIhdNelJ/HnamY6lpwtvFh9Zz9wrJdxaC 7zb2dMD4u4vyXNUJqKjyZnT8bKTvbxeuYZxpWXeu3HLnQjx53ZfgtFb+TVvUPPKTE7cJtc pL1ZHnWgW50ic7RutDbFxbUwmEFJG6ohNXyenDA/ShiJevnTgC+hEhYceJBqT7xC+pPHCc yHOEYwiGLH+BaoPqIap8SVdgf13MiRujv+7wLyqxDL4qUFtWIybfdohd4bXBzEhfPlnC6f 8LAeUxOZmSNP2mtRP/nAzbOTrcBUxvgn0GYcpWLdV8XTFVebLzrcWsG6Yh460g== 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 4Q1KjY4pnHzX8G for ; Tue, 18 Apr 2023 23:23:29 +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 33INNTJN086047 for ; Tue, 18 Apr 2023 23:23:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33INNTWD086046 for threads@FreeBSD.org; Tue, 18 Apr 2023 23:23:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 270785] Performance and power efficiency regression due to pthread_cond_timedwait() changes Date: Tue, 18 Apr 2023 23:23:29 +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: 13.2-RELEASE X-Bugzilla-Keywords: performance, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@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: 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=3D270785 --- Comment #17 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D93ca6ff2958cace3b7b883ed797ea6539= 881a6a2 commit 93ca6ff2958cace3b7b883ed797ea6539881a6a2 Author: Konstantin Belousov AuthorDate: 2023-04-15 17:46:12 +0000 Commit: Konstantin Belousov CommitDate: 2023-04-18 23:22:28 +0000 umtx: allow to configure minimal timeout (in nanoseconds) PR: 270785 Reviewed by: markj, mav Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39584 lib/libc/sys/_umtx_op.2 | 11 +++++++++++ lib/libthr/libthr.3 | 6 ++++++ lib/libthr/thread/thr_init.c | 11 +++++++++++ sys/kern/kern_thread.c | 4 ++-- sys/kern/kern_umtx.c | 45 ++++++++++++++++++++++++++++++++++++++++= ++++ sys/sys/proc.h | 1 + sys/sys/umtx.h | 2 ++ 7 files changed, 78 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Apr 20 14:40:57 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 4Q2L1m0l0nz468wv for ; Thu, 20 Apr 2023 14:41:00 +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 4Q2L1l3Yryz3K1x for ; Thu, 20 Apr 2023 14:40:59 +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=1682001659; 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=vPoT22+GVioVCuq50R+w9DTpV8+4qm3GZT4LQJsIzHg=; b=GwPaHj8+F6douus7Yy51/GxqUT5RJZb/rFsBexgU1jjkAauCUGAGq72UGaOrXtLPuED/ob P8qQQ/cEvlmodZWaJdGCQlJYRM+pDMLK9K2Rt32F3uvVA4M/uVJGpYct3ArZncF/5V1RT9 j0BgDDJ9yRTAqvY7qNrooFVtf+7WF3LYaaNGQ/JPgL3kA1uH95/lztiDTvguiew6PMIGMY 07jR0AAX4/ThNPr0MlJj5yM0+taYSSAFXLV7G+Udm0H9WyXRoyQkjhT67nvTASKlEbu582 +3OdtfbdHm6yTf2uv8kCDhJOXTp/97++SDGB8rUz0PzPkjvvTM0icHW5EMciyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682001659; a=rsa-sha256; cv=none; b=hxv2bD6E++DUirOy3rfSZs2tClY9tm4oyvMZem4Je/LRQWMvs18waec0FoHjWAp9DW0KaZ 4CvDv3oM47gPgh5TLLD750Il3x2ghYaIXL840Vea1HWGUlaqkAS6ZozSl9r38/bjWF2SYg TqM14YSVG3Lp93en2SVXtvsuu/JazBJbYylJYVIhRAn4e4ZXyKE4bvKuptDRxfE+9c6YcT +6iue8HIt5O9fMzX4oO/oHF+dKBqYW7M3U7PB/huM/WmmyMiMGCZ7O2M9YOLeYj2gUFIRK 8pdT9/4HY1K5Ah700G5fPJxSfRl5KDMoE/xQP3MUCivhG68vBb9KMVf9SPIHCg== 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 4Q2L1l1yrtzhKy for ; Thu, 20 Apr 2023 14:40:59 +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 33KEexZA008323 for ; Thu, 20 Apr 2023 14:40:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33KEexpL008312 for threads@FreeBSD.org; Thu, 20 Apr 2023 14:40:59 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 270785] Performance and power efficiency regression due to pthread_cond_timedwait() changes Date: Thu, 20 Apr 2023 14:40:57 +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: 13.2-RELEASE X-Bugzilla-Keywords: performance, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bllcha013@myuct.ac.za X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@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: 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=3D270785 --- Comment #18 from bllcha013@myuct.ac.za --- (In reply to Konstantin Belousov from comment #16) I tested it and it appears to work perfectly. No complaints here. Having it per-process is much appreciated. May I ask if it will be included in an update for 13.2-RELEASE? Or will it = wait until 14.0? --=20 You are receiving this mail because: You are the assignee for the bug.=