Coder Social home page Coder Social logo

systemctl_memory_watcher's Introduction

Systemctl Memory Watcher

sysmemwatch

Animated watcher for systemdrun user scopes.

Usage

Launch some process in your GNU-Linux or compatible OS with systemd-run command, for example:

systemd-run --unit=firefox --user --scope -p MemoryHigh=8G -p MemoryMax=9G -p MemorySwapMax=1G firefox

(if you have doubts please review this tutorial)

After that, you can use sysmemwatch for see the state of all scopes:

sysmemwatch firefox

Output:

firefox:  31%|█████████            | 3024007/9663676

You can launch many scopes and also leave it in continuous loop:

sysmemwatch -l -t 30 firefox vscode studio

sysmemwatch

Options

For more options, please run sysmemwatch -h, you should have something like this

syswatchmem -- utility for see the memory of each scope launched with systemd-run

Usage:
  syswatchmem  <scope>... 
  syswatchmem [--loop] [--no-stats] [--anim <tics>] [--time <delay>] <scope>...
  syswatchmem -h | --help
  syswatchmem -v | --version

Examples:
  syswatchmem -n firefox                # watch the memory of firefox one time without stats only %
  syswatchmem -l -t 60 firefox vscode   # loop mode: watch the memory of firefox and vscode each 60 seconds
  syswatchmem -a 5000 firefox vscode    # animate more the memory bars (minus is more slow)

Options:
  -l, --loop                    Loop forever
  -t <delay>, --time <delay>    Time between updates [default: 30] seconds
  -a <tics>, --anim <tics>      Anim speed [default: 10000] minus is slower
  -n, --no-stats                Disable statistics
  -h --help                     Show help screen.
  -v --version                  Show version.

systemctl_memory_watcher's People

Contributors

hpsaturn avatar

Stargazers

 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.