Crates.io | cpu-cli-controller |
lib.rs | cpu-cli-controller |
version | 0.3.0 |
source | src |
created_at | 2024-03-21 04:55:01.16011 |
updated_at | 2024-03-22 08:23:18.841765 |
description | A Linux CPU controller CLI tool |
homepage | https://github.com/AlixBernard/cpu-cli-controller |
repository | https://github.com/AlixBernard/cpu-cli-controller |
max_upload_size | |
id | 1181204 |
size | 23,882 |
Control linux CPUs via the CLI.
Cores can be:
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 /sys/devices/system/cpu/cpu<n>/online
to 1
(resp. 0
). The cpu0 cannot be deactivated.