Howto View and Limit Process CPU usage in Ubuntu Linux

This post was written by admin on September 17, 2009
Posted Under: General

For ubuntu users, we may want to get the process informations and limit the CPU usage of a process whenever we want.
Launch System Monitor from System->Administration->System Monitor.At Processes tab,you can see all processes and details.
process
You can also use this command to view processes details:

top

or

ps aux

And if you want to limit cpu usage of a process,first install cpulimit with this command:

sudo aptitude install cpulimit

Then,limit the process in following ways:
limit the process with its name to 35%:

cpulimit -e process_name -l 35

limit the process with its ID to 35%:

cpulimit -p ID_here -l 35

Related posts:

  1. View and Kill current processes on Ubuntu
  2. List of commands determine system info/resources/partitions/process in Ubuntu Linux
  3. Optimize the Usage of Swap to Speed up Response for Ubuntu
  4. Display CPU & Memory Usage on Ubuntu Panel/Unity with Indicator-Sysmonitor
  5. All manner of Shut down modes in Ubuntu Linux

    Tags:

    Reader Comments

    Hello! Sorry klooper appropriate for my english jer, buti danged nice re say gJ$)Kd!!!.

    [Reply]

    #1 
    Written By erafsmimi on September 29th, 2009 @ 7:45 am

    WYTCk6 I want to say – thank you for this!

    [Reply]

    #2 
    Written By lilikindsli on October 1st, 2009 @ 6:19 am

    Hi! Repentant klooper in F7*&%^! home of my english jer, buti very enjoyable re suggest .

    [Reply]

    #3 
    Written By endaggegE on October 4th, 2009 @ 7:51 pm

    Of course,you can.Just gives original text link,thanks~!

    [Reply]

    #4 
    Written By admin on December 25th, 2009 @ 5:28 am

    I take it this is on a one time basis. How can one limit cpu use for an application permanently?

    [Reply]

    #5 
    Written By ethnopunk on January 3rd, 2010 @ 8:41 am

    yes i need also this think

    [Reply]

    #6 
    Written By vbur on June 14th, 2011 @ 12:42 am

    Hey, this is very useful for a linux newbie such as myself. Thanks!

    [Reply]

    #7 
    Written By frame 2011 on June 16th, 2011 @ 3:48 am

    I use “htop” http://htop.sourceforge.net/ for this.

    [Reply]

    #8 
    Written By Ikem on November 10th, 2011 @ 2:34 am

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address