Skip to content

cpb-/cpuhog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

CPUHOG

"When a hog proudly stomps on the cores of your processor."

cpuhog is a very simple command that runs buzy loops on the CPU cores indicated on command line.

This may seem silly, but it is useful when experimenting with scheduling, realtime, core isolation...

Options

A number of options may be used to configure the behaviour of the loops:

  • -c <list> or --core <list> indicates a list of cores to run loop. By default all cores are used. The comma-separated list may contain intervals. Ex: -c 1,3,6-8,11
  • -d <seconds> or --duration <seconds> limit the execution time of the loop. By default the duration is 60 seconds.
  • -f <prio> or --fifo <prio> run the loops under the FIFO realtime scheduling. Be careful, this may freeze your system.
  • -r <prio> or --rr <prio> run the loops under the RR (Round Robin) realtime scheduling. Be careful, this may freeze your system.
  • -y or --yes answer yes to all questions (to validate use of realtime scheduling for example).

Licenses

The source code and the afferent files of the cpuhog project are distributed under GPLv.2 license terms.

The present documention and the cpuhog logo are distributed under Creative Commons 4.0 CC-By-Sa.

Authors

  • cpuhog: Christophe BLAESS (https://github.com/cpb-/)
  • Cpuhog logo: Illustration generated by ChatGPT (OpenAI), using DALL-E.

About

When a hog proudly stomps on the cores of your processor...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published