From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m0.truegem.net (m0.truegem.net [69.55.228.47]) by sourceware.org (Postfix) with ESMTPS id 545EF3857038 for ; Wed, 11 May 2022 23:40:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 545EF3857038 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=maxrnd.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=maxrnd.com Received: (from daemon@localhost) by m0.truegem.net (8.12.11/8.12.11) id 24BNehDw079391 for ; Wed, 11 May 2022 16:40:43 -0700 (PDT) (envelope-from mark@maxrnd.com) Received: from 162-235-43-67.lightspeed.irvnca.sbcglobal.net(162.235.43.67), claiming to be "[192.168.1.100]" via SMTP by m0.truegem.net, id smtpdMeLYkV; Wed May 11 16:40:43 2022 Subject: Re: load average calculation failing -- fixed by Windows update 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> From: Mark Geisert Message-ID: <2c7d326d-3de0-9787-897f-54c62bf3bbcc@maxrnd.com> Date: Wed, 11 May 2022 16:40:42 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 In-Reply-To: <670cea06-e202-3c90-e567-b78d737f5156@dronecode.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Wed, 11 May 2022 23:40:48 -0000 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. Cheers, ..mark