From nobody Wed Apr 12 18:31:56 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 4PxWWy5fMSz44VqJ for ; Wed, 12 Apr 2023 18:31: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 4PxWWy0pV8z470R for ; Wed, 12 Apr 2023 18:31:58 +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=1681324318; 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=lu+BL3CRpl/AQTlbixMnRwr/Wed3sOm2So1/oRRi9FY=; b=WKth+/0ZPvNeTSIoKy8dPjjrxg2c9D1FAsARyUwDUVK45O/7g/MmHImGgl1NIMasutqujV 07C77ehV5xCTpEgVSZ7CiiVMAfnQDLEsjI3UgAUNLC1ikXK+xVMqbH+1SSGlIxQM/MKlZ/ mlY8RABTg+Y//UsbOiLo9hqnUZ86kuRa0Vh9RVmGCZAfwJVsoNI+QKrKLh62oJR/r52v25 JnKvnRInScDTgSZdfX579OGLCYJum/CydmkjSDvMU4iOSjOeYA6CDwcJMqrxonRJU5lktP JjmRb9oHeJWm7+CrQUMPjGYdHYx03oNCl4BUy/2t843ljNCDfBCYNgBj6yRbzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681324318; a=rsa-sha256; cv=none; b=nCiv6tzgD+eCg3DAFE0tu6czCeNNFB04omHpPfwvnh2Nzg/ebNNnefqffeQsIdlUOc5ftT C5XGzEzSLdEfN1TV0bOourIRxuLZ82YVUNfhmBkELYj7oo/URO9plwJo3U4Bpnsdf1pd4J Om3WWYvqBC2KIRmMBf/pbZMQkuBHEB3gxxZTBa+7bfbVPg415RmM0rImoUTaG/R9JT6cCv jZwC+p5DuIS4v10h9aRB1sQaXDBplPVS3Qo4wX1J8PBaC01ZRybaxLc1clnczl6IGXSSN7 Pxv+GD1QjRuuMOtl1a1Chuxt5vKXh5Kb7POrHbGnragjH8+EKxn0AsGZcr6kAA== 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 4PxWWx6zPQz19xn for ; Wed, 12 Apr 2023 18:31: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 33CIVvPQ005088 for ; Wed, 12 Apr 2023 18:31:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33CIVvl6005087 for bugs@FreeBSD.org; Wed, 12 Apr 2023 18:31:57 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 18:31:56 +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: mav@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: 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 --- Comment #1 from Alexander Motin --- Depending on what the applicaiton/java actually does, I can easily believe = that behavior could change after the mentioned commit, but it is not necessary a= n OS bug, it may be an application bug or a lack of optimization. Previous code always waited for at least 2ms in pthread_cond_timedwait(), no matter what timeout is requested, while after the patch it may wake up much sooner, jus= t in few microseconds. It may be that application really requests wake ups that often, but previously it was not properly honored. For better understandin= g it would be good to collect information about the actual system calls and their arguments before and after, either with truss or may be dtrace, etc. --=20 You are receiving this mail because: You are the assignee for the bug.=