Giter Site home page Giter Site logo

ydhao / slurm_job_resource_monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from t-schanz/slurm_job_resource_monitor

0.0 0.0 0.0 133 KB

A python command line tool to monitor the resources of your slurm jobs

License: MIT License

Python 100.00%

slurm_job_resource_monitor's Introduction

Slurm Job Resource Monitor

A python command line tool to monitor the resources of your slurm jobs in form of a regularly updated table.

Demo Image

Installation

Install via pip:

pip install slurm-job-resource-monitor

Usage

On a slurm managed cluster, run the following command to monitor your jobs:

slurm_job_monitor

To get all the possible options run:

slurm_job_monitor --help

The preferred way to use the tool is with the group-by-cmd option to not spam the table when running multi-cpu jobs:

slurm_job_monitor --group-by-cmd "sum"

Assumptions / Preliminary

The tool assumes that:

  • you are running on a slurm managed cluster.
  • The tool assumes that you have a slurm account.
  • You can ssh in all allocated notes.
  • For ssh within the cluster no password is needed (only ssh key).
  • You need nvidia-smi to display GPU info of nodes (optional).
  • You can run "ps auxfww" to display CPU info of nodes.

Some Further Info

Only processes are displayed that have a CPU load > 0.0 $ as shown by "ps auxfww". This is to avoid the spamming of the table with processes that are not doing anything.

The table is grouped by jobs. So if one job runs on multiple GPUs and nodes they will all be displayed in the same "section" of row. Sections are separated by a horizontal line.

There is a minimal width that the terminal needs to have to display the table correctly. The only column that allows wrapping is the "Command" column.

slurm_job_resource_monitor's People

Contributors

t-schanz 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.