Hi Arnaud,

Le 02/06/2016 à 13:22, A. RENARD - URCA a écrit :

Dear all,

I'm looking for signification of xx_event_table.state column.
I generally (for other status) can find those information in slurm/slurm.h.
Unfortunatly, i can't find it for this one.

Where can I find those significations ?

Right here: https://github.com/SchedMD/slurm/blob/master/slurm/slurm.h.in#L830

It is a 16 bits wide bitmap. The first 12 bits (& 0xfff0) are the flags, the last 4 bits (& 0x000f) are the base, ie. one of the values in the enum node_states.

FWIW, here is an example of how to extract the state out of the integer in python:

https://github.com/edf-hpc/hpcstats/blob/master/HPCStats/Importer/Events/EventImporterSlurm.py#L321

Best,
Rémi

Reply via email to