From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41822 invoked by alias); 11 Apr 2019 08:26:09 -0000 Mailing-List: contact cygwin-developers-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com Received: (qmail 41568 invoked by uid 89); 11 Apr 2019 08:26:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-108.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=desktop, HX-Languages-Length:1311, H*F:D*cygwin.com, Manager X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.187) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Apr 2019 08:26:07 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1My2pz-1gxUw53d1T-00zVD6; Thu, 11 Apr 2019 10:25:18 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 2E0DCA806B7; Thu, 11 Apr 2019 10:25:16 +0200 (CEST) Date: Thu, 11 Apr 2019 08:26:00 -0000 From: Corinna Vinschen To: Mark Geisert Cc: cygwin-developers@cygwin.com Subject: Re: Implement sched_[gs]etaffinity() Message-ID: <20190411082516.GN4248@calimero.vinschen.de> Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: Mark Geisert , cygwin-developers@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qVHblb/y9DPlgkHs" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-04/txt/msg00029.txt.bz2 --qVHblb/y9DPlgkHs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1290 Hi Mark, On Apr 10 21:21, Mark Geisert wrote: > I've recently sent a patch to cygwin-patches that implements these > Linux-specific functions. I used the following test program to debug and > test the implementation. When the program is run, you can watch it migra= te > from CPU to CPU with Windows Task Manager. >=20 > I've only tested on 64-bit Windows 7 so far. If the code (in the patch) = is > adequate I will supply another patch for doc updates, etc. Your patch is nicely done, but what about machines with more than 64 CPUs? Your patch only uses the standard API for up to 64 CPUs, so a process can never use more than 64 CPUs or use CPUs from different CPU groups. There was also the case of this weird machine Achim Gratz once worked on, which had less than 64 CPUs but *still* used multiple CPU groups under Windows, for some reason. Any chance you could update your patch to support this functionality? For some info, see MSDN: https://docs.microsoft.com/en-us/windows/desktop/ProcThread/processor-groups Also, there's already some code in fhandler_proc.cc, function format_proc_cpuinfo to handle CPU groups. You can use the wincap.has_processor_groups() method to check if the system supports CPU groups. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer --qVHblb/y9DPlgkHs Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyu+ewACgkQ9TYGna5E T6AMZBAAnGw2I8NZ1gqFcyyNMQ8xUhwTunespHiXqt0tUXiepnuYtycMUYLG/CW3 2iobrzZYn4RZEeN3CbWEXRrdtS5Vtz4U2D/xVctsQt6kxWQldSyrUSb4LaNfgEqB Wn+/hGezzrGF/zYZWH+/SzNXkkbxUWwlStHQx25IU+wcLaD+rHyVCmb68gt1mCtU BEhiOBAZVlda4fYYYwFQmgKQQOopkQBY0CZekp7i3E/hv3fiUW8Jcju52jZ57efb X8svRI3hkQ4kwKYFmOmAoyepsicueSRfPnpLTT32ANHB6m+sO2Uqp/XFUxTvvkCy /R9DoaanJZ95WVhKe8hXOw30qutgsoxDXsxzCF48vjK5Cjnj5zauSC4tJ/0eRWXa t7qhzLXcx1h/AFLjHlr5p2MF728VYoiPlOTa6Vo6lihrYKN70fqnsQnEjqj46oDW pCpnGX9+SKC4QibiZGawGmlO1pDXTAR3QHXN4ZSSYKbkwQRibKJIZf0LleRnx2Du r1AjDjIZRhuXtzgdirVsW7WfMVkqsDzxi6B4lhWs0oubXD3AUfECli+dtsRay+Y/ +aFoQpTjdNcZiYiMky+vOySwpOP8ei4MJ3pJFmXYO/Iyj8DDMw3cQ2k+s17hm2vR IgR6OkWF4aeA6hS48aEp4NjCBMxBaUGagkBr8SV4PSjnmPZcljQ= =yh50 -----END PGP SIGNATURE----- --qVHblb/y9DPlgkHs--