Crates.io | lookbusy |
lib.rs | lookbusy |
version | 0.2.6 |
source | src |
created_at | 2022-11-30 01:00:10.78622 |
updated_at | 2024-04-12 11:56:33.547745 |
description | You are busy. |
homepage | |
repository | https://github.com/tusik/lookbusy-rs |
max_upload_size | |
id | 725819 |
size | 1,105,407 |
This is a program can be set to eat you cpu and memory resource.
cargo install lookbusy
USAGE:
lookbusy [OPTIONS]
OPTIONS:
-c, --cpu-num <CPU_NUM> how many cpu thread you want use [default: 1]
-C, --config <CONFIG> precise control cpu core usage 0/1,3/1,5/1 core0,3,5 use 100% cpu
-h, --help Print help information
-l, --limit <LIMIT> cpu usage per thread % [default: 1]
-L, --log-path <LOG_PATH> fake log print
-m, --mem-size <MEM_SIZE> how many MB you want use [default: 1024]
-V, --version Print version information
[Core index] / [Cpu Usage Limit] / [Cpu Jitter]
Example:
0/0.5/0.5,4/1
core 0, Cpu 50% and with 50% jitter, so 0%-50% in core0.
core 4, Cpu 100%, 100% in core4.
Just like ./lookbusy -c 2 -m 4096