Last active
December 3, 2023 01:04
-
-
Save vsoch/467467cacf32bdc2303af5e3534311b8 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
for cpunum in $(cat /sys/devices/system/cpu/cpu*/topology/thread_siblings_list | cut -s -d, -f2- | tr ',' '\n' | sort -un) | |
do | |
echo 0 > /sys/devices/system/cpu/cpu$cpunum/online | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment