在 FreeBSD 上打開 Hyperthreading 的方法

太久沒設定都忘了... 紀錄起來:

如果 dmesg 有看到 HTT 這個 flag,但是沒有看到多顆 CPU,那麼除了加上一般多 CPU 會用的 options SMP 以外,還要加上下面這行,然後 recompile kernel:

options MPTABLE_FORCE_HTT

接下來到 /etc/sysctl.conf 加上:

machdep.hyperthreading_allowed=1

重開機後理論上打 top 就可以看到了。

4 thoughts on “在 FreeBSD 上打開 Hyperthreading 的方法”

Leave a Reply

Your email address will not be published. Required fields are marked *