Script to set the number of enabled cores on a linux machine.
Find a file
2024-05-26 20:39:43 +02:00
src init 2024-05-26 20:37:49 +02:00
.gitignore init 2024-05-26 20:37:49 +02:00
build.sh fix default deno permissions 2024-05-26 20:39:43 +02:00
deno.json init 2024-05-26 20:37:49 +02:00
deno.lock init 2024-05-26 20:37:49 +02:00
README.md init 2024-05-26 20:37:49 +02:00

setcores

Script to set the number of enabled cores on a linux machine.

Usage

./src/setcores.ts --help

# Usage: setcores [count] integer
# 
# Description:
# 
#   Sets the number of enabled cores to 'count' or just count enabled cores.
# 
# Options:
# 
#   -h, --help  - Show this help.
#   -l, --list  - Lists available cores and states.

Or build a portable binary :

./build.sh
./bin/setcores --help

# Usage: setcores [count] integer
# 
# Description:
# 
#   Sets the number of enabled cores to 'count' or just count enabled cores.
# 
# Options:
# 
#   -h, --help  - Show this help.
#   -l, --list  - Lists available cores and states.