From nobody Tue Feb 14 00:47:04 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 4PG2bw4d6mz3rHFR for ; Tue, 14 Feb 2023 00:47:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-22.consmr.mail.gq1.yahoo.com (sonic309-22.consmr.mail.gq1.yahoo.com [98.137.65.148]) (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 4PG2bt6nzHz3nLm for ; Tue, 14 Feb 2023 00:47:22 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="Jrk/t7aV"; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.148 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=1676335641; bh=W1fwrTxRife4aCnH1xtND3vqL2/Tdkdb/79dAB2/FrA=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=Jrk/t7aV5s8/jOPaPW76iSvLKl0KNERyW/VyNo0/9jGA55ZH6LFdgqdqjY8NGgku60vk+oRBXceRdyYXypK2drIDnej7gtHFzKUD3lQjpICAZbB62tSHdCrXySAdYWNxdZWILr4HqLY+89R601heBnS6E9WqRAz19NMckpNHAl3Z/bmUnaEPe6OKJygDilr3NE7HykF5UDLAct5GflfOv1dk50CAC3GIkpG8fYR8MNophvNq+m0vQ6aqqxwM3BuKK8v6kY08RC+ESIQlDG6OBtItkXOb9/LCvwmSQUQvII/EdVGbvK6jLgZH6HX/aLHDGdaO0t8rs0lHrfQIdimEkQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676335641; bh=Pm8JAUjHitHSNmoWlFdlkBioKakEfs/S3P4Mzoayg86=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=rpXirIKoYdCEi+wx8/E1ItX/fsc3J1NW3173xFcezn0JPnImwYkkxWIIgoBiFQiCwjjwUggIH3sAx6XYxV1TucFcvPp2M/mH2Lh/1op2vdZE9+2Y5gprofby2vo6pIbF9h0f7ap5in6CPjBMghHpAVqte4voYEQlUVYcZ8lVitBXNmxtERXPc3KWOunW9n5clbQlqfKviW19nUMeFQL9TUqrI+WNE9NmmXWBGLpWTMZW5hiWLm4a75gZsFuKZp0dQgGcZ0/xVZzKvHuXALpBdcxiEjU+cbZtYKz1kex+Pz9IbTkiBgEjZXuGhg8c8QzGp6V9Lph5P8ImGIrEq206xw== X-YMail-OSG: RWIjuMQVM1l7y6iLlUlprrmoRxjHODpFlD5ALLs_iTRmoQWu6y748erjsXL305Z 2La.ymKwlLIpuQVHTJoxQ4HbMSL2hAGeTbuyKoDxDM4h0kLWcEdrCkHDKri1GGGk2Ss9W_CZ2aaC V8AkEbEs_RJNq2N1TN2KBs6da2j3dmwzvcY2rfEg8qUfacImmPpcFaXLoj6FpLWyAQV_dwEcs2uo pqm8EnxmP1obPRHzpbDxQ1spNoqwa4vq8piAAeyqgwGSz9dcRJsFrmlWGe1cFqK5euynrZfJz9dK t6CST6N28BWmmt.e8OhDpGsvNL5C0eppiS8vodChs7HGbr7ECES_GsKzqspAtVn6.8FtKEjapOHZ 5KVmq8k7ktVxe5AjZQ02hG3lKwnZtNTg9GbMjTFBozX6XDBJBlCsWD40DexHzOXzSMV0Ij7SmEcU ihIBL_TDf6yPsmUk1U8QW7cDzFgCz_DcY231xhKH5SuvhKyx81Wc9flOXCUaekHbujHvoPwawMD1 C8TuRiVqWlJzVGwHAKn9QEe02kn6E8J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ZD8J4.d1FXV8sgricBwdbtd9xHWPi vZcZ5tPN6BEpMSzw2hxO8EEvClahdTih_GnnWkf3F12m31.Smmcm3__sGTEov4SUXhWMjqrit3Zs txzCPhOuukms_1ZE3.Pkq.DLqPkoZP4jKDe4a6.jn0q8Wvsmosnu7solx4HVZefktbYcF.LszwkR QAXSmgxVxi_wFBBMYcNudbegx.3Cn81SfwXV9gBrPwRrJB2L53abt6kcpdkxbChMUe5zy.0LczYm cSnLr5KhY5Gu3R3rJm2Yjfvx_sUCBvRl73xEW0RYa7ymavi4ppz1KNIhRT64KjvPnLgVHQVyAxLU P_eNfWinhYDGxZx4.0TfxkXnCp8zE1n4guc_JJXEqQ90WlTwSSHosN6jXFzfGMBWOhmgdy.1gWPK bvEf3xdn39oV2zOImhM0Qr6jt41Q0DEelgj4RVMKkU0DfNWntV3clnLyajuGkSoFe.ItqBi8LrNo MjM9oVxcT7leFoNO8MFaKRL0YalqjBtog.z0S7Rx120ctRoULl.v7KjrMORdedGAkqcUjBAdXomi pWc9nB224GWWyq70jwOK2PqAFquRWFtFlODtJTPWjxzeyWvB.jMh.nC8Ycu0LhIog5ZFQrHsiMp7 JnBNRjKCrnF7ealqzf_lKjwwl7Bix8utv7RyOXun66dGj7ilmx1eJeh5v9YbLm5XcKAfS_A_fH5o F X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Tue, 14 Feb 2023 00:47:21 +0000 Received: by hermes--production-bf1-57c96c66f6-7qgxj (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 04a4d598a9637ac3f10a4747d5fbfa5c; Tue, 14 Feb 2023 00:47:17 +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. (Just a fixed TO: address.) Date: Mon, 13 Feb 2023 16:47:04 -0800 References: <18263DB1-D79D-420A-9F24-EE8C8E071C15@yahoo.com> To: dchagin@heemeyer.club, antoine@freebsd.org, dev-commits-src-main@freebsd.org In-Reply-To: <18263DB1-D79D-420A-9F24-EE8C8E071C15@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; 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.65.148: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.65.148:from] X-Rspamd-Queue-Id: 4PG2bt6nzHz3nLm X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Feb 12, 2023, at 22:05, Mark Millard wrote: > [Just a fixed TO: address.] >=20 >>> 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: >>>>>=20 >>>>> 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: >>>>>>>>=20 >>>>>>>> The branch main has been updated by dchagin: >>>>>>>>=20 >>>>>>>> URL: = https://cgit.FreeBSD.org/src/commit/?id=3Dc21b080f3dc2f5e91ada608d4385b7ed= 6538ba9b >>>>>>>>=20 >>>>>>>> commit c21b080f3dc2f5e91ada608d4385b7ed6538ba9b >>>>>>>> Author: Dmitry Chagin >>>>>>>> AuthorDate: 2023-01-29 13:17:33 +0000 >>>>>>>> Commit: Dmitry Chagin >>>>>>>> CommitDate: 2023-01-29 13:17:33 +0000 >>>>>>>>=20 >>>>>>>> cpuset: Fix sched_[g|s]etaffinity() for better compatibility = with Linux. >>>>>>>>=20 >>>>>>>> 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. >>>>>>>>=20 >>>>>>>> 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. >>>>>>>>=20 >>>>>>>> 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. >>>>>>>>=20 >>>>>>>> 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(-) >>>>>>>=20 >>>>>>>=20 >>>>>>> Hello, >>>>>>>=20 >>>>>>> This broke math/py-numpy on main and stable/13 >>>>>>>=20 >>>>>>> = https://pkg-status.freebsd.org/gohan03/data/main-amd64-default-baseline/p5= 2768539d46f_scd3193f640/logs/errors/py39-numpy-1.24.1,1.log >=20 > 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? : >=20 > =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 >=20 > !!! 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. !!! >=20 >=20 >>>>>>> = https://pkg-status.freebsd.org/gohan02/data/13stable-amd64-quarterly-basel= ine/841610d9bfc6/logs/errors/py39-numpy-1.23.5_1,1.log >=20 > 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? = : >=20 > =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 >=20 >=20 >=20 > (Looks to me like CPU_WHICH_TIDPID use for 13.* has to > require 13.2+ .) (I should have used "some CPU_WHICH_TIDPID use" and the like in various places.) I got my environment to be 140079 (everywhere) with ports updated to be have py39-numpy be at 1.24.1,1 . My poudriere-devel build result was: [00:25:52] [01] [00:00:00] Building math/py-numpy@py39 | = py39-numpy-1.24.1,1 [00:28:39] [01] [00:02:47] Finished math/py-numpy@py39 | = py39-numpy-1.24.1,1: Success (It built 47 other ports first to get ready for that.) FYI: # uname -apKU FreeBSD amd64_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #60 = main-n260797-dc1b8c9a846e-dirty: Thu Feb 9 22:17:26 PST 2023 = root@amd64_ZFS:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.a= md64/sys/GENERIC-NODBG amd64 amd64 1400079 1400079 Looks to me like, if the ABI incompatibilities are to stay as they are, then the FreeBSD build servers need an update for HOST OSVERSION to be more modern in order to avoid having odd problems with building some ports. =3D=3D=3D Mark Millard marklmi at yahoo.com