vmstat yields error 'Unable to create system stat structure' on W11x64
System Administrator
sysadm@prs.de
Mon Jan 16 09:34:13 GMT 2023
Here you go…
Thanks very much!
On 16. Jan 2023, at 09:45, Brian Inglis <Brian.Inglis@Shaw.ca> wrote:
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
PRS System Administration mailto:sysadm@prs.de
Patzschke + Rasp Software GmbH http://www.prs.de
Bierstadter Straße 7 Fax: +49-(0)611-1731-0
D-65189 Wiesbaden Phone: +49-(0)611-1731-0
Patzschke + Rasp Software GmbH, Bierstadter Str. 7, D-65189 Wiesbaden
Eintragung im Handelsregister: Amtsgericht Wiesbaden, HRB Nr. 22673
Geschäftsführer: Wolfgang Kechel, Till Immanuel Patzschke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vmstat.strace
Type: application/octet-stream
Size: 55885 bytes
Desc: vmstat.strace
URL: <https://cygwin.com/pipermail/cygwin/attachments/20230116/4b34a024/attachment-0001.obj>
More information about the Cygwin
mailing list