From nobody Fri Feb 17 06:26:14 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 4PJ1zW326Sz3rZWD; Fri, 17 Feb 2023 06:26:15 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PJ1zV67Yqz3h4p; Fri, 17 Feb 2023 06:26:14 +0000 (UTC) (envelope-from danfe@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676615174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pkhGxxKB353mVskIAU7ElhAjeJmoAaTV+iFA2efZ2zk=; b=AyMGzUhFRyFDK2WIFHHHDLNXTggVfr3gujX3NK7qZ7VuoyFVjJTEGfgzj+KmJvk0X3m092 LKiXgkQEcIHBMkEjNbm1L0AlPCcl1ULSSXtG05UcyA/2c0IVUKj0pFRsLfZUdWy5gtWF2H leo2iAHQ9zyeOecZdEeuuRcMqaOGRon29abfXZeXIMqYQdCeW+ICnlHIZ4NEBfcPXDNjD2 utv7PVk/eATE9wkwk8YZD1uxwgJ3BH0Flsq6VXz+Z5AAVjIzF9i4LKpbVQK3sANkbVS8sd QLB6b9GwYfFkuJrMSIA5o2qklcrlCpo/toMVw+uLRk3Vr2efeQnskK/gpFltzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676615174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pkhGxxKB353mVskIAU7ElhAjeJmoAaTV+iFA2efZ2zk=; b=jWBXfqktwW1h6knA5u44fEGdpq3QvgH/zgfK6e6of8qhuhFE09XODnuGuFWOJEDrfg+Bm0 +yzSoPJ9nsK8tPCnzNFk6iNoY+d4X/VkMT9Pby0TbKRxBaB9rUa0Zw5TL2AiS4MM5uaQB7 FGkrq3r6antUkZnTKfBJnCbUo3120CN/RKjREtzQNAhQqQHJLcQCxp5QzM4XD13da0UWDO /bk02fm9aN3o/jfHh3mCmM91xaHVkYeVI3sGIGKC2DIxOOywAoqrgMJ4HIAuu5FSAaPDDD /XpdY1+wcwDlI7IZg818igzXKX/zTpTB8FDo7KjioYz/tKZnzCCi/qgxF9ho/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676615174; a=rsa-sha256; cv=none; b=hD3hFZZVNm98cbvklsCsj6CivlIbFFE2yl+CkkqPGxyIQzHkyVsVrwLI6x6pLxV59rwhRs DtEhjhAVi3zNUG2iP3zgIX5OtYb1ZnHrwx6bEWIeFwjHTdLG1x8yKMeLGOTblVMxWdA+iq Ablb8gHmSEGNn7ASPIPbOAH8Jkg0TRybQqV6stqoh39C5n4nDkkGjJsjNWdJgsb5ICK7K6 JMcUVBZtXECw6+M0urm+iruBsKps3FdOfy3mWvyUsTVGCBQyr12n6bWcOdTTGXXBnHSs48 FfO6JcOwvYz2LeMa71Ew6s4a1Mq+CVUkRY7edrQfLcDjeIOF6FRcEyTiyuYV3g== Received: by freefall.freebsd.org (Postfix, from userid 1033) id A50C9599A; Fri, 17 Feb 2023 06:26:14 +0000 (UTC) Date: Fri, 17 Feb 2023 06:26:14 +0000 From: Alexey Dokuchaev To: Jessica Clarke Cc: Mateusz Guzik , src-committers , dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: d9d5f2c042a5 - main - cpuset: add --count Message-ID: References: <202302041751.314HpRrn042970@gitrepo.freebsd.org> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ThisMailContainsUnwantedMimeParts: N On Thu, Feb 16, 2023 at 06:01:32PM +0000, Jessica Clarke wrote: > On 5 Feb 2023, at 17:28, Alexey Dokuchaev wrote: > > ... > > I was wondering whether we need both of these sysctls: > > > > $ sysctl hw.ncpu > > hw.ncpu: 2 > > $ sysctl kern.smp.cpus > > kern.smp.cpus: 2 > > One prints mp_ncpus, the other smp_cpus. As far as I'm aware those > two are the same for as long as userspace is running, and only differ > during early boot before AP bringup (mp_ncpus is how many it will > bring up, and smp_cpus counts up as they come online until the two > become equal). Thank you, makes sense. I guess it would be nice to have this piece of knowledge documented somewhere (as these sysctl's own descriptions are kind of vague) but I can't think of where should it belong. ./danfe