I recommend this only be done on homelab/segmented hardware. This will make your host vulnerable to these exploits.
Depending on your CPU generation, you can regain 20-30% performance.
- SSH to ESXI Host
vi /etc/vmware/config
- add the line:
Version 1 (Spectrev4/Meltdown/Spectre)
cpuid.7.edx = "0---:00--:----:----:----:----:----:----"
Version 2 (Spectre only)
cpuid.7.edx = "0---:----:----:----:----:----:----:----"
- Run
/sbin/auto-backup.sh
to ensure config is re-applied on boot
-
SSH to ESXI Host
-
Check settings
esxcli system settings kernel list -o hyperthreadingMitigation esxcli system settings kernel list -o hyperthreadingMitigationIntraVM
-
Enable v2 Scheduler (90-100% of performance):
esxcli system settings kernel set -s hyperthreadingMitigation -v TRUE esxcli system settings kernel set -s hyperthreadingMitigationIntraVM -v FALSE
Option B (fully disabled, 100% perf):
esxcli system settings kernel set -s hyperthreadingMitigation -v FALSE
esxcli system settings kernel set -s hyperthreadingMitigationIntraVM -v FALSE