Skip to content

AlixBernard/cpu-cli-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpu-cli-controller

Control linux CPUs via the CLI.

Description

Cores can be:

  • activated
  • deactivated
  • shown (status 1 means on, status 0 means off)

The information is displayed in the format:

<CORE>  <STATUS>  [COMMENT]

The cores are detected by finding the directories of the form /sys/devices/system/cpu/cpu<n>, where <n> is a positive integer. To activate (resp. deactivate) them, it sets /sys/devices/system/cpu/cpu<n>/online to 1 (resp. 0). The cpu0 cannot be deactivated.

Installation

Cargo

cargo install --locked cpu-cli-controller

Arch

yay -S cpu-cli-controller  # Or use any other AUR helper

Similar tools