How Do I Find Out Linux CPU Utilization?

Whenever a Linux system CPU is occupied by a process, it is unavailable for processing other requests. Rest of pending requests must wait until the CPU is free. This becomes a bottleneck in the system. Following command will help you to identify CPU utilization, so that you can troubleshoot CPU-related performance problems on a Linux-based system. This page explains how to check Linux CPU utilization and usage using various tools.

Finding CPU utilization is one of the important tasks. Linux comes with various utilities to report CPU utilization. With these commands, you will be able to find out:

  1. CPU utilization
  2. Display the utilization of each CPU individually (SMP cpu)
  3. Find out your system’s average CPU utilization since the last system reboot
  4. Determine which process is eating the CPU(s)

The old good top command to find out Linux CPU Utilization

The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of tasks currently being managed by the Linux kernel. The top command monitors CPU utilization, process statistics, and memory utilization. The top section contains information related to overall system status – uptime, load average, process counts, CPU status, and utilization statistics for both memory and swap space.

Top command to find out Linux cpu usage

Type the top command:
$ top

top command in action on my Linux box
Fig.01: top command in action (click to enlarge)

You can see Linux CPU utilization under CPU statistics. The task’s share of the elapsed CPU time since the last screen update, expressed as a percentage of total CPU time. In a true SMP environment (multiple CPUS), top will operate in number of CPUs. Please note that you need to type q key to exit the top command display. The top command produces a frequently updated list of processes. By default, the processes are ordered by percentage of CPU usage, with only the “top” CPU consumers shown. The top command shows how much processing power and memory are being used, as well as other information about the running processes.

Say hello to htop

htop is similar to top command but allows you to scroll vertically and horizontally and much more.

Find Linux CPU utilization using mpstat and other tools

Please note that you need to install a special package called sysstat to take advantage of following commands. This package includes system performance tools for Linux (Red Hat Linux / RHEL includes these tools by default). Install it on a Debian or Ubuntu Linux using apt-get command/apt command:
# apt-get install sysstat
Use up2date command if you are using RHEL/CentOS Linux v4.x or older:
# up2date install sysstat
Run yum command command if you are using a CentOS/RHEL/Oracle Linux v5.x+ or newer:
# yum install sysstat
Fedora users should run the dnf command:
# dnf install sysstat
How to find out CPU utilization in Linux

Display the utilization of each CPU individually using mpstat

If you are using SMP (Multiple CPU) system, use mpstat command to display the utilization of each CPU individually. It report processors related statistics. For example, type command:
# mpstat
Sample outputs:

Linux (debian)         Thursday 06 April 2006
05:13:05  IST  CPU   %user   %nice    %sys %iowait    %irq   %soft  %steal   %idle    intr/s
05:13:05  IST  all   16.52    0.00    2.87    1.09    0.07    0.02    0.00   79.42    830.06

The mpstat command display activities for each available processor, processor 0 being the first one. Global average activities among all processors are also reported. The mpstat command can be used both on SMP and UP machines, but in the latter, only global average activities will be printed.:
# mpstat -P ALL
Sample outputs:

