Re: methods of hyperthreading on or off
- Reply: Konstantin Belousov : "Re: methods of hyperthreading on or off"
- Reply: void : "Re: methods of hyperthreading on or off"
- In reply to: void : "methods of hyperthreading on or off"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Apr 2025 18:56:35 UTC
On Apr 21, 2025, at 5:34 AM, void <void@f-m.fm> wrote: > > > I'd like to turn off hyperthreading on some (most) freebsd machines, > the rationale being greater network throughput. > > HT can be turned off in the bios and/or via a read-only sysctl > in /boot/loader.conf (machdep.hyperthreading_allowed="0") > > Which method is superior, and why? “Superior” is entirely subjective in this case. The outcome will the largely the same with either method; your machine will not use hyperthreads. If you disable it in the BIOS then the OS will never see them. If you disable it via the tunable then the OS will never use them. The one benefit I can think of is that the tunable is easier to change remotely since you typically need console access to manage BIOS settings. As to whether this will help whatever network throughput issue you’re seeing (or if there could be a better way to approach that) I have no idea. JN