I love you, but do not stop my machine, could you?
To non-Chinese users:
Thank you for liking this program! :-P
I invented this to share among my Chinese friends at first, but I didn't expect it to become popular in the world.
Also, I'm sorry for the late official English README! Now just enjoy it. :-D
If you need help, Google first, and then go to the issue. I speak Chinese and English. For other languages, please translate before asking questions. :)
Download executable file from Release. Note the distinction between amd64 and arm64.
Start a screen on the server and run it. If you want to learn about screen command, just Google.
Command arguments:
./NeverIdle -cp 0.15 -m 2 -n 4h
In which:
-c enables CPU periodic waste, followed by the interval between wastes.
E.g. waste CPU every 12 hours 23 minutes and 34 seconds, then the argument would be -c 12h23m34s
.
Just follow this template.
-cp enables coarse-grained CPU percentage waste, and the waste rate will change in real time with the usage level of the machine.
If the maximum waste of 20% of the CPU is -cp 0.2
. The value range of percentage is [0, 1] and be careful not to use it with -c
.
-m enables memory waste, followed by a number in GiB.
After startup, the specified amount of memory will be occupied and will not be released until the process is killed.
-n enables network(bandwidth) periodic waste, followed by the interval between wastes.
Argument format is the same as -c
. The Ookla Speed Test will be performed periodically (and the results will be output!)
-t specifics the number of concurrent connections of the network periodic waste.
The default is 10. The larger the value, the more resources will be consumed. For most situations, it does not need to be changed.
-p specifics the process priority, followed by a priority value. If not specified, the lowest priority of the platform will be used by default.
For UNIX-like systems (such as Linux, FreeBSD, and macOS), the value range is [-20,19], and the higher the number, the lower the priority.
For Windows, see the official documentation.
It is recommended not to specify because the default is the lowest priority, making way for all other processes.
All the functions you configured will be executed once immediately when you start the program, so you can take a look at the effect.