Both sides previous revisionPrevious revisionNext revision | Previous revision |
wiki:slurm [2023/08/29 07:52] – [SLURM useful commands] admin | wiki:slurm [2024/03/29 10:07] (current) – [SLURM useful commands] admin |
---|
| |
| |
* request a node with 12GB of RAM (total): ''%%sbatch --mem=12G job_script%%'', to see how much memory is currently available on the nodes: ''%%sinfo --Node -l%%'' | * Request a node with 12GB of RAM (total): ''%%sbatch --mem=12G job_script%%''. To see how much memory is currently available on the nodes: ''%%sinfo --Node -l%%'' |
| |
| * Request a node with 6GB of RAM per core (CPU): ''%%sbatch --mem-per-cpu=6G job_script%%''. |
| |
| |
| * Most of the Keck nodes have 24 GB of RAM (23936 B) but there are two nodes which have 32 GB (31977 B) of RAM (nodes w16 and w17). If your job needs more than 20GB of RAM (but less that 32GB) you can request one of the "high-memory" nodes with the following statements in your SLURM batch file: |
| |
| #SBATCH --mem=30G # request allocation of 30GB RAM for the job |
| #SBATCH --nodelist=w16 (or w17) # request the job to be sent to w16 or w17, pick a node which has no jobs running |
| |
* request a node with 6GB of RAM per core (CPU): ''%%sbatch --mem-per-cpu=6G job_script%%''. | |
| |
* canceling jobs: | * canceling jobs: |
|scontrol show job <jobid> -dd|show details for a running job, -dd requests more detail| | |scontrol show job <jobid> -dd|show details for a running job, -dd requests more detail| |
| |
|sstat -j <jobid>.batch --format JobID,MaxRSS, MaxVMSize,NTasks | show status information for running job you can find all the fields you can specify with the --format parameter by running sstat -e| | |%%sstat -j <jobid>.batch --format JobID,MaxRSS, MaxVMSize,NTasks%% | show status information for running job you can find all the fields you can specify with the %%--format%% parameter by running sstat -e| |
|sacct -j <jobid> --format=JobId,AllocCPUs,State,ReqMem, MaxRSS,Elapsed,TimeLimit,CPUTime,ReqTres|get statistics on a completed job you can find all the fields you can specify with the --format parameter by running sacct -e you can specify the width of a field with % and a number, for example --format=JobID%15 for 15 characters| | |%%sacct -j <jobid> --format=JobId,AllocCPUs,State,ReqMem, MaxRSS,Elapsed,TimeLimit,CPUTime,ReqTres%%|get statistics on a completed job you can find all the fields you can specify with the %%--format%% parameter by running sacct -e you can specify the width of a field with % and a number, for example %%--format=JobID%15%% for 15 characters| |
| |
| |
| |
sbatch gaussian.slurm | sbatch gaussian.slurm |
| |
You can verify that the jobs is in the queue: | You can verify that the jobs is in the queue: |
| |