HT warning

This commit is contained in:
Andreas Abel
2021-11-12 16:46:23 +01:00
parent bcea7500f6
commit c44530c8d2
5 changed files with 25 additions and 21 deletions

View File

@@ -1,10 +1,9 @@
#!/usr/bin/env bash
if [ "$EUID" -ne 0 ]; then
echo "This script must be run as root" 1>&2
echo "This script must be run as root" >&2
echo "Try \"sudo ./enable-HT.sh\"" >&2
exit 1
fi
for cpu in /sys/devices/system/cpu/cpu[1-9]*; do
echo 1 > "$cpu/online"
done
echo on > /sys/devices/system/cpu/smt/control