Open megatron-uk opened 3 weeks ago
Thinking about this further, I think the issue stems from the fact that the defined mapper function for 'ReqMem' fields is float_bytes. If the mapper is changed to slurmmem() then the export of fields succeeds.
Is float_bytes() the default for ReqMem for a reason, or is this a bug?
On my older Slurm system (sacct -V reports 20.11.8), when attempting to dump any amount of records, for example:
slurm2sql.py --history-days=7 -a slurm.sqlite3
The
convert()
code in slurm2sql.py does not seem to be handling memory-per-core values as recorded by Slurm:I can see the function
slurmmem()
does some parsing of these type of values for fields which are mapped to that function on line 927, but it doesn't appear to be getting called on this field (it's ReqMem in the above case).