delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/01/16/13:48:16

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 854073858426
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1673894845;
bh=0ORNLu/s/EZbitEblTYLsdcLKtBhp2pOMkk+syuyRcI=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=IrAeRH93pnsBTJvlEBgmdMxOUpKQ9oFsCHAYbRtacnEd1zGbM80i0XyUSFxACEfWs
DN2wC9FmlTHU1x4HqWOFlgXWu99J4LRKATMQN8ZUccnV6hqmlDc2rGP7ahjWj+VXac
SKc0qu7DZbDLsueQLf4zwVbJu0xWNKrl6DRGbTLI=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
Date: Mon, 16 Jan 2023 19:47:05 +0100
To: cygwin AT cygwin DOT com
Subject: Re: vmstat yields error 'Unable to create system stat structure' on
W11x64
Message-ID: <Y8WbqXyW1Y+PixcV@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com, Achim Gratz <Stromeko AT nexgo DOT de>,
System Administrator <sysadm AT prs DOT de>
References: <38D69F25-39D2-4A62-B2BD-94055EB2994B AT prs DOT de>
<Y8UksJ4O2q1+SZn5 AT calimero DOT vinschen DOT de>
<Y8VMRejAHv8BgwDB AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <Y8VMRejAHv8BgwDB@calimero.vinschen.de>
X-Provags-ID: V03:K1:q7x+zgyEz+J+npI1QdbjXynaj4/hW9seBqmacDMZpWal3vYjfnd
088YgyEcriemhy/AHRL4iSxIP9ZUjn6SovELAAg0C9/jw2Xa0AbtJ5PIZdEFuS3ptFSuDgP
Fc8pDwR7aZhFOMVEvPYTUpy/l3b4x/JQCSaTzCRgfgt/6lqF1I+H+TSHaEHD7boYgLgbrJD
dwh8K23p60e+0SYD2z8lw==
UI-OutboundReport: notjunk:1;M01:P0:TtSil3is2Es=;7JqGvphzZa09HEJZUoFfvjzhCG2
0VkZ39oNM236aWPeYDo8qChMyqB77mVWaI/MIMUCftVt1NzYW+4Z16CL3V0CDrlbhlQdxuNSz
ezicDWHtrPPwQbQDcNqFOSWhIZFPSAm1pXYMdysj8oPtBKlwpxQ6Zp31mV5NkCRHrcraePoSi
qq0aVPlQbB/NXh1U91XB/ZnxvIjQ99XAGj2NsGIv3Gcy3uo5U/7e/fTOtpQodYPE/O+qjLYmv
6jGe+mD9P71jXjLa95o7SNobILkXdvGrTvSPAISHfLh8/1zk3qQMCkC3gj9n2uBOpE0IgQ/bZ
xLqtStvYtm4Zq9b1Qj/K/x8LTtrg91H/g2+i3Su6a2RqtTJqb/cBBevwHI92DNxnGNrXJZicr
dDCZTMQyhJZMXj8U4cO1zoDxYW+i1LhRoAzYb+K1OJAwTqfNDTxTm2Pd22eHl438JBYOuJokA
rsQ+3U4bRVi/J8+sbzfmLCVzDDhyUSev6Uv8HmhqshK/JewwRi5S9bF7HHMMMCXdJPRo9vbCd
TBDZG791/n3U+NS4ow7oxt013Mgoue20vgfxMD5GSXzgfkbm7tT59mdbfqh6QDR7n6Y8lj8J5
5OnkkU5JzmQFYypUnYjE80oYxxDmcm8Cd7PtHJAT7dEmiPhKTN1CLD+nkssHnwsge/bAvlDME
AI3SPxOUFTX9PTLV7E7QcaSfGUZNl/C9Ky9vXEYpFQ==
X-Spam-Status: No, score=-96.6 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_FAIL, SPF_HELO_NONE,
TXREP 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>,
Achim Gratz <Stromeko AT nexgo DOT de>, System Administrator <sysadm AT prs DOT de>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 30GIlmtQ023676

On Jan 16 14:08, Corinna Vinschen via Cygwin wrote:
> On Jan 16 11:19, Corinna Vinschen via Cygwin wrote:
> > On Jan 15 22:04, System Administrator via Cygwin wrote:
> > > Hello,
> > > 
> > > 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ā€¯
> > > [...]
> While that's obviously wrong, it's not the problem.  It turns out that
> vmstat from procps-ng 4.0.2 stumbles over the fact, that /proc/cpuinfo
> only prints the following fields if the CPU is a multi core CPU:

...in short, the topology info.

> On Linux the output of those fields only depends on the configuration
> of the kernel.  If it has been built with CONFIG_SMP, these fields are
> part of the /proc/cpuinfo output.
> 
> On Cygwin, the output of these fields actually depends on the fact if
> the HTT CPU flag is set or not.  If not, it's not a multi core CPU and
> the aforementioned fields are omitted.
> 
> I could reproduce this issue by changing the CPU topology in my QEMU/KVM
> Windows 10 machine.  The default topology was 4 CPUs with 1 core and 1
> thread each.  I changed that to 2 CPUs with 2 cores and 1 thread each.
> After restarting the W10 machine, vmstat from procps-ng 4.0.2 started
> working as desired.
> 
> So we can fix this issue by tweaking Cygwin instead.  I guess this will
> be fodder for the upcoming 3.4.4 release.
> 
> I'll also provide a test release in a bit, stay tuned.

For testing, please check out the Cygwin test release
3.5.0-0.110.g75c375e86df3 via the setup tool and report back.


Thanks,
Corinna

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019