From nobody Mon Feb 13 05:55:46 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PFYVY2plMz3r8v2 for ; Mon, 13 Feb 2023 05:56:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-8.consmr.mail.gq1.yahoo.com (sonic308-8.consmr.mail.gq1.yahoo.com [98.137.68.32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFYVX0rpMz4CY3 for ; Mon, 13 Feb 2023 05:56:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=tpUigHgn; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.32 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676267761; bh=sP2B1tRHgELH489610hed3WnqYRJrZYoOrXfFQvXb/4=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=tpUigHgnGkMOh8r6nlVtzDmvFJ+/4ts+Y/X+PFP/V22R6EeAevNZ5Yw0CfYWtXpFaPK7XG2q7GHD3LGR1jLddS9L2df8cMfotjztS8eRz/okR4rTJlr7+PYCaQIu6PHIML9ROPt8/2PRfG61bJYC1OQJZI8JWxMtiRLNd9OqPXgXMQl2Qyrzhf7bNp1QhJo5cjFcXAPj3Pa19n5hDJ32/GS8Uu96Mrj4uGvU8mdNF44cG9sazso4N1ToycKGgvoL7UchgogJy/LnCFakV1ZcjfZqep+zzYqESapuLaqB1ix3gHEdABUCUwwTBLJ2Ubjf4iO6FTtztCFW8UrOg8Hfyw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676267761; bh=5M8AVd16+yvpkTUvAkN6bk5AWM30/zwAJXkuudIUNkz=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=iCQcL7Ldd9Avpan4/4m9Iohv+7x2y/naU/eLC9+xkseFKS44N2940KU41KhTj3SVD0AZOx7LjWgIMeeGD7I5N4We5ann19xzPbvPJa2c2iQpIsMUJxfuFespJQ6sNrh3pB6ruYX1Ihjdg5UIccZijut8MjMl7c3leloLEQ10SFjRr01NEGA7c5CJZ4FEm/Vh5L2oM/xAEVkJgNRU8dsrH8k+r0mtrs2U/zAmmruHvvQ/+4WDLRkOtIepaIaiT/saIe+P0dEGyuDMRWGYwXwv1Tw1KqvB9fSKAYmBNzCkAAtgRCHZuqTxMf/s3hLXOISa8E1F1kOLyFQDUFeM+ZhBJg== X-YMail-OSG: TjlVPsIVM1mHyPUhDwGr2ElojBsdF9WCESPHyVqzyVOnD19jUzihOHT5GnDwoLL 3uOvR.K2Y6D5LGvScjW10NAU_kEnKb2KOkun1hwasYHVUPFm8z574ly7UeM27qaLzYcobqtcbTqt 6NpfyhUT7b6LLZEcTyJxYii1TxWod8Twis9HNRS64PpgpPTNaUT2quVw6.TK2XfjVG6y2tF5JUCc FHtcEFGQYaVpXS0qZB5NgTY2BuHveSt2BVtpObATW_Mt79u4TfIE1xuKrjjaUZnVFTMMbC1LyxFj uEaZMRWxmfy_YPrGhH1Ty039gX45.BLZhpQLYCRO_umcuZsxF9yrRCR9_IMLyh7AroQ5HEH5yXEn nhaZEJknbIAqmxloFm_hV9PdxBwQPbeMc65d9fEfOjlQvYL0I3O.xUPb82Xs7KFs47eENyniApN0 MUsfBD1hE6ie1mpvKrNXg6Gjdk8gxeY.pd0kL4CAHH0BrCsJHD6djrDgRI.3I7I8hL376Hsy8Sho gqxDct.5VLS2STes9NXS4bfjEnkN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p659WPH_qwdbcQZpzTTeGGxSjCJPnQ8h6HXGKnakHJC DW99glTcZPUK6EQrvyfVBrqY1jfGnp29lfY77Ng_5xeEUa5uXv5a26E71SPL8bhUYoS3aPyDiQFb W0Pfgg2l3eLvhB1q1gVpUAgxPXQ7ivyvH4xxfd5.RIchXdDCumO4BR8wYkxAJ7VRId_kD2GlqdX3 U1yjLB3yM0vA8g40v_Hkgi1y5dg5RPrFlGKjNM6MoC6E.53RqKonAl9ruv10fX1Lf884jd_d.uAl d2DgB3ntrdoQAOa7nq2qRvaUdFFwm9aw4AUhj4nut87WxTqiQcvcOwvq6v7UjPgHpPOLEZFapVwf xFZWvs5sHstY4GYL6HyUKvwIWTzhJflRyePI4.L4ltAEXuO.mRYlIvhLNbXBmmZFRFVy78azEmFt UUOD_w62OR0giumrZzPR.hIlfRT31tqB5px3OTF2LW53UB_Kg.xuhivfLrtLsOM3h_sDyZs._.Pt lF.yfZcl2opr4F_Qda4VoyYsdJRFaSo2d.mmj2NTSfGi0N4NDZIgQ6ZCZAvexdPa_hKtC8goqbnU C28LSzD0ni.9vdh96A4OLjpI6Xb4noJBVycvD2B4BjPs8oZwL79JwU9J7.OTKqkXYSPlpn3dxzkR 1Anvc2s6.QA8h3EJBW59nxY2qNob.ZHij5j5o8fdaqG34T4rCem15Fo1b6ffX2I5aLdh_RMc8S8J AGgVPeeRc X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Mon, 13 Feb 2023 05:56:01 +0000 Received: by hermes--production-gq1-655ddccc9-dcm7h (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 873e5adfd12cc5602c72a1a5fb225592; Mon, 13 Feb 2023 05:55:57 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: git: c21b080f3dc2 - main - cpuset: Fix sched_[g|s]etaffinity() for better compatibility with Linux. Message-Id: Date: Sun, 12 Feb 2023 21:55:46 -0800 To: dchagin@heemeyer.club, antoine@reebsd.org, dev-commits-src-main@freebsd.org X-Mailer: Apple Mail (2.3731.300.101.1.3) References: X-Spamd-Result: default: False [-3.44 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.943]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.32:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.32:from] X-Rspamd-Queue-Id: 4PFYVX0rpMz4CY3 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N > > On Sun, Feb 12, 2023 at 07:58:07PM +0000, Antoine Brodin wrote: > > > On Sun, Feb 12, 2023 at 11:13 AM Dmitry Chagin = wrote: > > > > > > > > On Sun, Feb 12, 2023 at 01:40:59PM +0300, Dmitry Chagin wrote: > > > > > On Sun, Feb 12, 2023 at 09:47:15AM +0000, Antoine Brodin = wrote: > > > > > > On Sun, Jan 29, 2023 at 1:18 PM Dmitry Chagin = wrote: > > > > > > > > > > > > > > The branch main has been updated by dchagin: > > > > > > > > > > > > > > URL: = https://cgit.FreeBSD.org/src/commit/?id=3Dc21b080f3dc2f5e91ada608d4385b7ed= 6538ba9b > > > > > > > > > > > > > > commit c21b080f3dc2f5e91ada608d4385b7ed6538ba9b > > > > > > > Author: Dmitry Chagin > > > > > > > AuthorDate: 2023-01-29 13:17:33 +0000 > > > > > > > Commit: Dmitry Chagin > > > > > > > CommitDate: 2023-01-29 13:17:33 +0000 > > > > > > > > > > > > > > cpuset: Fix sched_[g|s]etaffinity() for better = compatibility with Linux. > > > > > > > > > > > > > > Under Linux to sched_[g|s]etaffinity() functions the value = returned from a call > > > > > > > to gettid(2) (thread id) can be passed in the argument = pid. Specifying pid as 0 > > > > > > > will set the attribute for the calling thread, and passing = the value returned > > > > > > > from a call to getpid(2) (process id) will set the = attribute for the main thread > > > > > > > of the thread group. > > > > > > > > > > > > > > Native cpuset(2) family of system calls has "which" = argument to determine how > > > > > > > the value of id argument is interpreted, i.e., = CPU_WHICH_TID is used to pass > > > > > > > a thread id and CPU_WHICH_PID - to pass a process id. > > > > > > > > > > > > > > For now native sched_[g|s]etaffinity() implementation is = wrong as uses "which" > > > > > > > CPU_WHICH_PID to pass both (process and thread id) to the = kernel. To fix this > > > > > > > adding a new "which" CPU_WHICH_TIDPID intended to handle = both id's. > > > > > > > > > > > > > > Reviewed by: kib > > > > > > > Differential Revision: https://reviews.freebsd.org/D38209 > > > > > > > MFC after: 1 week > > > > > > > --- > > > > > > > lib/libc/gen/sched_getaffinity.c | 2 +- > > > > > > > lib/libc/gen/sched_setaffinity.c | 2 +- > > > > > > > lib/libc/sys/cpuset.2 | 4 +++- > > > > > > > sys/kern/kern_cpuset.c | 42 = +++++++++++++++++++++++++++++++++++++++- > > > > > > > sys/sys/cpuset.h | 1 + > > > > > > > 5 files changed, 47 insertions(+), 4 deletions(-) > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > This broke math/py-numpy on main and stable/13 > > > > > > > > > > > > = https://pkg-status.freebsd.org/gohan03/data/main-amd64-default-baseline/p5= 2768539d46f_scd3193f640/logs/errors/py39-numpy-1.24.1,1.log Well, can a 1400073 [2022-10-17..2022-12-09] HOST kernel running a 1400079 [2023-02-08..2023-02-10] jail that is using new KBI material not in the older kernel (CPU_WHICH_TIDPID) have problems? : =3D>> Building math/py-numpy build started at Fri Feb 10 11:40:51 UTC 2023 port directory: /usr/ports/math/py-numpy package name: py39-numpy-1.24.1,1 building for: FreeBSD main-amd64-default-baseline-job-04 14.0-CURRENT = FreeBSD 14.0-CURRENT 1400079 amd64 maintained by: python@FreeBSD.org Makefile ident:=20 Poudriere version: 3.2.8-23-ga7f8d188 Host OSVERSION: 1400073 Jail OSVERSION: 1400079 Job Id: 04 !!! Jail is newer than host. (Jail: 1400079, Host: 1400073) !!! !!! This is not supported. !!! !!! Host kernel must be same or newer than jail. !!! !!! Expect build failures. !!! > > > > > > = https://pkg-status.freebsd.org/gohan02/data/13stable-amd64-quarterly-basel= ine/841610d9bfc6/logs/errors/py39-numpy-1.23.5_1,1.log Similarly, can a 1400073 [2022-10-17..2022-12-09] HOST kernel running a 13.2-PRERELEASE 1301511 [2023-01-10..2023-02-10] jail that is using new KBI material not in the older kernel (CPU_WHICH_TIDPID) have problems? : =3D>> Building math/py-numpy build started at Fri Feb 10 10:36:27 UTC 2023 port directory: /usr/ports/math/py-numpy package name: py39-numpy-1.23.5_1,1 building for: FreeBSD 13stable-amd64-quarterly-baseline-job-01 = 13.2-PRERELEASE FreeBSD 13.2-PRERELEASE 1301511 amd64 maintained by: python@FreeBSD.org Makefile ident:=20 Poudriere version: 3.2.8-23-ga7f8d188 Host OSVERSION: 1400073 Jail OSVERSION: 1301511 (Looks to me like CPU_WHICH_TIDPID use for 13.* has to require 13.2+ .) =3D=3D=3D Mark Millard marklmi at yahoo.com