mirror of
https://github.com/andreas-abel/nanoBench.git
synced 2025-12-16 03:20:08 +01:00
HT warning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user