Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Christian Gerdes
/
piloop
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
9ad1f7ff
...
9ad1f7ff6da3d8c69481f0c79608bf42182ec417
authored
2017-08-30 16:40:34 +0000
by
Christian Gerdes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add new file
1 parent
ec89e787
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
README.md
README.md
0 → 100644
View file @
9ad1f7f
# 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
Please
register
or
sign in
to post a comment