X-Recipient: archive-cygwin@delorie.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@cygwin.com
Delivered-To: cygwin@cygwin.com
Date: Mon, 16 Jan 2023 19:47:05 +0100
To: cygwin@cygwin.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@cygwin.com, Achim Gratz <Stromeko@nexgo.de>,
 System Administrator <sysadm@prs.de>
References: <38D69F25-39D2-4A62-B2BD-94055EB2994B@prs.de>
 <Y8UksJ4O2q1+SZn5@calimero.vinschen.de>
 <Y8VMRejAHv8BgwDB@calimero.vinschen.de>
MIME-Version: 1.0
Content-Disposition: inline
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@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: Corinna Vinschen via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>,
        Achim Gratz <Stromeko@nexgo.de>, System Administrator <sysadm@prs.de>
Content-Type: text/plain; charset="utf-8"
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 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

