"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...
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.-yor--yesansweryesto all questions (to validate use of realtime scheduling for example).
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.
cpuhog: Christophe BLAESS (https://github.com/cpb-/)- Cpuhog logo: Illustration generated by ChatGPT (OpenAI), using DALL-E.