Menu
Mar 29, 2012 There is a%idle column, but apparently there has not been an idle period without I/O activity. The three columns on the left are busy time, the three on the right are idle time. So I think it is like this: TOTAL USER =%user +%nice TOTAL CPU =%user +%nice +%system TOTAL IDLE =%iowait +%steal +%idle. This patch moves all of the /proc/stat display code inside sched.c. The goal is to later on, have a different version of it per-cgroup. Street fighter 5 for android. In containers environment, this is useful.
Tags: irq softirq stealiowait irq softirqidle iowait irq
Introduction
psutil (process and system utilities)
is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network, sensors) in Python. It is useful mainly for system monitoring, profiling and limiting process resources and management of running processes. It implements many functionalities offered by UNIX command line tools such as: ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap.Related Articles
The Stories Behind 10 Rock Band Logos
Protecting Your Home from Afar with a…
Books I' ll="" probably="" never="" read="" book="">
Fall Guys Is A Silly Multiplayer Game…
Tips And Tricks To Save On Fuel Costs…
Protecting Your Home from Afar with a…
Books I' ll="" probably="" never="" read="" book="">
Fall Guys Is A Silly Multiplayer Game…
Tips And Tricks To Save On Fuel Costs…
psutil
currently supports the following platforms: Linux, Windows, OSX, FreeBSD, OpenBSD, NetBSD, Sun Solaris, AIX …both 32-bit and 64-bit architectures, with Python versions 2.6, 2.7, and 3.4+Installation – psutil
To install
psutil
by Python Pip, use the following commands :Ubuntu / Debian:
RedHat / CentOS:
If you’re on Python 3 use
python3-dev
and python3-pip
instead.Example usages
CPU Utilization:
Memory Usage:
For more usage examples please visit psutil pypi project page
Follow Me:The post How to get CPU utilization and Memory Usage in Python – psutil appeared first on DevOps Techie.
This post first appeared onDevops Techie - Solutios For Devops Tools And Practices, please read the originial post:here
Last released:
Cross-platform lib for process and system monitoring in Python.
Project description
Quick links
Summary
psutil (process and system utilities) is a cross-platform library forretrieving information on running processes and system utilization(CPU, memory, disks, network, sensors) in Python.It is useful mainly for system monitoring, profiling and limiting processresources and management of running processes.It implements many functionalities offered by UNIX command line tools such as:ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat,iotop, uptime, pidof, tty, taskset, pmap.psutil currently supports the following platforms:
- Linux
- Windows
- macOS
- FreeBSD, OpenBSD, NetBSD
- Sun Solaris
- AIX
…both 32-bit and 64-bit architectures. Supported Python versions are 2.6, 2.7 and 3.4+. PyPy is also known to work.
Author
psutil was created and is maintained byGiampaolo Rodola and itreceived many useful contributionsover the years.A lot of time and effort went into making psutil as it is right now.If you feel psutil is useful to you or your business and want to support itsfuture development consider making a small donation:
Don’t want to donate money? Then maybe you could write me a recommendation on Linkedin.
Example applications
Also see scripts directoryand doc recipes.
Projects using psutil
psutil has roughly the following monthly downloads:
There are over10.000 open source projectson github which depend from psutil.Here’s some I find particularly interesting:
Portings
- Go: https://github.com/shirou/gopsutil
- C: https://github.com/hamon-in/cpslib
- Node: https://github.com/christkv/node-psutil
- Rust: https://github.com/borntyping/rust-psutil
- Ruby: https://github.com/spacewander/posixpsutil
- Nim: https://github.com/johnscillieri/psutil-nim
Example usages
This represents pretty much the whole psutil API.
Memory
Network
Other system info
Further process APIs
Popen wrapper:
Project details
Release historyRelease notifications
5.6.3
5.6.2
5.6.1
5.6.0
5.5.1
5.5.0
5.4.8
5.4.7
5.4.6
5.4.5
5.4.4
5.4.3
5.4.2
5.4.1
5.4.0
5.3.1
5.3.0
5.2.2
5.2.1
5.2.0
5.1.3
5.1.2
5.1.1
5.1.0
5.0.1
5.0.0
4.4.2
4.4.1
4.4.0
4.3.1
4.3.0
4.2.0
4.1.0
4.0.0
3.4.2
3.4.1
3.4.0
3.3.0
3.2.2
3.2.1
3.2.0
3.1.1
3.1.0
3.0.1
3.0.0
2.2.1
2.2.0
2.1.3
2.1.2
2.1.1
Hate story 2 1080p full movie. 2.1.0
2.0.0
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
User Nice System Idle Iowait Irq Softirq Stealer
1.0.1
1.0.0
0.7.1
0.7.0
0.6.1
0.6.0
0.5.1
0.5.0
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size & hash | File type | Python version | Upload date |
---|---|---|---|
psutil-5.6.3-cp27-none-win32.whl (226.8 kB) | Wheel | cp27 | |
psutil-5.6.3-cp27-none-win_amd64.whl (230.4 kB) | Wheel | cp27 | |
psutil-5.6.3-cp35-cp35m-win32.whl (230.9 kB) | Wheel | cp35 | |
psutil-5.6.3-cp35-cp35m-win_amd64.whl (234.9 kB) | Wheel | cp35 | |
psutil-5.6.3-cp36-cp36m-win32.whl (230.9 kB) | Wheel | cp36 | |
psutil-5.6.3-cp36-cp36m-win_amd64.whl (234.9 kB) | Wheel | cp36 | |
psutil-5.6.3-cp37-cp37m-win32.whl (230.9 kB) | Wheel | cp37 | |
psutil-5.6.3-cp37-cp37m-win_amd64.whl (234.9 kB) | Wheel | cp37 | |
psutil-5.6.3.tar.gz (435.4 kB) | Source | None |
Hashes for psutil-5.6.3-cp27-none-win32.whl
Algorithm | Hash digest |
---|---|
SHA256 | d5350cb66690915d60f8b233180f1e49938756fb2d501c93c44f8fb5b970cc63 |
MD5 | 9fd0da7de3c36fba1718af604ef7df61 |
BLAKE2-256 | da767e445566f2c4363691a98f16df0072c6ba92c7c29b4410ef2df6514c9861 |
Hashes for psutil-5.6.3-cp27-none-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | b6e08f965a305cd84c2d07409bc16fbef4417d67b70c53b299116c5b895e3f45 |
MD5 | a4e4d8e4fbd324867bbb52239d4ee0fe |
BLAKE2-256 | 727543047d7df3ea2af2bcd072e63420b8fa240b729c052295f8c4b964335d36 |
Hashes for psutil-5.6.3-cp35-cp35m-win32.whl
Algorithm | Hash digest |
---|---|
SHA256 | cf49178021075d47c61c03c0229ac0c60d5e2830f8cab19e2d88e579b18cdb76 |
MD5 | fa5a95c3f871eb342f93a46e84332573 |
BLAKE2-256 | c2f2d99eaeefb2c0b1f7f9aca679db17f4072d4cc362f40f809157d4e2d273dd |
Hashes for psutil-5.6.3-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | bc96d437dfbb8865fc8828cf363450001cb04056bbdcdd6fc152c436c8a74c61 |
MD5 | c4168104755a01957b430baca69d2f63 |
BLAKE2-256 | 9086d5ae0eb79cab6acc00d3640a45243e3e0602dc2f7abca29fc2fe6b4819ca |
Hashes for psutil-5.6.3-cp36-cp36m-win32.whl
Algorithm | Hash digest |
---|---|
SHA256 | eba238cf1989dfff7d483c029acb0ac4fcbfc15de295d682901f0e2497e6781a |
MD5 | e62753ea2662be0900298ed59b325dd0 |
BLAKE2-256 | 280ce41fd3020662487cf92f0c47b09285d7e53c42ee56cdc3ddb03a147cfa5d |
Hashes for psutil-5.6.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | 954f782608bfef9ae9f78e660e065bd8ffcfaea780f9f2c8a133bb7cb9e826d7 |
MD5 | 3358b7f37b4b481dae59237ea8b351ca |
BLAKE2-256 | 8691f15a3aae2af13f008ed95e02292d1a2e84615ff42b7203357c1c0bbe0651 |
Hashes for psutil-5.6.3-cp37-cp37m-win32.whl
Algorithm | Hash digest |
---|---|
SHA256 | 503e4b20fa9d3342bcf58191bbc20a4a5ef79ca7df8972e6197cc14c5513e73d |
MD5 | 0db7a1f383218f2c71c9cea3d7b9d263 |
BLAKE2-256 | 3b922a7fb18054ac12483fb72f281c285d21642ca3d29fc6a06f0e44d4b36d83 |
Hashes for psutil-5.6.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest |
---|---|
SHA256 | 028a1ec3c6197eadd11e7b46e8cc2f0720dc18ac6d7aabdb8e8c0d6c9704f000 |
MD5 | 4baa46b3dbac29cce4f536c66f083faf |
BLAKE2-256 | 7c58f5d68ddca37480d8557b8566a20bf6108d7e1c6c9b9208ee0786e0cd012b |
Hashes for psutil-5.6.3.tar.gz
User Nice System Idle Iowait Irq Softirq Steals
Algorithm | Hash digest |
---|---|
SHA256 | 863a85c1c0a5103a12c05a35e59d336e1d665747e531256e061213e2e90f63f3 |
MD5 | 1bbc1788588cc3c2c461cd98a830ba72 |
BLAKE2-256 | 1cca5b8c1fe032a458c2c4bcbe509d1401dca9dda35c7fc46b36bb81c2834740 |