Results 1 to 2 of 2

Thread: How to get cpu utilization from unix os

  1. #1
    Senior Member chiku's Avatar
    Join Date
    Feb 2005
    Posts
    103
    Thanks
    11
    Thanked 5 Times in 4 Posts
    Rep Power
    10

    Default How to get cpu utilization from unix os

    Ok,I need to display the utilization of each CPU individually as well as system's average CPU utilization since the last reboot

    How do I find out all this info?

    TIA
    There's no place like 127.0.0.1

  2. #2
    Senior Member monk's Avatar
    Join Date
    Jan 2005
    Location
    Tibet
    Posts
    643
    Thanks
    5
    Thanked 43 Times in 38 Posts
    Rep Power
    15

    Default

    Use top and ps commands.

    Code:
    top
    Display the process utilizing the most cpu and quits to sh:
    Code:
    top -b 1
    Display CPU Utilization:
    Code:
    sar -u
    And use ps to display processes with the highest CPU utilization
    Code:
    ps -eo pid,pcpu,args | sort +1n
    Read man pages of each of the above commands to get more details and supported options.

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •