Page 1 of 1

Debian nice value

Posted: Tue Jun 16, 2020 7:35 am
by rtl3
hi,
linux debian buster here.
is there a way to start the program with a certain nice value ?
with

Code: Select all

/etc/init.d/FAHClient start
you can start the service. okay

but where i write in a nice value (e.g. -14) in the file ? or is it the right file.
And no, i dont want to change the value, when the service is already running. i want it from the start with an nice value.

greets g.

Re: Debian nice value

Posted: Tue Jun 16, 2020 8:06 am
by PantherX
Welcome to the F@H Forum rtl3,

Just wondering what your use-case is to change the nice value?

By default, the client uses either idle or low priority so it generally doesn't have an impact on most processes/applications running on the system.

Re: Debian nice value

Posted: Tue Jun 16, 2020 8:30 am
by rtl3
The use case is to get maximum ressources to FAHClient.
its an old laptop and i want to squeeze every ounce out of it.
dont worry...there is only the FAHClient running on the laptop. nothing else.

and so i want to start the FAHClient with an nice value of -15 for instance

Re: Debian nice value

Posted: Tue Jun 16, 2020 8:56 am
by JimboPalmer
If only one process is running, it gets all the instructions. Nice does not run NOPs to prevent a Process from using all the CPU. It just prioritizes Processes that want to run.

https://en.wikipedia.org/wiki/Nice_(Unix)

To give F@H more CPU time, run fewer processes.