Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2023 06:26:14 +0000
From:      Alexey Dokuchaev <danfe@freebsd.org>
To:        Jessica Clarke <jrtc27@freebsd.org>
Cc:        Mateusz Guzik <mjguzik@gmail.com>, src-committers <src-committers@freebsd.org>, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: d9d5f2c042a5 - main - cpuset: add --count
Message-ID:  <Y%2B8eBqO7PuLcsaKI@FreeBSD.org>
In-Reply-To: <A5FA934E-1DAA-45A9-9900-3E8A91BEF4FC@freebsd.org>
References:  <202302041751.314HpRrn042970@gitrepo.freebsd.org> <Y98dOenW9mulqNzm@FreeBSD.org> <CAGudoHGn1-zZTAX4r1h_xMpaA4zd9b2y4_N21Jah1pdGsqsuQA@mail.gmail.com> <Y9/nUguGt6mlksGF@FreeBSD.org> <A5FA934E-1DAA-45A9-9900-3E8A91BEF4FC@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 16, 2023 at 06:01:32PM +0000, Jessica Clarke wrote:
> On 5 Feb 2023, at 17:28, Alexey Dokuchaev <danfe@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Y%2B8eBqO7PuLcsaKI>