From nobody Tue Feb 14 08:55:35 2023 X-Original-To: standards@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 4PGFRD11W3z3rR0H for ; Tue, 14 Feb 2023 08:55:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PGFRC75h6z3LJG for ; Tue, 14 Feb 2023 08:55:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676364936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gbQ4PO4fKRc/DEAuW6rqp/1/gx9RHpzNOi+dhpdK2Y4=; b=h2/5qfSwqHPqA7NJ/hbCbLrGbr2wFtkZ0vDVnPDnuq289g4ek6utuMg9CrTuPrAYiM5+pf OBi0Mjr+xtbpySR57KFSaygNkIMpKRifc0r4LO8OeLtoOlDgGE/z7gurwECP9PwF8v0Qw8 0jAJ3HEgWHZCMVdA3rQkqJh8cfbMrpEQW3qgfoFa79c/yE0MxFdy+5WQlZxrrq7oycBdxG bizhxsfL1zPUcsRO045gX5mQT+hW1ZjR0ATJE34ZxM11IiDCcHjIhDMPSoPYfJQXD2qH/j 8t72Hj4IWCKmfuWde1/wt4NUQbjA6fOONWJYRUx3XBXBfLaaNYk23BSvF5KPdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676364936; a=rsa-sha256; cv=none; b=LglhTc93rBDsLURjVupO58yTkGi6jAMcXoFVOE/ockwhNzw9XGA4I0yivfhOyxBFdPcrKA WaH2w0+z9iFNamifHjAm5G4EJSOujIQyAPV07Pq0m4xJnaaaIPrJMFU3nAyMvZZyBYD9dP c/8i5UvHze/VRVUiYX7UZAbw/mMGVMBRg6RaKlrQNGrG+hSnfIr+IfwEdEGLKdqnPkS6EL BeqQPA0e5sJfSNDJLRUZ3fkKclWJoeQvEWF3VcGUtvgxY0yg0JgceDgJTm8z8cqKKxUDvd xlzR6okWMdIt2/tHJum2OAIPTEWTRYXHvejpg/9x3SW/QQR0UQkXyF6J/iPrig== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PGFRC69kpzscg for ; Tue, 14 Feb 2023 08:55:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 31E8tZ25057196 for ; Tue, 14 Feb 2023 08:55:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31E8tZVE057195 for standards@FreeBSD.org; Tue, 14 Feb 2023 08:55:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 230330] _SC_NPROCESSORS_ONLN reports offline CPUs Date: Tue, 14 Feb 2023 08:55:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230330 --- Comment #5 from Mark Millard --- musl has _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF as synonyms, like FreeBSD --but both affinity based, unlike existing or proposed FreeBSD. glibc uses affinity as a 2nd fallback for both, not as the primary definition for either. (I'm unsure how the file-system-style data access it gives priority for each has its content controlled but the content for both paths seemed to be system-wide definitions.) So not synonyms when the primary definitions are used. Can be synonyms when fall backs are used. NetBSD does not use affinity for either. Not synonyms. OpenBSD avoids having affinity as I remember: so not affinity based. Not synonyms. I've not checked on Solaris. POSIX documentation for sysconf(name) indicates the interface is in general not intended to be what is used for things that change value during the process lifetime. Its rationale statement limits its intent to things set only at system initialization. (But _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF as names are not from/for POSIX.) This area is a mess: so many standards to choose from. No fixed alternative is generally compatible with the others. --=20 You are receiving this mail because: You are the assignee for the bug.=