Debian nice value

Moderators: Site Moderators, FAHC Science Team

Post Reply
rtl3
Posts: 2
Joined: Tue Jun 16, 2020 7:24 am

Debian nice value

Post 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.
PantherX
Site Moderator
Posts: 6986
Joined: Wed Dec 23, 2009 9:33 am
Hardware configuration: V7.6.21 -> Multi-purpose 24/7
Windows 10 64-bit
CPU:2/3/4/6 -> Intel i7-6700K
GPU:1 -> Nvidia GTX 1080 Ti
§
Retired:
2x Nvidia GTX 1070
Nvidia GTX 675M
Nvidia GTX 660 Ti
Nvidia GTX 650 SC
Nvidia GTX 260 896 MB SOC
Nvidia 9600GT 1 GB OC
Nvidia 9500M GS
Nvidia 8800GTS 320 MB

Intel Core i7-860
Intel Core i7-3840QM
Intel i3-3240
Intel Core 2 Duo E8200
Intel Core 2 Duo E6550
Intel Core 2 Duo T8300
Intel Pentium E5500
Intel Pentium E5400
Location: Land Of The Long White Cloud
Contact:

Re: Debian nice value

Post 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.
ETA:
Now ↞ Very Soon ↔ Soon ↔ Soon-ish ↔ Not Soon ↠ End Of Time

Welcome To The F@H Support Forum Ӂ Troubleshooting Bad WUs Ӂ Troubleshooting Server Connectivity Issues
rtl3
Posts: 2
Joined: Tue Jun 16, 2020 7:24 am

Re: Debian nice value

Post 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
JimboPalmer
Posts: 2522
Joined: Mon Feb 16, 2009 4:12 am
Location: Greenwood MS USA

Re: Debian nice value

Post 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.
Tsar of all the Rushers
I tried to remain childlike, all I achieved was childish.
A friend to those who want no friends
Post Reply