From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by sourceware.org (Postfix) with ESMTPS id 82650384F01F for ; Thu, 12 May 2022 08:43:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 82650384F01F 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 (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mate1-1oMkXp25pj-00cNAs for ; Thu, 12 May 2022 10:43:30 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 4FE46A8076B; Thu, 12 May 2022 10:43:29 +0200 (CEST) Date: Thu, 12 May 2022 10:43:29 +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> <77d75d10-cdcb-c041-5abe-f022fc6ec46b@maxrnd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <77d75d10-cdcb-c041-5abe-f022fc6ec46b@maxrnd.com> X-Provags-ID: V03:K1:K6BSQ3thpOZXgVMREKfS9Qyez9aEOX2C528w1sjqEl7JhZF3tVu KwnKOTW4HTn2R17k20rG5fJe4FkcZMp/3fele2aoP8PtCEx9N0LcUqMNFGuLA83k5Lxj4HO Y6MiDWnYq/WELEJynolj+cgmwFwVMIVvnHAenH7pEMlLzzOx2mm9SmG6PlVI48+N3+MFSRn zorRbT4MajNg60AJqcfRg== X-UI-Out-Filterresults: notjunk:1;V03:K0:GWWBHCtmcoM=:XBM10Kxtyna9M4tj9ORbmO 3+zP6MuYRCd1QzTLEn8cd+yvBGD7enAa/YHEd9I78wxSNral1wUHTD6nZkm7zkJw5/P2WZUX2 aUyzTkU919+hKaY9etLesUYbM5h8zmGQH1IAKD8bF4hxTt3Ec3L4/dvWqwC6e++BiDsMA15Xh bJRlO8ALTNlF3z/+/SylmXq1MAmFquBuih+ydC1SS08ns6o4E/IHJgU9yQ+teWQmnx58wuYhj EhTOB/RsGlyoKwi0ff4FId/tFLa7+iZ/G1cBS3cCGGvXEE2Fr/zYKIMtj8zpvfwElOTIQMn11 oQUXtzLYvf1uAhumZXIwk9zo/ZHMPKhyvDGe5cmZYyAESxPgBGVgxhcdukf+/gwdx6jbXIAMz 0CfFK34V3y8ueLWtydo8SiSA6e2eLtLRgqVRpi10XyRa7C0ROAZFVKtyI/IZVaQdfF82uMxPc Rs1DLqLaK/sdoyni0SadgFHU6MFFNBLAo0wrPQivxraIIQk56wBRa7W0Jdor4rbcUyIsIyY9J /luApl1J17yFaURPNmEuJ5N7Sbg4L6cTbyF59mQvBVl0W2dK7TCoQ8NywLpBMsvpm8EcvlICu IzsIBfO6KYMTfWctBnkEyd7ZHz6p9pBu+6Hsk0ZQsE0M0wjMbXDaUA2npwePvIG5MpXl39gYw RtTxkpGOUy2m/e3S2b73ohwfO2rhD0K6V2LJ/ibSaR0kXiN8JD+Lk0qCHzgDmrM4WGE2UFai1 K56+yLVCOdTdd+JM X-Spam-Status: No, score=-95.2 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H2, 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:43:35 -0000 On May 12 01:24, Mark Geisert wrote: > Corinna Vinschen wrote: > > 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. > > What Windows build(s) are you running? The 'ver' command inside a Command > Prompt window is the easiest way to determine. > > Also, both my machines were running build 1645 but it was a Windows Home > machine that had the issue; the Windows Pro machine was fine. So many > variables.... Both domain member machine, Windows 10 version 10.0.19043.1706 and Windows 11 version 10.0.22000.675. Both Enterprise editions. Corinna