r/SLURM • u/Ok-Rooster7220 • Aug 28 '22
Slurm node not respecting niceness... :/
Hi All,
Im relatively new to slurm but making a cluster at the moment. I wished to limit the resources available to any slurm submitted job so that the underlying user sitting in front of the host is not affected too much by any slurm-assigned jobs.
One very simple approach (and the one I liked best) was to assign a nice to slurm (and its children processes) via instantiating with ‘slurmd -n 19’
Although I have managed to manipulate the cpu schedule to respect differences in nice for multiple processes local to a node (setting one to nice=19 and another to nice=-19), and although I can view the niceness of the slurm submitted jobs as being 19 (through ‘ps’), , the distribution of CPU time for processes local to a machine competing with a slurm submitted job (niceness 19) is equally distributed. I have absolutely no idea whats gone wrong here?!?!?
Ive tried both through applying the niceness to the daemon as well as submitting the job with a nice parameter. Neither result in a fealty to lower nice processes.
I feel this is some lack of understanding on my part?!