Installing the Performance Information Module Psutil

Source: Internet
Author: User

Psutil is a cross-platform library that makes it easy to get the process and system utilization (including CPU, memory, disk, network, etc.) for system operation, which is mainly used for system monitoring. Analyze and limit system resources and process management.

1, # wget https://pypi.python.org/packages/source/p/psutil/psutil-2.0.0.tar.gz--no-check-certificat

2. # TAR-ZXVF psutil-2.0.0.tar.gz

3. # CD psutil-2.0.0

4. # python setup.py Install

Cases:

>>> Import Psutil
>>> mem = psutil.virtual_memory ()
>>> Mem.total, mem.used
(4003659776, 783147008)

This article is from the "Target: India" blog, please be sure to keep this source http://shunzi115.blog.51cto.com/5184443/1764708

Installing the Performance Information Module Psutil

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.