Last active
January 30, 2020 11:32
-
-
Save johanburati/5577f4f61015b1a3b887946057c40afc to your computer and use it in GitHub Desktop.
Disable hyperthreading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for cpu in $(cat /sys/devices/system/cpu/cpu*/topology/thread_siblings_list) | |
do | |
echo 0 > /sys/devices/system/cpu/cpu${cpu}/online | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment