Re: git: d9d5f2c042a5 - main - cpuset: add --count
- In reply to: Jessica Clarke : "Re: git: d9d5f2c042a5 - main - cpuset: add --count"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Feb 2023 06:26:14 UTC
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