beautypg.com

Show the slurm job id, Run some commands from the pseudo-terminal, Exit the pseudo-terminal – HP XC System 4.x Software User Manual

Page 121: View the interactive jobs, View the finished jobs

background image

Show the SLURM job ID:

$ env | grep SLURM
SLURM_JOBID=74
SLURM_NPROCS=8

Run some commands from the pseudo-terminal:

$ srun hostname
n13
n13
n14
n14
n15
n15
n16
n16

$ srun -n3 hostname
n13
n14
n15

Exit the pseudo-terminal:

$ exit
exit

View the interactive jobs:

$ bjobs -l 1008
Job <1008>, User smith, Project , Status , Queue ,
Interactive pseudo-terminal mode, Command

date and time stamp: Submitted from host n16,
CWD <$HOME/tar_drop1/test>, 8 Processors Requested;
date and time stamp: Started on 8Hosts/Processors<8*lsfhost.localdomain>;
date and time stamp: slurm_id=74;ncpus=8;slurm_alloc=n16,n14,n13,n15;
date and time stamp: Done successfully. The CPU time used is 0.1 seconds.

SCHEDULING PARAMETERS:
r15s r1m r15m ut pg io ls it tmp swp mem
loadSched - - - - - - - - - - -
loadStop - - - - - - - - - - -

View the finished jobs:

$ bhist -l 1008
Job <1008>, User smith, Project ,
Interactive pseudo-terminal mode, Command

date and time stamp: Submitted from host n16, to Queue ,
CWD <$HOME/tar_drop1/test>, 8 Processors Requested;
date and time stamp: Dispatched to 8 Hosts/Processors
<8*lsfhost.localdomain>;
date and time stamp: slurm_id=74;ncpus=8;slurm_alloc=n16,n14,n13,n15;
date and time stamp: Starting (Pid 26446);
date and time stamp: Done successfully. The CPU time used is 0.1 seconds;
date and time stamp: Post job process done successfully;

Summary of time in seconds spent in various states by date and time
PEND PSUSP RUN USUSP SSUSP UNKWN TOTAL
12 0 93 0 0 0 105

A.6 Submitting an Interactive Job with LSF

121