Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/djmgit/cpuloadgen
A simple CPU load generation tool made from scratch in C
https://github.com/djmgit/cpuloadgen
Last synced: 27 days ago
JSON representation
A simple CPU load generation tool made from scratch in C
- Host: GitHub
- URL: https://github.com/djmgit/cpuloadgen
- Owner: djmgit
- Created: 2024-12-05T16:19:57.000Z (29 days ago)
- Default Branch: master
- Last Pushed: 2024-12-05T16:30:17.000Z (29 days ago)
- Last Synced: 2024-12-05T17:27:25.058Z (29 days ago)
- Language: C
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cpuloadgen
Cpuloadgen is a simple tool for CPU load generation on Linux written from scratch in C. It allows you to generate desired CPU utlisation by percentage for given time period on desired cores.
# Build
```
gcc cpuloadgen -o cpuloadgen -lm
```## Usage
Generate 80% load on all cores for 60s:
```
./cpuloadgen -t 60 -p 80
```Generate 80% load on core 0, 2 and 4 for60s
```
./cpuloadgen -t 60 -p 80 -c 0 -c 2 -c 4
```