Add new file
Showing
1 changed file
with
24 additions
and
0 deletions
README.md
0 → 100644
| 1 | # PILOOP | ||
| 2 | Linux/Unix command to calculate pi in a forever loop, thereby using the CPU | ||
| 3 | cores of the machine. You need to specify the number of concurrent threads, and | ||
| 4 | optionally the priority of the process by specifying a nice value to add. | ||
| 5 | |||
| 6 | ## Syntax | ||
| 7 | piloop <n> <p> | ||
| 8 | |||
| 9 | Where | ||
| 10 | <n> The number of concurrent threads to run | ||
| 11 | <p> The priority of the process (added to the default nice value of 0) | ||
| 12 | |||
| 13 | On most systems root privileges are needed to change the process nice value. | ||
| 14 | |||
| 15 | Set number of threads to the same number as logical cpus in order to load all | ||
| 16 | cpus on the machine. | ||
| 17 | |||
| 18 | Set the nice value to 20 to run the process with the lowest possible priority. | ||
| 19 | This will effectly replace the idle process on the machine. If the number of | ||
| 20 | threads is set to the number of logical cpus, the server will always use all | ||
| 21 | cpus 100% but still perform as normal (since all other processes have higher | ||
| 22 | priority). If this is run on a virtual machine, the hypervisor will think the | ||
| 23 | server always needs all available cpu resources given to the machine, minimizing | ||
| 24 | the risk of letting the hypervisor think that cpu resources can be shared. | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment