#control

app lookbusy

You are busy

6 releases

0.2.6 Apr 12, 2024
0.2.5 Feb 19, 2024
0.2.3 Mar 22, 2023
0.2.2 Dec 11, 2022
0.1.0 Nov 30, 2022

#58 in #control

33 downloads per month

Apache-2.0

1MB
202 lines

Lookbusy - make your PC busy

crates.ioCrates.ioCrates.ioCrates.io

This is a program can be set to eat you cpu and memory resource.

feature

  • precise control cpu core usage 0/1,3/1,5/1 core0,3,5 use 100% cpu
  • fake log print
  • cpu usage per core

screenshot

Platform

  • Windows
    • x86 & x64 [OK]
  • Linux
    • x86 & x64 [OK]
    • arm64 [OK]
  • MacOS
    • x86 & x64 [OK]
    • M serial [core control not work]

Install

cargo install lookbusy

How to use

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

Config details

[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

Dependencies

~5–12MB
~155K SLoC