2 unstable releases

0.3.0 Mar 22, 2024
0.2.0 Mar 21, 2024

#735 in Command line utilities

Download history 253/week @ 2024-03-18 8/week @ 2024-03-25 47/week @ 2024-04-01

308 downloads per month

MIT license

12KB
294 lines

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

Dependencies

~5–17MB
~214K SLoC