tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD # actual cores



On Thu, Jan 04, 2024 at 09:13:17AM -0600, Jason Bacon wrote:
> FreeBSD coral.acadix  bacon ~ 1020: sysctl kern.smp
> kern.smp.forward_signal_enabled: 1
> kern.smp.topology: 0
> kern.smp.cores: 2
> kern.smp.threads_per_core: 2
> kern.smp.cpus: 4
> kern.smp.disabled: 0
> kern.smp.active: 1
> kern.smp.maxcpus: 256
> kern.smp.maxid: 3
> 
> Is there a way to detect whether hyperthreading is enabled?  If we have
> that, we can divide hw.ncpu by 2.

No, the kernel does not export that either.

> If not, using hw.ncpu is not a catastrophe.  I just means NetBSD cores
> will be somewhat oversubscribed by default.

It is all a bit x86 centric anyway, and does not match other architectures
(like ARM with slow and fast cores) very well.

Martin


Home | Main Index | Thread Index | Old Index