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 08:13:57AM -0600, Jason Bacon wrote:
> 
> Does anyone know how to get the number of complete cores on a
> hyperthreaded CPU under NetBSD?
> 
> On FreeBSD it's sysctl kern.smp.cores.
> On Darwin it's sysctl hw.physicalcpu.
> 
> I'm not seeing an equivalent on NetBSD.  hw.ncpu reports total
> hyperthreads, as it does on the other platforms.

There is no easily accessible value for this in NetBSD currently.
We should probably follow FreeBSD. Are there other interesting values
in hw.smp?

Martin


Home | Main Index | Thread Index | Old Index