User Tools

Site Tools


cluster:218

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cluster:218 [2022/08/29 13:17]
hmeij07 [CentOS7 Slurm Template]
cluster:218 [2025/06/19 15:43] (current)
hmeij07
Line 93: Line 93:
  
 <code> <code>
 +
 +Account
 +#SBATCH --account=pifacultyusername
  
 NODE control NODE control
Line 101: Line 104:
 #SBATCH -B 2:4:1 # S:C:T=sockets/node:cores/socket:threads/core #SBATCH -B 2:4:1 # S:C:T=sockets/node:cores/socket:threads/core
 #SBATCH --mem=250           # needed to override oversubscribe #SBATCH --mem=250           # needed to override oversubscribe
-#SBATCH --ntasks-per-node=1 # needed to override oversubscribe+#SBATCH --ntasks-per-node=1 # perhaps needed to override oversubscribe
 #SBATCH --cpus-per-task=1   # needed to override oversubscribe #SBATCH --cpus-per-task=1   # needed to override oversubscribe
  
Line 121: Line 124:
  
 </code> </code>
 +
 +** Pending Jobs  **
 +
 +I keep having to inform users that with -n 1 and -cpu 1 your job can still go in pending state because user forgot to reserve memory ... so silly slurm assumes your job needs all the node's memory. Here is my template then
 +
 +<code>
 +
 +FirstName, your jobs are pending because you did not request memory 
 +and if not then slurm assumes you need all memory, silly. 
 +Command "scontrol show job JOBID" will reveal ...
 +
 +JobId=1062052 JobName=3a_avgHbond_CPU
 +   NumNodes=1 NumCPUs=1 NumTasks=1 CPUs/Task=1 ReqB:S:C:T=0:0:1:1
 +   TRES=cpu=1,mem=191047M,node=1,billing=1    <---------
 +
 +I looked (command "ssh n?? top -u username -b -n 1", look for the VIRT value) 
 +and you need less than 1G per job so with --mem=1024 and n=1 and cpu=1 
 +you should be able to load 48 jobs onto n100. 
 +Consult output of command "sinfo -lN"
 +
 +</code>
 +
  
 ==== MPI ==== ==== MPI ====
Line 369: Line 394:
 # #
 # GENERAL # GENERAL
 +#SBATCH --account=pifacultyusername
 #SBATCH --job-name="test" #SBATCH --job-name="test"
 #SBATCH --output=out   # or both in default file #SBATCH --output=out   # or both in default file
Line 485: Line 511:
 # #
 # GENERAL # GENERAL
 +#SBATCH --account=pifacultyusername
 #SBATCH --job-name="test" #SBATCH --job-name="test"
 #SBATCH --output=out   # or both in default file #SBATCH --output=out   # or both in default file
cluster/218.1661779031.txt.gz · Last modified: 2022/08/29 13:17 by hmeij07