Skip to content
/ smt Public

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

License

Notifications You must be signed in to change notification settings

UwUnyaa/smt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages