Associate
- Joined
- 9 Mar 2008
- Posts
- 1,039
Hi,
Im pretty new to linux and I want to be able to change the priority of a process so that it executes above all else - i dont really care if it slows desktop performance or chokes other programs, like changing the priority in windows to 'high'. If its any help, i am using Ubuntu 8.04.1 server with the GNOME gui. Googling reveals the nice commands can be used. I have tried using the following as root to change the priority to the highest possible:
sudo su -
renice -19 <process PID>
This sets the nice value of the process to -19 (and according to the readout from the 'top' command sets its 'PR' value to 1), but using other apps/general desktop input really slows the process im interested in down. Changing the priority in the system manager does nothing as far as i can make out. Is there a way around this? As i said, i dont mind at all if it really chokes desktop performance. Im sure there must be a way to do it, but i cannot work out what it is!
Thanks, any help/advice is appreciated.
Im pretty new to linux and I want to be able to change the priority of a process so that it executes above all else - i dont really care if it slows desktop performance or chokes other programs, like changing the priority in windows to 'high'. If its any help, i am using Ubuntu 8.04.1 server with the GNOME gui. Googling reveals the nice commands can be used. I have tried using the following as root to change the priority to the highest possible:
sudo su -
renice -19 <process PID>
This sets the nice value of the process to -19 (and according to the readout from the 'top' command sets its 'PR' value to 1), but using other apps/general desktop input really slows the process im interested in down. Changing the priority in the system manager does nothing as far as i can make out. Is there a way around this? As i said, i dont mind at all if it really chokes desktop performance. Im sure there must be a way to do it, but i cannot work out what it is!
Thanks, any help/advice is appreciated.
. I would like to be able to use it for web access, reading pdfs etc (nothing intensive), and i fully understand that this would degrade the performance of the clients. The desktop also makes it a lot easier to monitor whats happening with the clients. However, it spends most of its time 'inactive', pretty much just siting there (so the desktop should be doing nothing). At this point i would be happy for it to use all of the resources available, and make the desktop unusable, but this does not happen, despite setting the nice values to -19. I was under the impression that with such a high priority, even when i wanted to use the desktop i would be unable to, but this does not seem to hold true, nor does changing the nice value seem to have any impact on how the scheduler distributes the load. If any of this is wrong, please say so - i quite like linux, but it just seems a little impractical at the moment!