Hi I'm trying to limit the use of CPUs and GPUs per user. I used sacctmgr to define the limits on one user test: sacctmgr -i modify User carlos set MaxTRES=gres/gpu=1 sacctmgr -i modify User carlos set MaxTRES=cpu=1 Account User MaxTRES QOS -------------------- ---------- ---------------- -------------------- root normal root carlos cpu=1,gres/gpu=1 normal this is the script #!/encs/bin/tcsh #SBATCH --job-name=test #SBATCH --nodes=1 #SBATCH --ntasks=1 #SBATCH --cpus-per-task=2 #SBATCH --mem=4G ##SBATCH --gres=gpu:2 #SBATCH --time=00:05:00 ... Either I comment --gres=gpu:2 to use cpus or --cpus-per-task=2 to use GPUs, when I run the script it bypasses the parameters configured in sacctmgr. in slurm.conf AccountingStorageEnforce=associations,limits What am I missing? It could be done without using qos? the limits for some users (not always the same) will change from time to time. Thanks
> It could be done without using qos? the limits for some users (not always the > same) will change from time to time. From your needs, It looks like the user limits is your best option, especially if these limits will change per user. In order for the AccountingStorageEnforce to take effect a slurmctld restart is required. Have you restarted the slurmctld since changing this parameter? > https://slurm.schedmd.com/slurm.conf.html#OPT_AccountingStorageEnforce
(In reply to Benjamin Witham from comment #1) > > It could be done without using qos? the limits for some users (not always the > > same) will change from time to time. > > From your needs, It looks like the user limits is your best option, > especially if these limits will change per user. In order for the > AccountingStorageEnforce to take effect a slurmctld restart is required. > Have you restarted the slurmctld since changing this parameter? > > > https://slurm.schedmd.com/slurm.conf.html#OPT_AccountingStorageEnforce Thanks, it is working fine now.
No more help needed in this case Again, thank you for your time. Closing ticket