Linux (         Thursday 06 April 2006
05:14:58  IST  CPU   %user   %nice    %sys %iowait    %irq   %soft  %steal   %idle    intr/s
05:14:58  IST  all   16.46    0.00    2.88    1.08    0.07    0.02    0.00   79.48    835.96
05:14:58  IST    0   16.46    0.00    2.88    1.08    0.07    0.02    0.00   79.48    835.96
05:14:58  IST    1   15.77    2.70    3.17    2.01    0.05    0.03    0.00   81.44    822.54

Another output from my Ubuntu 18.04 LTS server:
How to Check CPU Utilization in Linux with Command Line

Report CPU utilization using the sar command

You can display today’s CPU activity, with the help of sar command:
# sar

Linux 2.6.9-42.0.3.ELsmp (         01/13/2007

12:00:02 AM       CPU     %user     %nice   %system   %iowait     %idle
12:10:01 AM       all      1.05      0.00      0.28      0.04     98.64
12:20:01 AM       all      0.74      0.00      0.34      0.38     98.54
12:30:02 AM       all      1.09      0.00      0.28      0.10     98.53
12:40:01 AM       all      0.76      0.00      0.21      0.03     99.00
12:50:01 AM       all      1.25      0.00      0.32      0.03     98.40
01:00:01 AM       all      0.80      0.00      0.24      0.03     98.92
04:40:01 AM       all      8.39      0.00     33.17      0.06     58.38
04:50:01 AM       all      8.68      0.00     37.51      0.04     53.78
05:00:01 AM       all      7.10      0.00     30.48      0.04     62.39
05:10:01 AM       all      8.78      0.00     37.74      0.03     53.44
05:20:02 AM       all      8.30      0.00     35.45      0.06     56.18
Average:          all      3.09      0.00      9.14      0.09     87.68

Related: How To Create sar Graphs With kSar To Identifying Linux Bottlenecks

Comparison of CPU utilization

The sar command writes to standard output the contents of selected cumulative activity counters in the operating system. The accounting system, based on the values in the count and interval parameters. For example display comparison of CPU utilization; 2 seconds apart; 5 times, use:
# sar -u 2 5
Output (for each 2 seconds. 5 lines are displayed):

Linux 2.6.9-42.0.3.ELsmp (         01/13/2007

05:33:24 AM       CPU     %user     %nice   %system   %iowait     %idle
05:33:26 AM       all      9.50      0.00     49.00      0.00     41.50
05:33:28 AM       all     16.79      0.00     74.69      0.00      8.52
05:33:30 AM       all     17.21      0.00     80.30      0.00      2.49
05:33:32 AM       all     16.75      0.00     81.00      0.00      2.25
05:33:34 AM       all     14.29      0.00     72.43      0.00     13.28
Average:          all     14.91      0.00     71.49      0.00     13.61


  • -u 12 5 : Report CPU utilization. The following values are displayed:
    • %user: Percentage of CPU utilization that occurred while executing at the user level (application).
    • %nice: Percentage of CPU utilization that occurred while executing at the user level with nice priority.
    • %system: Percentage of CPU utilization that occurred while executing at the system level (kernel).
    • %iowait: Percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request.
    • %idle: Percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request.

To get multiple samples and multiple reports set an output file for the sar command. Run the sar command as a background process using.
# sar -o output.file 12 8 >/dev/null 2>&1 &
Better use nohup command so that you can logout and check back report later on:
# nohup sar -o output.file 12 8 >/dev/null 2>&1 &

All data is captured in binary form and saved to a file (data.file). The data can then be selectively displayed ith the sar command using the -f option.
# sar -f data.file

Task: Find out who is monopolizing or eating the CPUs

Finally, you need to determine which process is monopolizing or eating the CPUs. Following command will displays the top 10 CPU users on the Linux system.
# ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10
# ps -eo pcpu,pid,user,args | sort -r -k1 | less
Sample outputs:

  96  2148 vivek    /usr/lib/vmware/bin/vmware-vmx -C /var/lib/vmware/Virtual Machines/Ubuntu 64-bit/Ubuntu 64-bit.vmx -@ ""
 0.7  3358 mysql    /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/ --skip-locking --socket=/var/lib/mysql/mysql.sock
 0.4 29129 lighttpd /usr/bin/php
 0.4 29128 lighttpd /usr/bin/php
 0.4 29127 lighttpd /usr/bin/php
 0.4 29126 lighttpd /usr/bin/php
 0.2  2177 vivek    [vmware-rtc]
 0.0     9 root     [kacpid]
 0.0     8 root     [khelper]

Now you know vmware-vmx process is eating up lots of CPU power. The ps command command displays every process (-e) with a user-defined format (-o pcpu). First field is pcpu (cpu utilization). It is sorted in reverse order to display top 10 CPU eating process.

iostat command

You can also use iostat command which report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions. It can be use to find out your system’s average CPU utilization since the last reboot.
# iostatOutput:

Linux (debian)         Thursday 06 April 2006

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
     16.36    0.00    2.99    1.06    0.00   79.59

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
hda               0.00         0.00         0.00         16          0
hdb               6.43        85.57       166.74     875340    1705664
hdc               0.03         0.16         0.00       1644          0
sda               0.00         0.00         0.00         24          0 

You may want to use following command, which gives you three outputs every 5 seconds (as previous command gives information since the last reboot):$ iostat -xtc 5 3

vmstat command

The vmstat command shows information about processes, memory, paging, block IO, traps, disks and cpu activity. Run vmstat as follows:
vmstat [options] vmstat [interval] [count]

Sample outputs:

procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 1  0      0 20786744  73796 5917824    0    0     9    34   70   97  6  2 91  0  0

In this example, run vmstat with an interval of one second twenty one times:
vmstat 1 21
How to use vmstat to monitor Linux CPU and system performance

How to interpret vmstat CPU section output

These are percentages of total CPU time.

  1. us : Time spent running non-kernel code. (user time, including nice time)
  2. sy : Time spent running kernel code. (system time)
  3. id : Time spent idle.
  4. wa : Time spent waiting for IO.
  5. st : Time stolen from a virtual machine.

turbostat command

The turbostat command shows processor topology, frequency, idle power-state statistics, temperature and power on X86 processors. Simply run as follows:
sudo turbostat
sudo turbostat 5

See turbostat man page for further details.

nmon command

nmon is a systems administrator tool to get information about cpu, top process, memory and much more. One can install it as follows:
sudo apt install nmon ## Debain/ubuntu ##
sudo dnf install nmon ## fedora ##
sudo yum install nmon ## centos/rhel ##

Now start it:

GUI tools for your laptops/desktops

Above tools/commands are quite useful on remote server. For local system with X GUI installed you can try out gnome-system-monitor. It allows you to view and control the processes running on your system. You can access detailed memory maps, send signals, and terminate the processes.
$ gnome-system-monitor
Sample outputs:
gnome-system-monitor - view and control the processes
In addition, the gnome-system-monitor provides an overall view of the resource usage on your system, including memory and CPU allocation:
gnome-system-monitor - view and control the processes

Find Out Linux CPU Utilization using Gnome GUI tool

Finding out Linux CPU usage using GUI tool


This page explained various Linux command line tools that we can use to find Linux CPU utilization. For further information, see the following resources:

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 153 comments so far... add one
CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
153 comments… add one
  • Yuchi Apr 7, 2006 @ 12:48

    Sounds interesting

  • Anonymous Apr 7, 2006 @ 13:05

    Never knew the mpstat command. Thanks for post. You got kick ass info 😀

  • Anonymous Jul 27, 2006 @ 19:09

    So you have 4 processors shown on your dual opteron machine which means that 2 of them are virtual. How do youfilter these out when you want to see only raw info on real processor utilization?



  • Anonymous Jul 27, 2006 @ 19:14

    I need to explain better i think:
    so i have 4 processors and what if only 2 are working and i still see 4 because of additional virtual processors? How do i check that? Plz answer its really important to me.

    Thanks in advance,


  • 🐧 nixcraft Jul 28, 2006 @ 4:40

    If cpu entry not present in /proc/interrupts file your cpu is offline or not working for some causes:
    less /proc/interrupts

    You can also goto directory /sys/devices/system/cpu (note following commands needs special configuration option via kernel. If it is not complied it will not work for you):
    cd /sys/devices/system/cpu

    Type ls command to see all cpus

    cpu0 cpu1 cpu2 cpu3 cpu4 cpu5 cpu6 cpu7

    Inside this directory you will see entry for online or offline CPU

    Hope this helps

  • Ashok Nov 7, 2006 @ 22:11

    Thanks for the commands – i really could use the iostat command and get some answers.. Thanks Again !! 🙂

  • 🐧 nixCraft Nov 8, 2006 @ 8:58


    I am glad – commands and help presented here helping out.

    Appreciate your post.

  • chadi Dec 29, 2006 @ 9:18

    hi all i have a prob i use top and i have mysql has a %cpu 99.5 and i use mpstat but i have not the same results why with us and sy and ni
    i have smp linux rehl3

  • 🐧 nixCraft Dec 29, 2006 @ 10:47

    MySQL is generally use more disk i/o; use iostat to get detailed information. You need to optimize mysql and also get fast SCSI hard disk.

  • Planet Malaysia Jan 15, 2007 @ 5:38

    Yeah! Now I know new command “mpstat”

  • Pádraig Brady Jan 15, 2007 @ 9:59

    This is the command I use to see who’s using CPU:

    ps -e -o pcpu,cpu,nice,state,cputime,args –sort pcpu | sed ‘/^ 0.0 /d’

    That and more here:

  • 🐧 nixCraft Jan 15, 2007 @ 11:35


    Good syntax, just to list top 10, sorting should be -pcpu and pipe to head -10

    ps -e -o pcpu,cpu,nice,state,cputime,args –sort -pcpu | sed ‘/^ 0.0 /d’ | head -10

    Appreciate your post.

    • ravi Apr 19, 2012 @ 3:55

      [root@uatserver topology]# ps -e -o pcpu,cpu,nice,state,cputime,args -sort -pcpu | sed ‘/^ 0.0 /d’ | head -10
      ERROR: Process ID list syntax err
      is it rt..Syntax or do we need to change any parameter.

      • Phil Squire Jan 20, 2015 @ 15:23

        Syntax, two dashes before the sort argument, and single quotes around the sed expression – doesn’t copy and paste very well

  • Markus Sorensson Jan 15, 2007 @ 13:23

    Ok, I can measure the cpu utilization… but what is the criteria to determine when a cpu is overloaded? Please let me know!

  • SpongeMucker Jan 15, 2007 @ 14:13

    Good Article. However, you neglected to mention vmstat. One of the nice things about vmstat is that it provides an insight into how the queues are filling up on each processor. Also, vmstat comes with just about every default install of UNIX and Linux that I have ever seen, so there are no additional files which need to be installed. vmstat is also very scriptable, if you need to log the cpu usage at intervals of time. Hope that this helps. Thanks again for a good article.

  • jon Jan 15, 2007 @ 16:35

    Just FYI – on fedora machines, you’ll need to:

    $ yum install sysstat

    To install the sysstat package which contains (most of) the binaries listed in this article.

  • 🐧 nixCraft Jan 15, 2007 @ 20:08

    @Markus when you see CPU load >=70%

    @SpongeMucker: yup vmstat is good tool => I will update post with vmstat link.

    @ jon : thanks for pointing out fedora core issue.

    Appreciate all of your posts.

  • JM Jan 15, 2007 @ 22:06

    htop works great for me. It’s a little easier on the eyes than regular old top.

  • Santiago Jan 21, 2007 @ 3:28

    You can use the “atop” utility(Monitor for system resources and process activity)

  • 🐧 nixCraft Jan 22, 2007 @ 15:26


    Yup, atop/htop is also useful.

    Appreciate your posts.

  • drown Feb 1, 2007 @ 4:35

    yes its very good explaination..
    but how can one get this information like cpu usage into a program.. say C code?..
    say i wanted cpu usage into my float variable..
    please help.. thnks in advance…

  • 🐧 nixCraft Feb 1, 2007 @ 22:08


    I am not sure about C API.

  • blackice Feb 5, 2007 @ 22:29

    @19. nixcraft

    Thanks, htop worked great for debian sarge, mpstat didn’t worked very well.

  • Puneet Apr 16, 2007 @ 10:06

    Thanks man…helped a lot..:)


  • Vishal Jun 6, 2007 @ 5:58

    Thanks a lot it is really helpful.!!

  • Diptanjan Jun 12, 2007 @ 6:10

    This is really a wonderful article…

    Learned a lot from this… And thank you all the readers for posting valuable comments with different commands.. this is really helpful for people like me.


  • Ramanath Jun 29, 2007 @ 12:13

    This is a nice and informative article.
    Can anyone suggest any command to monitor a process is using which cpu in SMP environment. I mean suppose I am running sshd. How do I know it is using cpu0 or cpu1 ?

  • benny Jul 6, 2007 @ 18:42

    Thanks a lot for the post. Its really helpful.

  • MG Jul 18, 2007 @ 1:39

    very good information…it would be good if we can have at least some hints on whether the stats shown is still ok or need to check on other items

  • colbert Aug 24, 2007 @ 5:35

    thanks for the tips. its good read for my day to day job

  • invisible Sep 13, 2007 @ 6:00

    Really good article.

    I have a following question – what is the best way to find out which process(es) was(were) using cpu(s) for certain period of time based on cpu utilization threshold?

    Let’s imagine that we want to find all processes triggering CPU utilization beyond 70% for more then 10 seconds during last 24 hours and dump such an information in a log with the snapshots of time of occurrence, process ID and command.

    Anyone has an idea how to setup such a monitoring in an elegant way?


  • laga Oct 2, 2007 @ 16:08

    Thanks for the mpstat command!

  • zhili wang Oct 8, 2007 @ 4:05

    One of our server has four CPUs, but when I use mpstat or top, I can only see one CPU. In the directory /sys/devices/system/cpu, only show cpu0. But we do have 4 cpu, and OS admin told me all four cpu are runing. How do I know all four cpus are runing properly and I can use it.

    Thanks for any help.

    • Timescape Jul 10, 2016 @ 13:24

      mpstat -P ALL

  • 🐧 nixCraft Oct 8, 2007 @ 7:58


    Install SMP Linux kernel RPM / package and reboot the box. Run top or cat /proc/cpuinfo command to confirm CPU count

  • zhili wang Oct 8, 2007 @ 18:13

    my server has four CPUs, but when I issue vmstat and top, I can only see one cpu. In the directory:/sys/devices/system/cpu, I can see only one cpu – cpu0. When I issue command:less /proc/interrupts, it only show one cpu. But there are do have four cpu on the server, should I do something to configure it, what should I do.

    Thanks for any help.

  • zhili wang Oct 8, 2007 @ 18:16


    Thank you for your help, I will let Linux Admin here do it.

  • 🐧 nixCraft Oct 8, 2007 @ 19:21

    >should I do something to configure it, what should I do

    Yup, ask your admin to install Linux SMP kernel and boot into the same using Grub. Once booted using SMP, run uname -a to verify that SMP kernel loaded. Also go through /proc/cpuinfo file.
    less /proc/cpuinfo

  • zhili wang Oct 8, 2007 @ 22:24

    The Linux Admin told me kernel-smp are package for free linux and some old version, we runing advanced linux version and do not need it, it confused me. Is it true?

  • zhili wang Oct 10, 2007 @ 15:24

    Thanks for all the help.

    It is clear now, we did not install smp linux kernel, so there is only one cpu working. Could any one tell me when install Redhat linux on multip cpu server, it will automatically configure to smp kernel or have to maually select the kernel?

  • 🐧 nixCraft Oct 10, 2007 @ 16:19


    In most cases it is installed by default but sometime installer cannot detect it and it will install normal kernel. Run yum / up2date command to install SMP kernel from RHN.

  • zhili wang Oct 11, 2007 @ 21:12


    It is very helpful. Thank you.

  • olfat Nov 4, 2007 @ 9:14

    i find this howto article very useful. thank you!

  • ben Nov 16, 2007 @ 3:30

    is there a GUI version of a CPU usage monitor for KDE? im using fedora 8

  • Daton Dec 5, 2007 @ 17:49

    Hi, I have a question about iostat command. How can I see the %utilization of disk not %utilization of CPU? I have found out from some of the forums and man page for iostat that the disk utilization report ought to show one parameter called %util. And also somewhere I have found a flag -D to show it but I cannot find anywhere how to configure my command so that it shows this %util field.

    Any help is highly appreciated. Thank you.

  • 🐧 nixCraft Dec 5, 2007 @ 18:28


    Sometime man page can be confusing..just run iostat -d -x to display disk utilization including %util. It will show TPS (number of transfers per second ) and amount of data read and/or wrtite to/from the device. Try following examples,
    iostat -d -x
    iostat -d -m -x
    iostat -x -d 2

    All you have to do is pass -x option.

  • Madivanan Dec 7, 2007 @ 9:21

    everything in a nutshell..excellent Good info

  • Siddharth Dec 8, 2007 @ 6:23

    Very useful information and very well presented! Thanks!

  • uncleremus Jan 10, 2008 @ 18:11

    You forgot the nicest monitoring tool of them all: gkrellm. Small, fast, nice-looking, must have. Check it out.

  • Vitaly Jan 20, 2008 @ 13:24

    when we see that certain process takes 10% of CPU and we have 2 CPU server, does it mean – it is 10% from one CPU (==5% of server CPU power ) or 10% from server CPU power (==20% of one CPU)

  • Jamie Jan 21, 2008 @ 10:34

    HI nice tute!

    Same question as Vitaly above.

    Ina 2 cpus enviroenmnt does the cpu usage percentage mean the percentage the process takes of 2 cpu or both. Please see the above exmple by Vitaly.

    Also in your image of the top output. The cpu usage vales for the processes add up to a value (26.8%) greater than the total cpu usage value 23.%)

  • Jacob Jan 31, 2008 @ 14:16

    You forgot ksysguard in your GUI section. It has a LOT more monitoring ability than the gnome-system-monitor. Here’s a nice article covering its pros and cons:

  • admin Feb 2, 2008 @ 22:04

    top command is better use with argument c (you will get more information):

    top c

  • Linux In Israel Feb 23, 2008 @ 23:08

    Great article! sar is not so popular as it should be …

  • Nicolas Mar 31, 2008 @ 19:14

    Great intro to CPU usage. Thanks.

    The top 10 monopolizing process would be better if sorted as a numberic key :

    ps -eo pcpu,pid,user,args | sort -k 1 -r -n | head -10

  • Michael May 9, 2008 @ 22:03

    I have a dual core system. When I type ‘mpstat -P ALL’

    10:52:18 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
    10:52:18 PM all 14.33 0.13 2.49 0.43 0.03 0.18 0.00 82.41 151.04
    10:52:18 PM 0 15.47 0.13 2.47 0.33 0.00 0.01 0.00 81.59 0.00
    10:52:18 PM 1 13.21 0.13 2.51 0.53 0.07 0.35 0.00 83.21 151.04
    10:52:18 PM 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

    What is CPU 2?

  • Satya May 28, 2008 @ 18:11

    Hi All,

    Today is 5/28/2008 but I ran some performance tests during 5/7/2008.I need to capture the measurements for both Memory and CPU using ‘SAR’ commands for each of 1 minute interval. Is it possible? If yes, what commands should I need to use?

    I appreciate your input here.


  • Giuseppe May 29, 2008 @ 9:04

    What do you think about cyclesoak?
    I wonder if you could provide some example by using it as well.

  • s5h Jul 20, 2008 @ 11:27

    Thanks for writing this, it’s a very good document about how to use proc. Excellent work. Things like this should be in the kernel docs but they just aren’t. Thanks for filling in the gaps.

  • Laena Sep 17, 2008 @ 7:56

    hmmm. how will i make use of the sourcecode used by top command in calling the program to display the processes, to be used in my bankers program in C, to test how bankers handle thing in real time…thanks

  • Will Oct 14, 2008 @ 1:58

    Thanks for the mpstat command. I have a question on how to interpret the CPU usage output from all those commands (top, mpstat, etc)

    As from my understanding, when a core is doing stuffs, it is fully occupied, i.e. always 100%. So, is the CPU usage meaning the % use of this CPU since the last reboot? Or is it meaning the % use within a timeframe?


  • Will Oct 14, 2008 @ 7:01

    Just to add information to my question above. For mpstat, there is a INTERVAL param. If it is set as 2 seconds, does the output mean the average % CPU usage just within that 2 seconds timeframe?


  • Deano Oct 31, 2008 @ 21:22

    This was really helpful, thanks!

  • James Nov 3, 2008 @ 14:15

    Is there a way to query the overall system usage say in a Perl script or something? I have a low power Linux (or XP it could be) box and want it to postpone some activity for 5 minutes if the CPU loading is say over 30%.

    In simple terms

    If CPU Usage > 30% then Wait 300 Seconds

    Can that be done?-

  • Priya Nov 8, 2008 @ 4:28

    i want to know how can we find the processor id of a system with two processors through linux using c

  • Louis Wang Dec 31, 2008 @ 5:52


    Great article!

    I have a question. I am confused by “%CPU” in top. One user process used 100% CPU, but the system still have 89% idle, not 0% idle. How to understand it?


    $ top |head -8
    top – 12:50:45 up 33 days, 19:32, 4 users, load average: 1.06, 1.05, 1.00
    Tasks: 234 total, 2 running, 229 sleeping, 1 stopped, 2 zombie
    Cpu(s): 9.1%us, 1.7%sy, 0.0%ni, 89.0%id, 0.1%wa, 0.0%hi, 0.1%si, 0.0%st
    Mem: 3894760k total, 3708140k used, 186620k free, 239680k buffers
    Swap: 2031608k total, 17700k used, 2013908k free, 2374436k cached

    3595 otrs 25 0 26712 21m 3840 R 99 0.6 17931:35 PostMasterMailb

    $ mpstat -P ALL
    Linux 2.6.18-8.el5 (xxxxxxxxx) 12/31/2008

    12:54:42 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
    12:54:42 PM all 9.09 0.00 1.67 0.07 0.01 0.13 0.00 89.03 1018.11
    12:54:42 PM 0 1.93 0.00 0.31 0.11 0.00 0.03 0.00 97.62 255.65
    12:54:42 PM 1 9.78 0.00 1.68 0.04 0.01 0.13 0.00 88.37 254.53
    12:54:42 PM 2 2.48 0.00 0.40 0.11 0.00 0.03 0.00 96.97 253.35
    12:54:42 PM 3 22.16 0.00 4.31 0.02 0.01 0.35 0.00 73.16 254.58

  • 🐧 nixCraft Dec 31, 2008 @ 10:05


    It may be possible that user is using 100% CPU core or one of other CPU in multiprocessor system.

  • Ramesh Jan 5, 2009 @ 8:56

    Hi Vivek,

    that is a goos article. hope you can help me in this small issue.
    i have got lighttpd running and i need to develop test cases and run tests – provide dynamic content with HTML. use options like cgi, fastcgi, ajax etc.

    i want to monitor the resource usage of lighttpd during each test.

    please do reply. thanks

  • Ramesh Jan 5, 2009 @ 11:28

    sorry.. i mean..good..type(goos)..sorry

  • Youvedeep Singh Jan 17, 2009 @ 13:27

    Hi all
    It’s a nice article
    I want to relate the CPU utilization with the energy consumed by the ststem, is there any way to do so.
    Or there is an alternate way to find the energy consumed by all the processes.

    Youvedeep Singh

  • Vikrant Jan 26, 2009 @ 19:27

    Hey all! Nice article
    Can anyone tell me where is this information stored? For example in unix systems at /proc/uptime gives information of uptime of the system and the value is dynamic since it would be different every time you poll. Which file stores such information for CPU utilization? So I can “cat and get the information that how much CPU has been utilized?
    Any help is appreciated.
    Best Regards

    • Tony Sep 8, 2010 @ 22:01

      You can try to use /proc/stat to calculate CPU utilization.

      If the information is displayed like this:
      cpu 607557 143290 385125 136873807 1279793 18764 14856 0 0

      To get the average system load over any given amount of time you read only the first four values into variable (for example, ill call them u1, n1, s1, and i1). Then when you’re ready you read the values again into new variables, u2, n2, s2, and i2. Now your total usage time is equal to (u2-u1) + (n2 – n1) + (s2 – s1). And your total time overall is the usage time + (i2-i1). Take (100*usage)/total and you have your percent CPU Usage.

  • shapirus Jan 30, 2009 @ 22:53

    Can someone please explain me how can it be when /proc/stats shows 414% total CPU usage (including the idle time) on a quad-core single processor box?


    $ cat /proc/stat|grep “^cpu “;sleep 100;cat /proc/stat|grep “^cpu ”
    cpu 102843 0 66548 4308888 773304 9547 30153 0 0
    cpu 103568 0 67109 4345597 776311 9655 30471 0 0

    if we subtract the sets of numbers from each other, divide by 100 and sum them, we’ll find that they add up to 414.28. How can it be? I use RHEL 5 with kernel with dynamic ticks and multi-core scheduler support.

    • Tony Sep 8, 2010 @ 22:04

      The average CPU usage is:

      (103568-102843 + 0-0 + 67109-66548)/(4345597-4308888)

      only 3.5%, but the estimation is not accurate

  • shapirus Jan 31, 2009 @ 16:12

    Found it out. The bug (feature?) was in the CONFIG_NO_HZ option. I guess the kernel calculates the idle time inaccurately when the dynamic ticks are turned on. However I also have a few other 32-bit boxes (that one was 64-bit) where this issue does not occur and one 32-bit where it does.

  • Youvedeep Singh Feb 2, 2009 @ 19:30


    In one of my college project i require the energy consumed by the System.
    Is there any way to find the Power/Energy consumed by the CPU/Disk/IOs.
    If anyone is aware of any of such method, please reply fast, i require it urgently.

    Youvedeep Singh

  • Nicholas Feb 20, 2009 @ 7:02

    How I get the word size (32bit or 64bit) of a particular server running on Linux
    Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 i686 i686 i386 GNU/Linux


  • J_Tom_Moon_79 Feb 22, 2009 @ 23:16

    # on fedora core (can install with yum)
    $ dstat

  • J_Tom_Moon_79 Feb 22, 2009 @ 23:18

    # (to find more, just hunt through the output of this cmd)
    $ yum search stat

  • J_Tom_Moon_79 Feb 23, 2009 @ 0:14

    # (or manually search through the output of yum)
    $ yum search stat

  • mohamed Mar 1, 2009 @ 5:53

    I found this article really helpful, thank you, keep up the good work.

  • Tini Mar 26, 2009 @ 6:50

    This article really helped me a lot.
    Thanks a lot

  • nic Apr 2, 2009 @ 20:49

    Using “k -pcpu” will accomplish the reverse sorting as well (including taking care of proper numeric sorting on multi-cpu machines):
    ps k -pcpu -eo pcpu,pid,user,args | head -10

  • Sanjay May 15, 2009 @ 14:13

    Thanks a ton!!! very awesome article and this whole long thread 🙂

  • Pavel May 19, 2009 @ 23:08

    hi hi well…. i have 1question.. ahmm….letme se…. ihave a Red hat 5 linux and glassfish aplication server an’ when i try to monitoring the server i see something like …. well ….

    top – 17:41:08 up 1 day, 6:37, 4 users, load average: 1.12, 1.12, 1.11
    Tasks: 159 total, 1 running, 153 sleeping, 5 stopped, 0 zombie
    Cpu(s): 26.5%us, 0.2%sy, 0.0%ni, 73.1%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st
    Mem: 3365124k total, 3124404k used, 240720k free, 4400k buffers
    Swap: 8385888k total, 246344k used, 8139544k free, 71892k cached

    12001 root 20 0 1633m 593m 11m S 102 18.0 218:19.97 java
    28432 root 22 0 1641m 330m 13m S 2 10.1 2:06.12 java
    28611 root 25 0 1642m 228m 12m S 2 6.9 2:25.95 java
    28528 root 19 0 2253m 920m 13m S 1 28.0 10:43.70 java
    1 root 15 0 2036 556 524 S 0 0.0 0:00.84

    as u’ can see mi cpu it’s burning or something like that …. someone knows why a glassfish domain only increese i mind…just eat ram memory…. someone knows.. why….. jus whyy !!! why!!!!! T_T

    • 🐧 nixCraft May 20, 2009 @ 7:46

      Your load average looks normal to me. Run free -m command to see memory usage.

  • Pavel May 20, 2009 @ 17:09

    ahmm….. really?….. well…. ahm…. the server in the graphic mode runs to slowly and welllit’s a little server i think cuz just have 3.5gb in Ram , but as u’ can se in my example the proces quickly the ram downs……i mind… i don’t know i think……

  • Joe Jul 2, 2009 @ 2:20

    Good info here. I like the “top|head -5” in particular – everything in one nutshell. Can someone please explain the CPU load percentage as it relates to multi-core or multi-cpu machines. If I see a load of 1.57 (157%) on a Xeon (quad processor), is that 1.57 out of a possible 4.00, or are all 4 CPUs running flat out and swapping the 57% overhead? Also, is there an easy way to get a CPU count to adjust the load statistic if needed? From the above the best I got was “cat /proc/cpuinfo|grep processor|wc -l” – but I don’t suspect it would ‘port’ from RedHat to a Sun, HP or AIX box.

  • Avish Aren Jul 3, 2009 @ 6:53

    On a machine with 4 processors running Linux, what would a CPU load of 2 mean?

  • Avish Aren Jul 3, 2009 @ 6:54

    Show me a command that would search for a given line of text in all files in the current directory tree older than 2 months without using pipes

  • Avish Aren Jul 3, 2009 @ 6:54

    While looking in an application log file, you see a line to the effect of “Cannot bind to address: address already in use”; what does this indicate?

  • ant Jul 10, 2009 @ 5:37

    ps can also sort the output

    ps -eo pcpu,vsize,rss,pid,user,args –sort -pcpu

    i am using this now in a monitoring script so as soon as something goes wrong i can get a snapshot of the cpu hog, and check up on process memory usage as well.

  • Anurag Srivastav Aug 25, 2009 @ 8:54

    Your posting seems to be helpful. I suggest you to add some info about vmstat command

  • Anbu Sep 16, 2009 @ 15:32

    Its a good article

  • Anbu Sep 16, 2009 @ 15:35

    How to list the top by showing the cpu core details without pressing 1.

  • anand Nov 10, 2009 @ 6:02

    Nice Article !!
    Can someone tell me how to find on which processor/core the process is attached ?

  • Arun Dec 4, 2009 @ 18:43

    I have query here. Appreciate if any one could help me on this.

    My server is ProLiant DL380 G3 model which is a 32 bit CPU server. It has two cpus. Now the problem is server alsways showing high IOWAIT.

    CPU states: cpu user nice system irq softirq iowait idle
    total 3.2% 0.0% 0.5% 0.0% 0.0% 95.7% 0.3%
    cpu00 1.1% 0.0% 0.7% 0.0% 0.0% 98.0% 0.0%
    cpu01 5.3% 0.0% 0.3% 0.0% 0.0% 93.4% 0.7%

    There is no process which is taking high CPU. All the process are looks normal. And the total cpu utilization also showing very less. Its started two month back and since then the server performance is too slow.

    Can any one help me on this please?

  • Manoj Mukundan Feb 9, 2010 @ 14:41

    While using top press “1” can show load of each cpu(core) as shown below

    op – 20:10:48 up 2 days, 1:30, 1 user, load average: 1.01, 1.01, 0.97
    Tasks: 119 total, 2 running, 117 sleeping, 0 stopped, 0 zombie
    Cpu0 : 0.0% us, 0.0% sy, 0.0% ni, 99.7% id, 0.3% wa, 0.0% hi, 0.0% si
    Cpu1 : 99.7% us, 0.3% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
    Cpu2 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
    Cpu3 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
    Cpu4 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
    Cpu5 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
    Cpu6 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
    Cpu7 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
    Mem: 32905096k total, 20045912k used, 12859184k free, 264608k buffers
    Swap: 34812844k total, 0k used, 34812844k free, 5588896k cached

  • Tech 2 Feb 10, 2010 @ 13:44

    Guys Please let me know When I give
    # mpstat -P ALL
    I can see 16 CPU’s [0 to 15].
    How Can I check How many physical CPU’s are installed on server

    • Alex Feb 18, 2013 @ 15:25

      NB_CPU=$(grep “^processor” /proc/cpuinfo | wc -l)

  • Oliver Kleinecke Feb 15, 2010 @ 19:41

    Hi Guys!

    Just wanted to offer you to email me, if you are having trouble to configure/monitor your system performance on linux.
    I am working as a gameserver admin, and I have been using a lot of different linux-versions, including SuSE, RedHat, Debian, Gentoo and some other Unix-like systems.
    As you can imagine, Realtime-Online-Gameservers are very dependent on a healthy and FAST system, where CPU,RAM & IO – Usage is extremely important, because gameservers would lag otherwise..
    During the past few years, I found out a lot of tricks, read hundreds of howtos, and compiled many many different kernels with custom features for a lot of different hardware, include 32bit-single-cpus, 64bit-multicore-cpus, ppc-architecture-systems and so on and so on..
    So if you have got real trouble, which you can`t easily google yourself, let me know, I`ll be happy to help out..
    Best regards, Oliver

    • venkat Sep 17, 2010 @ 16:56

      i have a query regarding CPU utilization and CPU percentage.
      What is mean by CPU percentage?
      Basing on what parameter we can calculate CPU percentage.
      On my AIX server having 4 cpu’s shows below values for each 15 min interval.

      system cpu time is 4%, User cpu time is 90% idle cpu time is 6%

      and CPU percentage of all the processes not exceeded 20%.
      How can i understood my CPU performance from the above values.

  • {A} Feb 18, 2010 @ 8:56

    4 c top 5 processes -> ps -eo pcpu,pid,user,args –sort=pcpu | tail -n 5

  • Craig Mar 8, 2010 @ 20:25

    When on a multicore system, does top with no arguments show an average of each core? I know that with the “1” argument I can see each CPU listed. But with no arguments what am I seeing? It appears to be an average of stats on each CPU?

    Thanks! Craig

  • Ben Salem Mar 14, 2010 @ 0:27

    I lost my password

  • Prashant Mar 17, 2010 @ 3:38

    Hi Oliver Kleinecke,
    I have e-commerce site.
    which is using two load balancer and 8 web servers.
    how can I monitor server performance of each machine or CPU.

  • moonpixel Mar 26, 2010 @ 6:35

    Thanks much for all this info,
    is it possible to get daily stats written into a log file?
    or do I need to get some script to do that?
    any recommendations?
    thank you

    • Venkat Apr 24, 2010 @ 21:52


      Is there a way to find out cpu usage per thread in Linux? Some other threads say that we cannot find cpu usage at thread level in Linux? Is that true? Any material to give more insight on this topic.

      I know /proc//lpsinfo structure gives cpu usage per thread in Solaris.

      Appreciate your response,
      Thanks, Venkat

  • gustavx May 9, 2010 @ 22:48

    Here there is a piece of a script that may be useful to get the CPU usage only:

    top bd00.50n2 | grep Cpu | tail -n1 | sed ‘s/.*Cpu(s)://g; s/us,.*//g’

    This gives the User CPU usage, but could be easily modified for other values.

    • hatim Oct 31, 2012 @ 5:27

      How to run the following script…please help…

      top bd00.50n2 | grep Cpu | tail -n1 | sed 's/.*Cpu(s)://g; s/us,.*//g'

      I am using ubuntu.

  • Rey Jul 23, 2010 @ 14:45

    Is there anyway to determine CPU cycles currently in use and available CPU Cycles.

  • Dawn Alphonse Jose Oct 18, 2010 @ 11:40

    how can i resolve this issue of CPU utilisation in my linux server.

  • Sharad Jan 10, 2011 @ 12:26

    This helps, thanks!

  • Mani Jan 26, 2011 @ 18:08

    Great article.. Also please consider mentioning about vmstat tool. It is another great tool..

  • Lohith Mar 22, 2011 @ 9:31

    Hi ,
    I am running mpstat -P ALL command and calculating the CPU utilization values. but i want to calculate the cpu utilization values of another CPU from the one that I am working from and report the values of the same to other module that is working on in my processor ..Is it possible? Please let me know ..This is a urgent requirement..

    • Michael Shigorin Sep 24, 2012 @ 11:20

      There’s no such thing as “urgent requirement” when you don’t compensate people in some way. And when you do, spelling things clearly in the first place helps a lot: having read your message twice I can’t see any impementable solution since there are too many possible interpretations.

  • Kilroy Apr 1, 2011 @ 6:00

    Great article!!! thanks
    although i have a debian squeeze box without X GUI installed although i’d like to have graphical reports on performance statistics like CPU%, memory usage etc.. is there any tool or command i can use to get this done? using systat i noticed im getting volumes of text data and its quite time consuming to search for specific data. im quite new to this could anyone help me out

    Thanks in advance

  • Kilroy Apr 1, 2011 @ 6:10

    to be more specific i was using *sar and found all the data i wanted and more but realized that i needed more Graphical data. could anyone suggest which direction i need to move to get this done?

  • Taher May 4, 2011 @ 22:01

    Is there a way for me to see sar results for yesterday from the default log?
    ( By default it only shows from midnight of today . Note: I am not explicitly running or saving it )

    Thanks .

  • RapidSpeeds May 7, 2011 @ 15:44

    Nice guide, very well written and documented.

    Will direct anyone here should any such questions arise from one of our customers.


  • garmin May 13, 2011 @ 19:43

    NIce article.
    Another useful link:

  • john79 Jun 23, 2011 @ 12:27

    to see more info about current cpu utilization.

  • sachin Jun 28, 2011 @ 9:43

    how to check cpu utilization past 2 days

    Please help me

    • Michael Shigorin Sep 24, 2012 @ 11:23

      sar was described already.

  • Si Em Jul 11, 2011 @ 10:28

    Could you kindly descripe more detail about the below command. For example, if use command number 2 “nohup”, what directory should i used? Local directory or server directory? Thank in advance for your kind.

    To get multiple samples and multiple reports set an output file for the sar command. Run the sar command as a background process using.
    # sar -o output.file 12 8 >/dev/null 2>&1 &
    Better use nohup command so that you can logout and check back report later on:
    # nohup sar -o output.file 12 8 >/dev/null 2>&1 &
    All data is captured in binary form and saved to a file (data.file). The data can then be selectively displayed ith the sar command using the -f option.
    # sar -f data.file

  • Roel Jul 27, 2011 @ 2:03

    Nice article – this helped, thanks.

  • surjan Sep 21, 2011 @ 6:45

    Nice article and equally good comments suggesting the new commands.
    I can see some sar files inside /var/log/sa/. I can see a block containing the CPU %user %nice %sys %iowait %irq %soft %steal %idle values. Is there some way to see memory utilization in the same file, memory utilization per process or as whole.
    Please help

  • Roberta Dec 16, 2011 @ 19:47

    Great post! I finally understand how to check and analyze a little better Linux CPU utilization. Many thanks! You rocks!

  • mkdizajn Jan 3, 2012 @ 10:33


    this is my output from iostat command:

    Linux 3.0.0-14-generic (k1-desk) 	01/03/2012 	_x86_64_	(4 CPU)
    avg-cpu:  %user   %nice %system %iowait  %steal   %idle
               3.67    0.02    1.51    0.62    0.00   94.18
    Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
    sda              31.60     14245.90        85.57  979239785    5881884
    sdb              30.24         0.01     14285.26        976  981945348
    sdc               1.47        20.83        18.15    1431840    1247465
    dm-0              5.08        37.71        85.57    2592093    5881884
    dm-1              4.96        37.70        85.57    2591693    5881884

    this is very interesting because sda and sdb are same disks in mirror raid, lower named dm-1.. does this mean that disks in my raid work that way,,, one reads data, other write it ? … strange.. but makes my head think about that 🙂

    • TeeCee Jan 4, 2012 @ 20:11


      I would guess from the numbers that sda and sdb are 1TB drives. Sine it appears to have read 1TB from sda and written it to sd, mygues is t thiis the mirrorin process. After yreboo, the nunbs shod even out.The total reads on sda and sdb should add to dm-1 and the writes should be the same.

  • MICHAEL Jan 6, 2012 @ 18:57


    • KoSoVaR May 14, 2012 @ 14:36

      Hi Michael,

      Typing in CAPS takes more memory than not. That’s why when you hit the shift button the CPU spikes and the memory shoots up just for a second. I believe by the context of your message that you are unknowingly forcing you’re RAM and CPU to shoot up by keeping the CAPS lock button on, or rather holding SHIFT while you type.

      Please try reinstalling Windows and let us know your results.

      • Micah Aug 3, 2012 @ 20:47

        LOL! Wonder if he took your advice, KoSovaR.

  • Arun May 6, 2012 @ 13:03

    Thank you 🙂

    Nice information’s- very useful 🙂

  • Rohit May 25, 2012 @ 6:22

    How do i store the CPU utiilization of a linux machine for a specific interval of time in a excel sheet?

  • om prakash singh May 30, 2012 @ 7:20

    hi all,
    anyone tell me how to reduce the cpu load ?

  • om prakash singh May 30, 2012 @ 7:20

    how to reduce the cpu load?

  • Jose Tapia Aug 28, 2012 @ 13:49

    Awesome article, im degusting the articles of these web site, thanks for share your info

  • Jan Hedegaard Sep 18, 2012 @ 13:17

    Great article. Is there a way to get all the counters in the row instead of the header? f.ex.:

    This should be used for collecting data for many hosts into an datawarehouse. The idea is to create an performance hierachy for different performancecounters like CPU,MEM,DISK aso…

  • Sayajin Feb 25, 2013 @ 13:35

    Cant believe no one has mentioned: cat /proc/loadavg

  • veena Feb 28, 2013 @ 6:22

    i want find the cpu load for current kernel module using c.please help me

  • KÁTIA KELVIS May 9, 2013 @ 18:18


  • vipinkumar Sep 8, 2013 @ 16:37

    i need help on top command to understand clearly, cpu utilisation..

  • faisal Sep 14, 2013 @ 12:34

    I need explain of cpu monitoring PLZ tell me


  • oaaer Oct 31, 2013 @ 6:00

    I need to know show Linux shell script to collect CPU utilization every 5 minute and write the output in a text file.

  • Anonymous Jan 17, 2014 @ 10:15

    Please correct your sort command adding -n (numeric)
    Exemple : sort -r -k1 should be sort -nr -k1
    ps -eo pcpu,pid,user,args | sort -nr -k1 | less

    Otherwise 7% is before 30%

  • Lavi Feb 17, 2014 @ 10:14


    Just know that ps show CPU from since the process started, not like for example top, which show the current CPU usage status.
    Therefore, don’t trust “ps” in case you need your current CPU status per process ID.

  • BADZ Jun 4, 2014 @ 6:58


    I am wondering why my cpu folder is empty. I got this error from my KVM, cannot open /sys/devices/system/cpu/cpu0/topology/thread_siblings: no such file or directory. I am using CentOS (VPS from Hostgator).

  • satya yandra Jul 11, 2014 @ 23:05


    If wanted to find out which process took high CPU 3 days back any command available? Also MySql DB is showing 738.5% of CPU, is that a real number, if it is real what is the reason for that?

    top – 19:04:06 up 176 days, 21:04, 2 users, load average: 1.13, 1.15, 1.16
    Tasks: 532 total, 1 running, 531 sleeping, 0 stopped, 0 zombie
    Cpu(s): 28.2%us, 4.6%sy, 0.0%ni, 67.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 148693532k total, 110977488k used, 37716044k free, 2422156k buffers
    Swap: 8388600k total, 482248k used, 7906352k free, 96894392k cached

    5809 mysql 20 0 12.2g 133m 4548 S 738.5 0.1 958656:57 mysqld
    16443 vzbrprod 20 0 5669m 382m 17m S 28.7 0.3 6642:07 java
    23198 vzbrprod 20 0 32.7g 286m 12m S 26.0 0.2 601:33.03 java
    13909 vzbrprod 20 0 35.9g 197m 12m S 10.5 0.1 1137:23 java
    11108 v977139 20 0 15432 1596 936 R 1.3 0.0 0:00.09 top
    109 root 20 0 0 0 0 S 0.3 0.0 9:22.85 events/10
    2609 root 20 0 9136 560 400 S 0.3 0.0 154:03.55 irqbalance
    3744 root 20 0 39008 2072 1392 S 0.3 0.0 14:01.15 selogrd

  • Lino Oct 8, 2014 @ 22:41


    Very useful article

    Is it possible to get stats information like “prstat -t2 provides, I mean, to report total usage summary for each user. Example:
    78 casuser 16G 14G 22% 4913:40:2 8.1%
    56 root 3635M 3743M 5.7% 1995:40:4 2.1%
    1 nobody 1200K 4040K 0.0% 0:00:01 0.0%
    1 noaccess 132M 112M 0.2% 13:25:20 0.0%
    7 xoifo 5296K 15M 0.0% 0:00:00 0.0%
    1 smmsp 2576K 10M 0.0% 0:05:33 0.0%
    6 daemon 9792K 12M 0.0% 1:12:41 0.0%

  • Kalpesh Apr 26, 2016 @ 5:50

    Nice article about knowledge sharing.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum