On 2023-01-15 16:35, System Administrator via Cygwin wrote:
> On 15. Jan 2023, at 23:19, Adam Dinwoodie <a...@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

Reply via email to