From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by sourceware.org (Postfix) with ESMTPS id EF7CD38485BA for ; Thu, 12 May 2022 09:48:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EF7CD38485BA 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 1MBDrM-1ndZeB0lIM-00CgsP for ; Thu, 12 May 2022 11:48:01 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 2CBBAA80965; Thu, 12 May 2022 11:48:00 +0200 (CEST) Date: Thu, 12 May 2022 11:48:00 +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:OrLduPk8LZ9ekysqu81UdZkyruj7mVq/dzbhvroaiFi0cqC/bp4 vz79n9fV49ZbgTXWt2dyMkuzkQti1hHzQpHaS1tKaqNrG4F5zzktbUyc4yEP+7gVDL8ONib lUOYb/8dDPpYHq5DyTa0ZvzqgfDJxUAamvvoTsOm2M6kJ08EyxZsc53Tivaax8NMCBJmSmK 8xDxCEiRzJOrEBQ3G9vRQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:RbDTCRN1avw=:Tm1aKOcdq4K2WNHCUfFhZH SA0LaoO0Llo91YMxnbbEiQuEb28QNYDinidhMOsDa/ZF/uo3LwAoaXk2gNkLcfA3UcPptqYtF 5DJmf51Dt8AlzSdnXE+QcT8GFOOUESeZACUIJMSnLe4A88VC1StqvsicGM+C7n890vRjNayNY 9icVtbTtSZkn1cNQOWFt8Hv1LTmQoYKniiOfwPqXYYXkE+qkIBUscIL0LjtdQvxBGu0Z3A8Wj OTN/ce6EH3GzsACDvE0xIz/AiIGz6Fezns9Z5Dz+MB940ZPF48p6DS5HAS+TQBUNjwU77uish 1JGfCoV+SUxTVxq7UEhmxMnHnVCTZ0O5yF2e68WfhKPREbs/Y5pNV/Vbt6FvWOW4tLcbIK19B WAcaSm4HVxr8Wp4ba1X/MYyjHMjE/JcfeY1rpk4gu84JKDIZWUnReUecJLjyXVm8z9b/cMXio a1Wj+zXtPG1oNuM6p8IEeG24n3BTTEAIVfXKGwTseZoYOFPt2+8uwKiaFr5B9v0IYOu87aTWX IE4mZUum9GPuZ5AefJPxT4T/mjaoK+7rH1puQqcvW5iBcZ1X5U2EUm0g9F9ADqwutxUr2RZYs iQ6cwO4FXNIJYhesGokiEBcvtkUsD9Z1jpwQdj8rXh/xbVuLxeBAsVpCyHm9VNruGJ+CHPs6J 6FqVYRG3VEzJgB1bkUeLcz/Ky9bSgCMs6HjgsUM1lJmKaR29anfxmdkLO+wvU4aHrWVTq4cIb aXDm90/Dc+lHdImZ 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_DNSWL_NONE, 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 09:48:04 -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. Erm... looks like I didn't read your mail throughly enough. This behaviour, the first call returning with PDH_INVALID_DATA and only subsequent calls returning valid(?) values, is what breaks the getloadavg function and, consequentially, /proc/loadavg. So maybe xload now works, but Cygwin is still broken. Corinna