UwUnyaa / smt

A GNU Bash script to disable and enable SMT on the fly. Will only work with the Linux kernel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smt - disable and enable SMT on the fly

This script provides a convenient way to disable and enable SMT (known as Hyper-Threading on Intel chips) on the fly. This allows to turn off SMT when desired to improve security on Intel chips (L1TF and MDS can’t be fully mitigated without disabling HT).

This script uses sysfs, and will work only with the Linux kernel. It’s written in GNU Bash, and uses nproc, which might not be available in non-GNU coreutils.

Installation

Put the smt file from this repository somewhere in your PATH. Since this script requires root access, you might want to setuid it.

Usage

smt [on|off]

About

A GNU Bash script to disable and enable SMT on the fly. Will only work with the Linux kernel

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%