/proc/stats


What is in proc stats
example output:

Screenshot from 2016-07-27 15-47-43

First block cpu info :
These numbers identify the amount of time the CPU has spent performing
different kinds of work.

1 st coluumn number cpu 
2- user: normal processes executing in user mode
3 - nice: niced processes executing in user mode
4- system: processes executing in kernel mode
5- idle: twiddling thumbs
6- iowait: waiting for I/O to complete #faworite
7- irq: servicing interrupts
8- softirq: servicing softirqs
9- steal: involuntary wait
10- guest: running a normal guest
11- guest_nice: running a niced guest

[dzaczek@Kwasus ~]$ cat /proc/stat \
1 2 3 4 5 6 7 8 9 10 11
cpu 1853026 9545 385026 5329602 8027 0 10126 0 0 0
cpu0 469741 2223 110112 2964091 5228 0 10091 0 0 0
cpu1 472757 2442 99093 781745 1106 0 16 0 0 0
cpu2 453369 2399 91790 790609 911 0 9 0 0 0
cpu3 457158 2479 84031 793156 780 0 8 0 0 0

The “intr” line gives counts of interrupts serviced since boot time, for each of the possible system interrupts. The first column is the total of all interrupts serviced including unnumbered architecture specific interrupts; each subsequent column is the total for that particular numbered interrupt. Unnumbered interrupts are not shown, only summed into the total.

 intr 55059765 34 11218 0 0 0 0 0 0 1 384353 0 0 1407995 0 0 0 1789846 2672216 0 0 0 0 0 129 0 486206 50012 0 0 0 0 0 1211617 13 2194 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 

The “ctxt” line gives the total number of context switches across all CPUs.


ctxt 194216613

The “btime” line gives the time at which the system booted, in seconds since the Unix epoch.


btime 1469539916

The “processes” line gives the number of processes and threads created, which includes (but is not limited to) those created by calls to the fork() and clone() system calls.

processes 214881

The “procs_running” line gives the total number of threads that are running or ready to run (i.e., the total number of runnable threads).

procs_running 2

The “procs_blocked” line gives the number of processes currently blocked, waiting for I/O to complete.

procs_blocked 0

The “softirq”(software interrupt ) line gives counts of softirqs serviced since boot time, for each of the possible system softirqs. The first column is the total of all softirqs serviced; each subsequent column is the total for that particular softirq.


softirq 52420153 304250 24485378 3737 562 429583 9 3845568 15802937 0 7548129

source :
https://www.kernel.org/doc/Documentation/filesystems/proc.txt
https://lwn.net/Articles/520076/

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s