From nobody Wed Apr 12 20:13:51 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 4PxYnX6bnwz44gS1 for ; Wed, 12 Apr 2023 20:13: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 4PxYnX34BQz3hbS for ; Wed, 12 Apr 2023 20:13: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=1681330432; 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=ahFpIYNqQ6DrQMHxN41UCJyWVVSfZuVwF/o1z0AiD8s=; b=CH6SilXrf5j8pDECWQz92mtqAgtdV1fB1GMaBeDzXFc224JwC0wo0692m0b5UFzkHxSch/ wmBf7shLi8YOndeAnUm5gJjHldPSkzGE5s1gX0IRsk59gtzuMGmw2rr8LOD/M1pOPInQK5 qq/2ijhvGqLEaI4drLkytff7b8zz2EwPGZE7U7HT+HbVpzdKPaEDL0MoAMZLJJnthj+1rg 0oWlL0f90w2Tstf4Lq0jmo420cxRNctZ/qkFBrRfoyGtO2LbrTQcOGujPyJEdogXiP9qJa Bqy2ugfcebHIwg+bfgiIxokiVUEGHctdoJGNnCT5JyqxS8ZK96yy65JuwABk/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681330432; a=rsa-sha256; cv=none; b=ENKIHFjZqt/OAuryPVT8VygazWNg9GlL7TJGP58AzAGZGYYR4bahyqiQyXsMiwb1PwJVoL FWb9DybA9O1rl38xaFqQX9xGQY1vxUc74dmKfqyzKWW2XFQRQVvQKynIZ7sedYNR8WzVZZ gl0PMs9IStKwF6fPx1iV46hqpkqbQFDv63dW6jXAK7o/0eES3h1J3u8PpUb5PE/rFiGOjI XNYPN8DHferyCbr82V7djJf1B57U0dICOZWUFeSu1xUmqQlHeXaBcFdvzUryyJcI23ac4z yquPnpoWiaQCPpOU1Hp1xGgvvzkEqZabuvS3HB80fPVGeH1QmkO+twHOzIXIyA== 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 4PxYnW6G8mz1Cvd for ; Wed, 12 Apr 2023 20:13:51 +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 33CKDpf3077740 for ; Wed, 12 Apr 2023 20:13:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33CKDpvg077739 for bugs@FreeBSD.org; Wed, 12 Apr 2023 20:13:51 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 20:13: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: 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 #2 from bllcha013@myuct.ac.za --- (In reply to Alexander Motin from comment #1) I ran truss for about 5 seconds against two java processes, one running Uni= Fi Controller and another running Minecraft server. UniFi 13.1-RELEASE: syscall seconds calls errors thr_set_name 0.001021075 2 0 kevent 13.369956893 13 0 fstatat 0.001887292 5 5 getrusage 0.003297147 14 0 _umtx_op 51.382037072 210 111 ------------- ------- ------- 64.758199479 244 116 UniFi 13.2-RELEASE: syscall seconds calls errors __sysctlbyname 0.000062617 3 0 write 0.000054957 1 0 fstatat 0.000652984 6 6 getrusage 0.001700589 21 0 thr_set_name 0.000423376 4 0 kevent 24.622512777 24 0 _umtx_op 55.068817041 262 194 ------------- ------- ------- 79.694224341 321 200 Minecraft 13.1-RELEASE: syscall seconds calls errors getrusage 0.012089758 74 0 sched_yield 0.088819070 726 0 _umtx_op 22.515308049 838 838 ------------- ------- ------- 22.616216877 1638 838 Minecraft 13.2-RELEASE: syscall seconds calls errors getrusage 0.002642594 106 0 sched_yield 0.750417219 37623 0 _umtx_op 28.945530935 37797 37797 ------------- ------- ------- 29.698590748 75526 37797 A few lines from Minecraft on 13.1-RELEASE: _umtx_op(0x801066458,UMTX_OP_WAIT_UINT_PRIVATE,0x0,0x18,0x7fffdd2ac688) ERR= #60 'Operation timed out' sched_yield() =3D 0 (0x0) _umtx_op(0x8010661d0,UMTX_OP_WAIT_UINT_PRIVATE,0x0,0x18,0x7fffdecebd68) ERR= #60 'Operation timed out' _umtx_op(0x801066458,UMTX_OP_WAIT_UINT_PRIVATE,0x0,0x18,0x7fffdd2ac688) ERR= #60 'Operation timed out' sched_yield() =3D 0 (0x0) _umtx_op(0x801066458,UMTX_OP_WAIT_UINT_PRIVATE,0x0,0x18,0x7fffdd2ac688) ERR= #60 'Operation timed out' sched_yield() =3D 0 (0x0) A few lines from Minecraft on 13.2-RELEASE: _umtx_op(0x18defb81b470,UMTX_OP_WAIT_UINT_PRIVATE,0x0,0x18,0x18e0d4980728) ERR#60 'Operation timed out' sched_yield() =3D 0 (0x0) _umtx_op(0x18defb81b470,UMTX_OP_WAIT_UINT_PRIVATE,0x0,0x18,0x18e0d4980728) ERR#60 'Operation timed out' sched_yield() =3D 0 (0x0) _umtx_op(0x18defb81b470,UMTX_OP_WAIT_UINT_PRIVATE,0x0,0x18,0x18e0d4980728) ERR#60 'Operation timed out' sched_yield() =3D 0 (0x0) _umtx_op(0x18defb81b470,UMTX_OP_WAIT_UINT_PRIVATE,0x0,0x18,0x18e0d4980728) ERR#60 'Operation timed out' sched_yield() =3D 0 (0x0) This is my first time using truss, or doing any sort of "debugging" so I'm = not very familiar, if I didn't do something right please tell me and I'll try d= o it again properly. I hope this helps with understanding. --=20 You are receiving this mail because: You are the assignee for the bug.=