Created attachment 44909 [details] node_bitmap solution ## Problem `slurm_user_jobs_nodes_alloc` and `slurm_jobs_nodes_alloc` report inflated node counts when a user runs multiple sub-node-sized jobs that shared physical nodes. ## Root cause `nodes_alloc` is computed by summing `total_nodes` across each individual running job for the user. When multiple jobs fit on the same physical node (e.g. jobs requesting only a fraction of a node's CPUs), each job contributed its own `total_nodes = 1` to the sum, even though they all shared the same node. ## Solution Track node allocation using bitmaps and OR each job's `node_bitmap`. After all jobs have been processed, count the set bits to get the actual number of unique nodes in use.
https://support.schedmd.com/show_bug.cgi?id=24999
Hi Charlie, Thanks for reporting. We are aware of this issue and a new fix is being implemented. We'll let you know once it is done. Thanks!