<div dir="ltr">First, if I just add a user to the linux system, then slurm will automatically adds an account named "local". Is that right?<br><br>Then I set a limit for a user to use only one core and 1000M of memory. the command is<br><br>[root@rocks7 mahmood]# sacctmgr modify user mahmood set GrpTRES=cpu=1,mem=1000M<br> Modified user associations...<br>  C = orca       A = local                U = mahmood<br>Would you like to commit changes? (You have 30 seconds to decide)<br>(N/y): y<br>[root@rocks7 mahmood]# sacctmgr show associations format=cluster,account,user,grptres<br>   Cluster    Account       User       GrpTRES<br>---------- ---------- ---------- -------------<br>      orca       root                        <br>      orca       root       root              <br>      orca      local                        <br>      orca      local    mahmood cpu=1,mem=10+<br><br><br><br>However, as I run a job with 2 cores, I see that the state is running!!<br><br><br>[mahmood@rocks7 ~]$ squeue<br>             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)<br>[mahmood@rocks7 ~]$ cat sl2.sh<br>#!/bin/bash<br>SBATCH --job-name = test<br>SBATCH --mem = 20M<br>SBATCH --ntasks = 2<br>SBATCH --output = test.txt<br>/share/apps/stress/bin/stress -c 2<br>[mahmood@rocks7 ~]$ sbatch sl2.sh<br>Submitted batch job 7<br>[mahmood@rocks7 ~]$ squeue<br>             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)<br>                 7   CLUSTER   sl2.sh  mahmood  R       0:03      1 compute-0-0<br>[mahmood@rocks7 ~]$<br><br><br><br>I think something is wrong. Any idea?<br><br><br><br><br>Regards,<br>Mahmood<br><br><br><br><br>On Sat, Mar 24, 2018 at 5:31 PM, Chris Samuel <<a href="mailto:chris@csamuel.org">chris@csamuel.org</a>> wrote:<br>> On Saturday, 24 March 2018 3:42:38 PM AEDT Mahmood Naderan wrote:<br>><br>>> What do you mean by user and account?<br>><br>> User = a user who has been created in Unix and then added to slurmdbd (the<br>> second part is essential)<br>> Account = A Slurm entity that can be thought of as a project or bank account<br>> (the term used in the documentation).<br>><br>>> Assume I have created a user<br>>> account (bob) with useradd command. I wan to set some limits for him.<br>><br>> You also need to add the user to slurmdbd too!<br>><br>>> The GrpTRES format is not clear for me. I assume that mem=200 is a<br>>> global 200MB of memory limit for all running jobs of bob. Therefore,<br>>> if bob is a running job with --mem=100MB, he will not be able to run a<br>>> second job with --mem=300MB. Is that right?<br>><br>> That is my understanding.  I've never used GrpTRES for a user, only on<br>> accounts.<br>><br>>> I don't understand the 1500 value for cpu though. Is that the number of<br>>> cores?!<br>><br>> Yes, that's - they can use no more than 1,500 CPU cores across the whole<br>> cluster.<br>><br>> All the best,<br>> Chris<br>> --<br>>  Chris Samuel  :  <a href="http://www.csamuel.org/">http://www.csamuel.org/</a>  :  Melbourne, VIC<br>><br><br></div>