cpu-cli-controller

Crates.iocpu-cli-controller
lib.rscpu-cli-controller
version0.3.0
sourcesrc
created_at2024-03-21 04:55:01.16011
updated_at2024-03-22 08:23:18.841765
descriptionA Linux CPU controller CLI tool
homepagehttps://github.com/AlixBernard/cpu-cli-controller
repositoryhttps://github.com/AlixBernard/cpu-cli-controller
max_upload_size
id1181204
size23,882
(AlixBernard)

documentation

README

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 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.

Similar tools

Commit count: 37

cargo fmt