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 0D2B5385737E for ; Thu, 12 May 2022 08:24:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0D2B5385737E 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 24C8OO3l026299 for ; Thu, 12 May 2022 01:24:24 -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 smtpdmVOV5h; Thu May 12 01:24:18 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> <2c7d326d-3de0-9787-897f-54c62bf3bbcc@maxrnd.com> From: Mark Geisert Message-ID: <77d75d10-cdcb-c041-5abe-f022fc6ec46b@maxrnd.com> Date: Thu, 12 May 2022 01:24:18 -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: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.0 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=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:24:35 -0000 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.... ..mark