Start process at boot with some niceness.
Dear all,
I want to boot my Debian Sid system such that after boot, my Xorg and plasma-desktop starts with -20 niceness and realtime ioniceness so that GUI becomes responsive for heavy load. How can I do that. Can anyone suggest where the Xorg and plasma-desktop startup file located so that I can change /usr/bin/X, /usr/bin/plasma-desktop written in those files to nice -n -20 /usr/bin/... Thanks. |
If the GUI becomes more responsive under heavy load, any processes it executes will become even less responsive.
|
You could always just use renice after-the-fact.
|
Quote:
|
Who said anything about doing it manually? Just stick it in one of the startup scripts and you're done.
|
It depends on your distribution.
Changing the nice value can/will muck up your system fairly easily. If your distribution uses systemd for startup, it also will only screw up the user. The problem is making the X server run with a lower priority than those applications using it. This can cause a priority inversion lockup. USUALLY this can be broken as any process hogging the server will eventually wait on the server... But even then, the X server will respond to it (and the other processes), but once it grabs the cpu again, the X server can get locked out - especially if that process is compute bound. Under systemd nice values only affect the processes within a cgroup. They don't alter priorities between cgroups. |
All times are GMT -5. The time now is 08:19 PM. |