LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-16-2005, 05:17 PM   #1
g-string 3
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153

Rep: Reputation: 30
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?
 
Old 09-16-2005, 05:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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
 
Old 09-16-2005, 05:53 PM   #3
g-string 3
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153

Original Poster
Rep: Reputation: 30
renice -5 <PID>

WORKS. thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nice / renice question Grobbendonk Linux - Newbie 5 08-13-2005 05:05 PM
nice/renice crashes programs make Mandriva 1 04-20-2005 04:03 AM
nice and renice (question) podollb Linux - Software 7 10-19-2004 01:10 PM
Nice and Renice KnightAzul Linux - General 1 09-17-2003 12:59 PM
"nice" vs "renice" Poetics Linux - Newbie 2 07-03-2003 05:20 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration