
It also shows how much CPU percentage the processes are consuming.įor example, to show the %CPU, PID, USER associated with the process and COMMAND run, run the command below. Ps displays information about a selection of the active processes.


The highlighted column shows CPU statistics us: reports the amount of time that the processor spends on userland tasks Example:ĭisplay two reports at an interval of two seconds vmstat 2 2 procs -memory-swap-io-system-cpu. In absence of count, when delay is defined, default is infinite. The count value specifies the number of updates.If no delay is specified, only one report is printed with the average values since boot. The delay value specifies the delay between updates in seconds.Additional reports give information on a sampling period of length delay. The first report produced gives averages since the last reboot. Vmstat reports information about processes, memory, paging, block IO, traps, disks and CPUĪctivity. To display two CPU utilization reports at an interval of 2 seconds iostat -c 2 2 Linux 4.13.0-45-generic () _x86_64_ (4 CPU)Īvg-cpu: %user %nice %system %iowait %steal %idle If -y option is used, it will omit the first report and each subsequent report covers the time since the previous report.

When run with options, the first report generated provides statistics since the system was booted.
