Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```