Skip to content

A simple script to manage hyperthreading functionality on Linux-based operating systems by setting hyperthreaded cores offline or online.

Notifications You must be signed in to change notification settings

seelam/Manage_Hyperthreading.sh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Manage_Hyperthreading.sh

Manage_Hyperthreading.sh is a simple script to manage the Intel Hyper-Thread technology on some Intel CPUs.

This script parses both information in /sys/devices/system/cpu and lscpu to determine which cores are hyperthreaded, and to online or offline them.

This script works with certain* Google Compute Engine instances, and should work with most other cloud providers and other Intel Hyper-Thread enabled systems.

You must run this script as root, and the script will not run if not run as root or under sudo.

* NOTE: This script is not supported at all. It is not official Google code. Only select Google Compute Engine instances support disabling hyper-threads as of Jan 1, 2019. These are: n1-ultramem, and C2 instances.

Usage

./manage_hyperthreading.sh [OPTIONS]
	OPTIONS
	-d | --disable		Disable Hyper-Threaded vCPUs
	-e | --enable		Enable Hyper-Threaded vCPUs
	-s | --show		Show Hyper-Threading status
	-h | --help		Display this usage output

About

A simple script to manage hyperthreading functionality on Linux-based operating systems by setting hyperthreaded cores offline or online.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%