From nobody Tue Feb 14 19:52:23 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 4PGX134Q2Mz3pv2l for ; Tue, 14 Feb 2023 19:52:23 +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 4PGX132MmHz3vZ0 for ; Tue, 14 Feb 2023 19:52:23 +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=1676404343; 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=0ghBPMqfZJTXInHRrsTmsEzP3A2odATq22FW2QmTq6I=; b=QWyMfEoVJ7DXR5d2HAGmqivIsjG0NDf42MUeEmx+xqsKpd1XZROczPw4/Tv3jRTzDJsTFu OISoKLqZp6qmq52KLuN7YhJiuLcdD8aEZVXsbd35zbKV/6F5AyUf6+G8NCEHV/5VPZF00q 00vBsJhdNtr4BKb+CfEHT04rqmpXdshR4XGIDNCB97bmPm+Fm0rVcaKHwrdsIWCWFcLiZe iuq9FHvZK/GrQLHoHRFG0OjnOB+Y+8aRmw2NofU8j3e1BbgQHxGdL31EiUYOCBAyZNzPrX haSSMZNScbMtvwq0GhQI4nFiQXGol+X2nEcg6WuSxMyaqeR/ZfwmYhjQNbtmPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676404343; a=rsa-sha256; cv=none; b=QH+iWWf65NiutAYcQndpik9yoCpTUGv67FkUueaOkYx12H4IZk0vcm03/nscaVHnXeyCc3 HaU2rCoesbvptD7j13vDT+p7SNpHOg+xc/3HbadeYpr5sn1mKZ4dYEAbLT8I7KZ8vA5Ygh 5lN6A6Sl4DEwScWneCM5Hjf6HX0u3df0mglVAnyAab48sXns845pJGhIp6To47ddZ2VBVY 991ifQLa26dsmRkHZoHrXhXRTUUOyLz0GaNqYtNT9bvqsSJdJHQPuuOVvn4/TBGt/BfvWJ KfcRhbU4tHYHzqwahqL6aXtFgLWecJLNquhVkSFaG5Au7Q+YTFcYHhDODqhu5A== 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 4PGX131Qhlz1BTB for ; Tue, 14 Feb 2023 19:52:23 +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 31EJqN3q005870 for ; Tue, 14 Feb 2023 19:52:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31EJqNRE005869 for standards@FreeBSD.org; Tue, 14 Feb 2023 19:52:23 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 19:52:23 +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: jbeich@FreeBSD.org 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 #8 from Jan Beich --- (In reply to Mark Millard from comment #5) > I've not checked on Solaris. Solaris appears to restrict _ONLN and _CONF by zone which is closer to *_getaffinity solution. https://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/syscall= /sysconfig.c?r=3D440a8a36#107-111 Given Solaris uses a syscall glibc probably behaves the same under Linux-branded zones. I'm not familar with Solaris to find how it implements /sys/devices/system/cpu > But _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF as names are not from/f= or POSIX. I've linked a POSIX proposal in "See also" here. It has a suggestion to use "execution units" instead of "processors" and "available" instead of "onlin= e". One can't get more "execution units" than what cpuset/taskset or jail/zone/container has provided. --=20 You are receiving this mail because: You are the assignee for the bug.=