Linux CPU Info: Difference between revisions
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
=Per-Process CPU Runtime Statistics= | =Per-Process CPU Runtime Statistics= | ||
{{External|https://stackoverflow.com/questions/16726779/how-do-i-get-the-total-cpu-usage-of-an-application-from-proc-pid-stat}} | |||
=Other Utilities= | =Other Utilities= |
Revision as of 22:32, 1 March 2018
Internal
- Linux Runtime Information
- https://home.feodorov.com:9443/wiki/Wiki.jsp?page=LinuxProcessInformation
- https://home.feodorov.com:9443/wiki/Wiki.jsp?page=Cpuinfo
System-Wide CPU Runtime Statistics
CPU runtime statistics are computed based on /proc/stat values.
User time: vmstat us
Kernel time: vmstat sy
Idle time: vmstat id
Time waiting for IO: vmstat wa
Steal time: vmstat st. The definition of "steal time":
Per-Process CPU Runtime Statistics
Other Utilities
top vmstat lscpu
proc cpuinfo
cat /proc/cpuinfo
For more details see https://home.feodorov.com:9443/wiki/Wiki.jsp?page=Cpuinfo.
Virtualization Extensions
To verify that a processor has its virtualization extensions enabled, run:
grep -E "vmx|svm" /proc/cpuinfo
If the command generates output, it means the virtualization extensions are enabled.
More details
64 bit or 32 bit?
uname -a
grep flags /proc/cpuinfo
lm
long mode - 64 bits
protected mode
32 bits