Coder Social home page Coder Social logo

go-system-load's Introduction

usage:

go-system-load.py [-h] [-c OCCU_RATE] [-p PERTIME] [-i INTERVAL] [-m--memory MEM] [-n NETINTERVAL]

optional arguments:

-h, --help show this help message and exit

-c , --occupancy cpu占用率

-p , --persistent 占用时长(秒)

-i , --interval 间隔调用(分)

-m , --memory 占用内存(MB)

-n , --netinterval 网络占用的时间间隔(分钟)

install:

sudo apt install speedtest-cli

sudo apt install pip

sudo apt install python3

sudo pip install argparse

sudo pip install cgroups

sudo pip install psutil

run:

cpu占用20%,每次占用10秒,每1分钟占用一次,长期占用内存100M,每2分钟跑一次speedtest:

nohup go-system-load.py -c 20 -p 10 -i 1 -m 100 -n 2 &

默认使用:

nohup go-system-load.py > /dev/null 2>&1 &

go-system-load's People

Contributors

nsfwdocnet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.