X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7329385841E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1673858754;
	bh=McSlCU9iqhQMkU346cnj+/lT6PqLbUbpthSpyPMxpvg=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=ig0BBYRhUXT5zIoPTt+ZTKUZWQosqNVg0zGkfS8pETzDPLtkz07ABwqPrG0Fd1YmZ
	 OI9DM0xvAZumjJPfjDRto7JqkrAuVSwsL+enCpmN+rvs/M+yzst/2ffaAKAGhopikE
	 eSs64/ySSHYYASR6RTRxirXNE9fYKut0BOimaRXI=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 482BA3858D32
X-Authority-Analysis: v=2.4 cv=J8G5USrS c=1 sm=1 tr=0 ts=63c50e9c
 a=oHm12aVswOWz6TMtn9zYKg==:117 a=oHm12aVswOWz6TMtn9zYKg==:17
 a=IkcTkHD0fZMA:10 a=FEWp7enXAAAA:8 a=w_pzkKWiAAAA:8 a=3AUmuN3I1XMepKlhdJUA:9
 a=QEXdDO2ut3YA:10 a=buB1NfXUTBUA:10 a=IjYSrUNMXUflr7qE6tl5:22
 a=sRI3_1zDfAgwuvI8zelB:22
Message-ID: <5f73c40a-81f1-4e59-bb87-24b56e371eae@Shaw.ca>
Date: Mon, 16 Jan 2023 01:45:15 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.6.1
Subject: Re: vmstat yields error 'Unable to create system stat structure' on
 W11x64
Content-Language: en-CA
To: cygwin@cygwin.com
References: <38D69F25-39D2-4A62-B2BD-94055EB2994B@prs.de>
 <CA+kUOamXesqvpkbx4hC1YFb8L35+=sNsomc-rorKREUDBp=q+w@mail.gmail.com>
 <1CCB6238-719D-4C4A-82C5-72A1E1B26A63@prs.de>
Organization: Inglis
In-Reply-To: <1CCB6238-719D-4C4A-82C5-72A1E1B26A63@prs.de>
X-CMAE-Envelope: MS4xfPdAvk3MnXDFn1+aPvutvV9M8EMurrRYqb/L8nJo8oATXO/39OX4CkO7bUqCcHs2wgqLL1NyMYv4UxClLJs+JDrJCIBgGBJktGrrnDm6nQk6GyAsZXYJ
 3ENRKBydAzrDQAh6F7NKMKhENVjLmD70+oyoYMIYqWbTAdTOrbbo5CYBDI++eod8zJTNWziffrsQAblr7vH3t2VPeFauWx4iIzM=
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, NICE_REPLY_A,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Brian Inglis <Brian.Inglis@Shaw.ca>, System Administrator <sysadm@prs.de>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 30G8kKEa009652

On 2023-01-15 16:35, System Administrator via Cygwin wrote:
 > On 15. Jan 2023, at 23:19, Adam Dinwoodie <adam@dinwoodie.org> wrote:>> On 
Sun, 15 Jan 2023 at 22:05, System Administrator via Cygwin wrote:

>>> I am trying to migrate my framework to Windows 11 running Cygwin.
 >>> When executing vmstat it returns the following error:
>>> "Unable to create system stat structure”
>>> Using the very same packages (install files) on Windows 10, produces the proper vmstat results (i.e. no error).
>>> I’ve tried W11 pro and Enterprise - same difference (none.) Windows 11 is running in a VMware VM. W11 is the December version wit the latest updates (as of today).
>>> The working W10 is running on the same physical hardware, using the same version of VMware, also in a VM.
>>> Cygwin is the latest version 3.4.3, with the latest props-ng package (4.0.2-1)
>>> Any help (or at least hint) is greatly appreciated.

>> Can you provide the cygcheck output, per https://cygwin.com/problems.html?
>> It might be useful to have the cygcheck output from both the Win10 and
>> Win11 VMs to compare, but the Win11 VM where things aren't working is going
>> to be the most useful one there.
>> It might also be useful to know how you're calling vmstat: are you doing it
>> from a Cygwin Bash shell within MinTTY, or from a PowerShell prompt using
>> Windows' console, or something else? And are you running with Administrator
>> privileges?
> please find attached the cygcheck output - apologies for the oversight.
> It does NOT make a difference whether the bash, run from MinTTY (desktop shortcut), is run “As Administrator” or as regular user, the error occurs in both scenarios.
> Running it from PowerShell (both Admin and reg. user) yields the same error.
>  P.S. W10 is an older version of Cygwin, but using that one on W11 produces the same erroneous results…

It might also be useful to run vmstat under strace e.g.

	$ strace -o vmstat.strace vmstat ...

and attach vmstat.strace as a text attachment to your reply.

-- 
Take care. Thanks, Brian Inglis			Calgary, Alberta, Canada

La perfection est atteinte			Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter	not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer	but when there is no more to cut
			-- Antoine de Saint-Exupéry

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

