LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   nice / renice problem (https://www.linuxquestions.org/questions/linux-software-2/nice-renice-problem-364023/)

g-string 3 09-16-2005 04:17 PM

nice / renice problem
 
hello,
another time here comes a nice/renice request (the other threads do not fit very well)!
Like all the other people who start a nice/renice thread I have an application running which eats way too much cpu power.
At the same time I want to play a game. This is not possible simultaneously because it results in a jerky gameplay.

I want to have the application running in an "idle" mode using only free cpu power.
It would be best not to raise the priority of the game but lower the priority of the application, wouldn't it be?


First I tried:

1)"top" to get the PID

2) renice -n 5 PID
renice: 5: getpriority: no process found
PID (number): old priority: 0, new priority: 0

3) sudo nice -n -19 gamename
but the game was still jerky, what to do?


What can I do?

Tinkster 09-16-2005 04:35 PM

Re: nice / renice problem
 
Quote:

Originally posted by g-string 3

1)"top" to get the PID

2) renice -n 5 PID
renice: 5: getpriority: no process found
PID (number): old priority: 0, new priority: 0


Try
renice -5 <PID>

Alternatively you could use
snice +5 <processname>


Cheers,
Tink

g-string 3 09-16-2005 04:53 PM

renice -5 <PID>

WORKS. thanks.


All times are GMT -5. The time now is 04:55 AM.