Skip to content

Monday, November 30th, 2009

New Linux User

HOWTO: Change a Running Processes’ Priority with Renice

May 16, 2006 by Jon  
Filed under How To

You can change the default priority that an application runs with by starting it with the nice command, but if you want to change the priority of a process that is already running, the command to use is renice.

Renice can be used to change the priority of a single process, or of all the processes owned by a specified user. As with the nice command, the priority values range from -20 to +19 and negative numbers raise the priority of a task while positive numbers lower it. Only the superuser can specify negative numbers (thus raising the priority of a process).

renice 5 some_process

This command will change the priority of some_process to 5.

renice -5 -u jon

will change the priority of all processes owned by user jon to -5.

renice -5 -u jon -p 588

will chance the priority of all processes owned by jon and process with PID 588 to -5.

  • StumbleUpon
  • Digg
  • Facebook
  • Mixx
  • Google
  • TwitThis
  • Reddit
  • Yahoo! Buzz
  • Slashdot
  • E-mail this story to a friend!

Comments

4 Responses to “HOWTO: Change a Running Processes’ Priority with Renice”
  1. mzulqarnain says:

    it is a realy nice reference of nice command thanks you Mr.Jon and site owner(i mean it).

  2. Jon says:

    Glad you liked it. Thanks!

    Jon

Trackbacks

Check out what others are saying about this post...
  1. New Linux User…

    New Linux User

    This is a great reference! I’m posting it so I can come back to it.

    ……



Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!


About Us | Advertise with us | Blog for EveryJoe | Privacy Policy | Terms of Use
Get This Theme | Sitemap


All content is Copyright © 2005-2009 b5media. All rights reserved.