From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by sourceware.org (Postfix) with ESMTPS id 8DCCF3857372 for ; Thu, 12 May 2022 08:17:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8DCCF3857372 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MN5W9-1nWZp02VWP-00IzmD for ; Thu, 12 May 2022 10:17:23 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 1FB99A80965; Thu, 12 May 2022 10:17:23 +0200 (CEST) Date: Thu, 12 May 2022 10:17:23 +0200 From: Corinna Vinschen To: cygwin-developers@cygwin.com Subject: Re: load average calculation failing -- fixed by Windows update Message-ID: Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com References: <3a3edd10-2617-0919-4eb0-7ca965b48963@maxrnd.com> <223aa826-7bf9-281a-aed8-e16349de5b96@dronecode.org.uk> <53664601-5858-ffd5-f854-a5c10fc25613@maxrnd.com> <670cea06-e202-3c90-e567-b78d737f5156@dronecode.org.uk> <2c7d326d-3de0-9787-897f-54c62bf3bbcc@maxrnd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2c7d326d-3de0-9787-897f-54c62bf3bbcc@maxrnd.com> X-Provags-ID: V03:K1:NMEJLWNsPApigW5I7izoI2CHvBte8BZnX/avMw1XuOZTH/vE8Wp 4KlpKwfY6WhW31a3qiE7e4kuPwhXPlEn++hfZO9fauOSU+3AV7zQFaYe2ttFwnWT4uuzcTM 16wkKRkNpZaurPfQYlDjsTeDaCg+bzQyk1lTHXerCLheumeDPpFnu8ZrCpPI9VheygAWGz2 1WqHtJQA+Ns+MXJYgDm0g== X-UI-Out-Filterresults: notjunk:1;V03:K0:zzQMP3//u+g=:nxM8rQNUg0e7qDk80ILvJY uKII3WuagLhl8igz5t6R9fc/0tnU++6JCEEHKJtOLY/CWe1avUU+YS1ErpxjladQIOZDktTx1 +i2kmrlqwvjI2uVh//uG53hs25rpg8RTqZfRNKnHVfxtS5RQalu2U2VM82eURG30tZ6wjHtvj r7uZ6y0h8e0Ix1wQTHJeuleHLKl5aWuDIHJvpBhENbjRPXmiml0sB2DoxdFi8xZigmB4DQF1G CJkcvzFSq6GyB9pZ+oiQqtHjzLzKuyCDM2u0N2Cgx+lWS8IoH5NUWbo9nW+Lu8rYBFtpm1MvG GFgPV5EamfpAoM4lTTFWC8oGmEaUZNeWveZFcBPouweqxerlhMzlS5lcu0qkVlN/GDl9TnvQI CuehoFyw/7DN5xv887VCMu67bPoHSTQ1wK7iE4mpaDfDbTf83nthwU3MxMT38ecd4VrCsTlN8 J8JfaeO9cJU8kPCdoJ3C0niU7DeX0pq9k7T6m/VZiQeGp6S704WXafXr2vsd4ZoUk1xIz/HNd 3414YUz4kNR8Dg0z2tpRCPd6YeXttaKETF+ZJxIt+o2lyjG+weoZ9KpGxVfsAzCDvHg2WjP0j fu1sYkIMeQWK8M1++C7MEM4Vh9PCigNEyLaPbQy/bgTnmFxQLzGUHrYI94cXGgceZyATMST1Q Shv62bk7ENEovjGM+7FJDK9QYebc757osxLjwtO6zxThEyZQt9Pjq6Ta9E5kJpOJqs0/1nP68 gjk99DJuIW9iQFb96TGYHwyDso5FFy2Hc8E79mj0HZuJrldiRAwDoaFFFXY= X-Spam-Status: No, score=-95.1 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_FAIL, SPF_HELO_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2022 08:17:27 -0000 On May 11 16:40, Mark Geisert wrote: > Jon Turney wrote: > > On 10/05/2022 09:34, Mark Geisert wrote: > > > Corinna Vinschen wrote: > > > > [redirect back to cygwin-developers] > > > > > > > > > > > > 0x800007D0 == PDH_CSTATUS_NO_MACHINE. The code (at line 68 mentioned > > > > > > > > This is a weird error. > > > > > > > >    "The path did not contain a computer name and the function was unable > > > >     to retrieve the local computer name." > > > > > > > > Yeah, sure. > > > > > > > > Mark, did you try to add the computer name to the path by calling > > > > GetComputerName() in load_init? > > > > As we've seen before, this error also seems to be also used for "not > > authorized" problems. > > > > https://sourceware.org/git/?p=newlib-cygwin.git;a=commitdiff;h=de7f13aa9acec022ad1e4b3f929d4dc982ddf60b > > Sheesh. This all seems entirely too complicated. > > But thankfully, after installing latest Windows patches (from yesterday's MS > Patch Tuesday) I find myself on W10 21H2 Build 19044.1706. Xload, uptime, > and Jon's initial PoC code now show good load averages. I had previously > been on Build 19044.1645. > > The first counter read now gets error 0xC0000BC6 == PDH_INVALID_DATA, but no > errors on subsequent counter reads. This sounds like it now matches what > Corinna reported for W11. I wonder if she's running build 1706 already. > > It seems to me MS broke PDH or its interfacing for one build, 1645, and > fixed it for the next, 1706. That's all I can surmise from the data we > have. > > I think my work and/or damage here (on this topic) is done. You're the luck one then. It still doesn't work for me on W10 21H1 and W11. Corinna