LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
::Linux Guide
::Tips
::Connections
::Alternatives
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: New Users :: Beginners Linux Guide :: Giving an application more processing time

I often find myself encoding Mp3's, or playing a seriously powerful game such as Quake II on my machine, and due to my machines relativly weak architecture, it would be nice to get my machine to use all of its processing power (Or as much as it can spare), on a continuous basis for one app alone.

There is an app that can be run from the command line, or an rxvt, which allows you to set up the priority of an app on a scale of -20 (Highest Priority), to +20 (Lowest Priority). A 0 on this scale is normal priority which most apps run at when run.

The first thing you need to do is find out what PID (Process ID) an application has. Everytime an application is executed, it is given a PID so that you can kill it if it hangs (Crashes), or pass information to the program. The command ps will list every process you have running, from your login at bootup to the very command you just used, ie: ps. At the very left of the column is the PID number for every application running on your machine. Simply find the name of the app, and crosscheck it with the PID - Once found, make a note of it.

From the command line, or an rxvt, type in renice . So for example, if I had bladeenc running, at PID 457, and I wanted it to have the highest priority, I would enter the following command -> renice -20 457.

Try having a look at the man files for ps and renice. From the command line, just type in "man ps", and "man renice". You would be suprised at the amount of information that is of help there.




You may find the following helpful:
Using the ps command.


About the author, Owen Kelly.

USERS COMMENTS


                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell