I'm looking for one or more sysctl(8) that can get me this information:
The number 24 is probably either hw.ncpu (the hardware) or kern.smp.cpus (what the kernel actually uses). But I need to figure out how many physical processors and how many cores each processor for each machine has. I also can't find the sysctl(8) that tells me if Hyper-Threading is turned on (that's the '2 SMT threads').
Surely I could just grep dmesg(8) output but that seems to be unreliable as sometimes the info already got flushed out by other messages.
Code:
FreeBSD/SMP: Multiprocessor System Detected: 24 CPUs
FreeBSD/SMP: 2 package(s) x 6 core(s) x 2 SMT threads
The number 24 is probably either hw.ncpu (the hardware) or kern.smp.cpus (what the kernel actually uses). But I need to figure out how many physical processors and how many cores each processor for each machine has. I also can't find the sysctl(8) that tells me if Hyper-Threading is turned on (that's the '2 SMT threads').
Surely I could just grep dmesg(8) output but that seems to be unreliable as sometimes the info already got flushed out by other messages.