From nobody Tue Feb 14 04:40:12 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 4PG7mx6lMMz3qWlX for ; Tue, 14 Feb 2023 04:40:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-20.consmr.mail.gq1.yahoo.com (sonic301-20.consmr.mail.gq1.yahoo.com [98.137.64.146]) (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 4PG7mw4ptXz49Zd for ; Tue, 14 Feb 2023 04:40:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=HytXdK+E; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.146 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=1676349629; bh=nq5bZtBHvXD2s+6rCK/G7ZWjHKZYqsSYb5hGYv09dsU=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=HytXdK+EEP2AFq7SpSsGPYOrlcrmhDlfchOlL7T1Z2cOvYIR2XXULkmK/Hx/14Xtsd5HsamtiLXGiKFDzbWQX2bOs8SG/Xk6ZDWkiHqF7Vlgc6jas6GJAwogdxncGg6p1go9OzQ31YVxeLicl8yAhAkV52z5/GovGrUjuE+uViC8ynSyyrWeIdOVs2p/Fhv1SvF3+fENtzi0ByZNJRLORmH64PvXB5WqVo7/l7bNFD5cFhlZ46MdKB9OPZU05vuew+IZDMzavMi0g95TR/fTy8I8TeEPSWLjF0QvWdCJacFK32QYVyrwbYBC1jcbenmbIUiOaEnl5xVrBqj2X9PJ+g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676349629; bh=RhkqDmV3e1HaaIeK0USYFHlNQjCMGLREcY57p15ahrF=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=fxvZVUtJjk91I+noJtacslodpWf4GqVdpTkQscoq20RBGu0Auzd9bhTFKQaZqR49FxOd9+NU0/u2W0c6U5kU89FFwqO93SzKpVh5sx3J/R6qk7rSx1gguP3BH3UAs6v+A/FZtfnqAkD7ODRhYF1x5sTVIrVOdO60pji7WYXvyScmmL0BJiCgxytGqleI0rPuUmAWDoJyZQojQwL+F1Tx/73+x7WcYRxqPn+yHffry7W0c+TIFpKcZD/AwWUkZSMWAHLZob5LquLGeF25zyxRs4sPAxZ6buJbKMXnZD8y0DR9ft8hVnqKcB8cE8dIL98JTB8eYbfSWem1/K+pJEUeVw== X-YMail-OSG: ofOeQLoVM1lI31qmCRLxYZInyzcbC09WPYQ4Wpsp6uOTgAc4glE.QAMpp5X7qgx 0w_jMNlBZJIDlrWUftTEBZrT08WuMQJfyIMC8LBAFqlvxsaR_O6lZSr.Da_LyIgS8RXWsn03NDZI 2cFtdk13rMhwwQesYyvJsLaxAcU17e7jEmRbE33b8lSn2.ms4D9mvkjZA0aE0nngc98NYumJ4eeS KoOkI4Cc1ejY8UB6p1Ihk8J3uwrgnhiFSb5Ivv84xPTNaisuTMRA_6wTjduPfoE_AfTMFAUCPpwx 7.3h6N1hvWFGyBT8bBcUilwXElo3hNyLVLhwdjjo9cPkbFOGiyp8F0jQa9sA0SWBUAsVOOQ2UTdc 86r8Dt4pWoB1_wSEPtAbW_h241dMiR616gzJgJl5lMfwip1IIqLJkG4WnpasvJrOvFJVByC7eX9x k2SktXdQkdE33zxiT5DZw8MJfG34nke3ZfUYgtFEwOC9pn_xS70Gxh6VeCHsSD4ZWv0uvuyquIdM 3kEoKCWvJP7GDTCTdI.Lw0q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Sy7i2yapNgZjpa4PNlWkTyB89ClUryjyjjZ5irTJLV0glBiYf8NGs0Y InxWwarCsPSkoURRX8nOJ1vH7spDfiejn5nSw_DN.MZLLVher57lxyHr.Yj3nYQ9o5dXEWSU8rZX q0PyF22D.lXPpV3S5PIZnGsUMH_b8WEOmDeW7nN.VVKritKmAfTWLIWBUhDBKu0qvSH_SHksenTJ BjXVAvoY8Y6TkMDoWANWJklO0N.ek2NAp2N5jqPq3BpA2HT.QcFyKNGmshJNc1KWJDULHvuFR.TO z.JEjflh311uFGeCUY5xpmsmO8NRm1X7wmWxBQULHDtrK_dye0ARJ5aycEHacekKgzWKXLw2WYis FK1_Qtbnn9JG6A1xeE2U1EYzGE8HsBG1_gflAZu4jdRE4u8DxR5MqnWdlPqrDedQ0wt6Jnwkxd3Q ybZ9yhF3luswDxHrvxxQFRaQaUAdvlnCbNotb_awxVw0vsUYaaZmWEWNVa8vaaDjMz.XGsaAFtYu YvCSYhNCgspYPiaC0fuoLzrN9USBP4aWO1JbyDf4d6x4SNQdM7sX1XgIolVuoS69M.YrdfyEq2Ek CmQG.aPnJKWq5uRpwlq331ILtPENNOhprGG9Vltr1ucb9dCw.cKQnTFV6nOyFYilmOJTMw3wKgz2 jvliPux76GWFmbDm8WWTotwFubPzQmKM6KbU96sgBTDgDsiPwOc8FlLuvt25y3BNcazadQbB.qDH 5 X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Tue, 14 Feb 2023 04:40:29 +0000 Received: by hermes--production-ne1-746bc6c6c4-kcw5g (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 32c1d067dc6c9c293b33b31df90229d5; Tue, 14 Feb 2023 04:40:24 +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: 48bfd3597654 - main - Add nproc(1) Message-Id: <6A17ABC7-9C91-4B9D-93C3-146307FB9390@yahoo.com> Date: Mon, 13 Feb 2023 20:40:12 -0800 To: dev-commits-src-main@freebsd.org, mjguzik@gmail.com, jbeich@freebsd.org X-Mailer: Apple Mail (2.3731.300.101.1.3) References: <6A17ABC7-9C91-4B9D-93C3-146307FB9390.ref@yahoo.com> X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_THREE(0.00)[3]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.146:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; 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]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[freebsd.org,gmail.com]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.146:from] X-Rspamd-Queue-Id: 4PG7mw4ptXz49Zd X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N As far as I can tell, it is unlikely that any choice is going to be universal for a sysconf(...) context. Part of that is that POSIX does not have the _SC_* names involved for "nproc". But there is a broader issue as well: POSIX.1-2017, for example, says of long sysconf(int name): (I ignore here material about returing -1/errno handling.) QUOTE The value shall not change during the lifetime of the calling process END QUOTE A XSI note adds that QUOTE except that sysconf(_SC_OPEN_MAX) may return different values before and = after a call to setrlimit() which changes the RLIMIT_NOFILE soft limit END QUOTE (So, one XSI exception noted.) The rationale section has some more related words: QUOTE This runtime facility is not meant to provide ever-changing values that = applications have to check multiple times. The values are seen as = changing no more frequently than once per system initialization, such as = by a system administrator or operator with an automatic configuration = program. This volume of POSIX.1-2017 specifies that they shall not = change within the lifetime of the process. END QUOTE It looks to me like, in this "nproc" area, sysconf(name) is being abused related to its POSIX intended range of functionality. Not a good context for getting stable definitions across systems/libraries or over time. That said, ignoring cpuset/taskset would be appropriate to the POSIX.1-2017 wording for anything sysconf(name) is to return and using cpuset/taskset looks to be inappropriate. (I did not review the POSIX history prior to the 2017 context.) If some forms of sysconf(name) use are to not fit with the POSIX property indicated, it likely needs to be well documented for that and whatever other criteria were used instead also needs to be well documented for the names that do not get the property. =3D=3D=3D Mark Millard marklmi at yahoo.com