From nobody Wed Apr 12 13:08:57 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 4PxNMG1Mbsz44kqc for ; Wed, 12 Apr 2023 13:08:58 +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 4PxNMF2j8qz46J8 for ; Wed, 12 Apr 2023 13:08:57 +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=1681304937; 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=JwUeJQw1sIynMECULa9s7jmGvP1cR0IuB7oQ5Qd1iKg=; b=M2ebyinq9shu18+PAMOsxj3uCA1LZodcpkBdmryvDbB24+3OtiBGNb9KJwbsJxYIv32FPq dGtfPXQInnlp6NvWCgu53kjWQ/BLx/yoYfjoiGDFAznX5x8BdCQNaYCFV09sVAWoHP2FvO y82yzGLu9JTISoy8fEK8HBuaf4kjonQG1tc8P2qrKG2xy3ybjeHDohWCsnXo8fHw3rjLLH JubiU+U22NvUznyb++OvNMQee8HFmeW/2LY0OpYJiHOjy9e39/vVwJ/wm/Zkfvo1sI4OxD XEYdb2KCMVR+qeIwva+JcYnAhQiRWYOWjZwGryq92et/STmvq97j8INgNWKeOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681304937; a=rsa-sha256; cv=none; b=Fxq75miepm7zdb9z6J+wDTjdLLcaSUtfoW1TG88vvRCY6wEB3nGS0vxlruLfk7BIB/+DXo focQcquIbXhjZT+Rp7gHvEhP84mqZV3jTt6NpIwbwNdsVYFqjk9xKiq3zb6ooNEniwDV/m pFVQaGR9bfvshLHIYzRwmPUjj/6dXs87JVHoapVDmHlRHxnweK/K4W4NnISDyBtHeQTtT5 PDhik2t5yc7muOH7sUGiLbaHhjiIbqUIiC6HvbaszTcyFE1lPEBTdQ3I32VblV56QyUe4N 0RJ6EwKClFOQyDXOC66gc0cwy9FISChtfK4uQmOBENHX+amPt7ZUYxm++Yjw2A== 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 4PxNMF1Ml8z11Jq for ; Wed, 12 Apr 2023 13:08:57 +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 33CD8uOa083067 for ; Wed, 12 Apr 2023 13:08:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33CD8uE1083066 for bugs@FreeBSD.org; Wed, 12 Apr 2023 13:08:56 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 270785] Performance and power efficiency regression due to pthread_cond_timedwait() changes Date: Wed, 12 Apr 2023 13:08:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bllcha013@myuct.ac.za X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270785 Bug ID: 270785 Summary: Performance and power efficiency regression due to pthread_cond_timedwait() changes Product: Base System Version: 13.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: bllcha013@myuct.ac.za After updating from 13.1-RELEASE-p7 to 13.2-RELEASE-p0, I experienced a performance and power efficiency regression especially when running Java programs, in particular the Minecraft server. After some testing, this appears to be caused by commit e21c77f80c3b1cf2bd0a9f874e15e7a8e49f0dba [Improve timeout precision of pthread_cond_timedwait().]. When building the kernel just before this commi= t, this regression does not occur, while building with this commit (n253051-e21c77f80c3b), the regression occurs. The regression is still pres= ent in the 6 April 2023 snapshot kernel of 14.0-CURRENT. I have observed this behavior on two systems, a server with an Intel Xeon X= 3460 (Lynnfield, Nehalem) CPU, as well as a desktop PC with an Intel Core i7-670= 0K (Skylake) CPU. When running a kernel with this commit, the WCPU usage of the java process = in top is considerably higher at idle than without the commit when running a Minecraft server (1 to 2% before, 10% to 30% after). In addition, the CPU spends a lot more time in less power efficient C-states (C1) where before t= his commit, the CPU spends much more time in power efficient C-states such as C= 3. On my server, the CPU used to spend 98% time in C3 while after the commit it spends only 30% time in C3, leading to higher power consumption, more heat,= and faster fan speeds. --=20 You are receiving this mail because: You are the assignee for the bug.=