Commit 9ad1f7ff 9ad1f7ff6da3d8c69481f0c79608bf42182ec417 by Christian Gerdes

Add new file

1 parent ec89e787
Showing 1 changed file with 24 additions and 0 deletions
# PILOOP
Linux/Unix command to calculate pi in a forever loop, thereby using the CPU
cores of the machine. You need to specify the number of concurrent threads, and
optionally the priority of the process by specifying a nice value to add.
## Syntax
piloop <n> <p>
Where
<n> The number of concurrent threads to run
<p> The priority of the process (added to the default nice value of 0)
On most systems root privileges are needed to change the process nice value.
Set number of threads to the same number as logical cpus in order to load all
cpus on the machine.
Set the nice value to 20 to run the process with the lowest possible priority.
This will effectly replace the idle process on the machine. If the number of
threads is set to the number of logical cpus, the server will always use all
cpus 100% but still perform as normal (since all other processes have higher
priority). If this is run on a virtual machine, the hypervisor will think the
server always needs all available cpu resources given to the machine, minimizing
the risk of letting the hypervisor think that cpu resources can be shared.
\ No newline at end of file