NetBSD-Users archive

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

Re: Disabling hyperthreading on NetBSD



On Sat, 21 Nov 2026, Ben Collver wrote:
On Sun, Nov 22, 2026 at 04:48:22AM +0100, Ellie wrote:
Is there some easy way, e.g. a simple sysctl call, to disable hyperthreading
on NetBSD?

Here's what DDG turned up for me:

Should you not be able to disable SMT/HT in your BIOS, you can put
smtoff=YES in your /etc/rc.conf file.

<https://man.netbsd.org/rc.conf.5>

That will offline all CPUs except for 0, leaving you running in uniprocessor mode (like booting with boot -1). Take a look at /etc/rc.d/smtoff for what it does. I don't think that's what you want.

--
Stephen



Home | Main Index | Thread Index | Old Index