Hi,
based on information given in job_submit_lua.c we decided not to use
pn_min_memory any more. The comment in src says:
/*
* FIXME: Remove this in the future, lua can't handle 64bit
* numbers!!!. Use min_mem_per_node|cpu instead.
*/
Instead we check in job_submit.lua for s,th, like
if (job_desc.min_mem_per_node ~= nil) and
(job_desc.min_mem_per_node == 0) then
slurm.log_user("minimum real mem per node specified as %u",
job_desc.min_mem_per_node)
end
For mem-per-cpu things are more confusing. Somehow min_mem_per_cpu =
2^63 = 0x8000000000000000 if sbatch/salloc does not set --mem-per-cpu,
instead of being nil as expected !
But one can still check for
if (job_desc.min_mem_per_cpu == 0) then
slurm.log_user("minimum real mem per CPU specified as %u",
job_desc.min_mem_per_cpu)
end
Maybe this helps a bit.
CU,
Hendryk