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.=