Skip to main content

Xsinfo is a command line tool summarizing the nodes and cores availability on a scheduler using SLURM.

Project description

Xsinfo

Collect info about the current nodes and cores usage so that it can help one choose which and how much resource can be allocated for a job on SLURM.

Install

git clone https://github.com/FranckLejzerowicz/Xsinfo.git
cd Xsinfo
pip install -e .

*Note that python should be python3

Outputs

Two outputs:

Table

In a file located in ~/.xsinfo/YYYY-MM-DD.tsv containing the table returned by the following Slurm's sinfo command and expanded with cpu_load, memory_load (both in % of available CPUs and memory per node), as well as the number of allocated and idle CPUs per node:

sinfo --Node -h -O NodeList:10,Partition:10,StateLong:10,CPUsLoad:10,CPUsState:12,Sockets:4,Cores:4,Threads:4,Memory:12,FreeMem:12

Note: if Xsinfo is re-run the same day twice, it will not re-run this sinfo command. Instead, it will read the expanded ~/.xsinfo/YYYY-MM-DD.tsv file. If you need to re-run Xsinfo the same day if node usage changes that quick, please use the --refresh option (in ~/.xsinfo/ is only kept the latest table).

This table can be used by Xpbs - optionally - to allocate CPUs from idle nodes that have the right amount of memory available.

Stdout

Summaries are printed in stdout, including:

  • "nodes per % of cpu load": nodes are binned per quartile of cpu load.
  • "nodes per % of mem load": nodes are binned per quartile of memory load.

For the nodes binned in these two different ways are of shown:

  • Their total number of CPUs (cpus)
  • Their total available memory in GiB (mem(gb))
  • Their average and standard deviation of available memory (av and ±)
  • Their number (of nodes) (nodes)
  • Their names (of nodes) (names)

Usage

Just run:

Xsinfo [OPTIONS]
  • --torque: Use if your scheduler is Torque (and not Slurm), as the native qstats summary is a bit different and thus Xsinfo has to know that in order to properly parse out the node usage information [OPTION NOT YET WORKING!]
  • --refresh: Force rewriting of the expanded node info collected today.
  • --show: Will print the full cpu and memory info per nodes.

Options

Usage: Xsinfo [OPTIONS]

Options:
  --torque / --no-torque        Switch from Slurm to Torque  [default: no-
                                torque]
  --refresh, --no-refresh TEXT  Whether to update any sinfo snapshot file
                                written today in ~/.slurm.
  --version                     Show the version and exit.
  --help                        Show this message and exit.

Bug Reports

contact franck.lejzerowicz@gmail.com

Project details


Release history Release notifications | RSS feed

This version

1.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Xsinfo-1.2.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Xsinfo-1.2-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file Xsinfo-1.2.tar.gz.

File metadata

  • Download URL: Xsinfo-1.2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for Xsinfo-1.2.tar.gz
Algorithm Hash digest
SHA256 0a169a223f136c44f5a00dfac86a14c8abbc34006e53b14acfa7220aef1a7389
MD5 4bfa707683a0b52c80a93fd22355646f
BLAKE2b-256 a54808d4ecd025271ed56a77379e0e2ae36c1aa85aa948e1168fd2e9a8983ae9

See more details on using hashes here.

File details

Details for the file Xsinfo-1.2-py3-none-any.whl.

File metadata

  • Download URL: Xsinfo-1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for Xsinfo-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e4579c9168e76fce12e63d6b81b7720f3c4539a279b4fe18dcf771c2f6104b45
MD5 2e9df8d91604e0ded5e1697233e21017
BLAKE2b-256 ab72f5ff3ff893b250d1dc61908c7401e909f6fb5a58befb1c2fd829d32eb6c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page