mirror of
https://github.com/andreas-abel/nanoBench.git
synced 2025-07-20 22:51:03 +02:00
10 lines
201 B
Bash
Executable File
10 lines
201 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ "$EUID" -ne 0 ]; then
|
|
echo "This script must be run as root" >&2
|
|
echo "Try \"sudo ./disable-HT.sh\"" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo off > /sys/devices/system/cpu/smt/control
|