Submit the job, Show the job allocation, Show the slurm job id – HP XC System 3.x Software User Manual

Page 119: Run some commands from the pseudo-terminal, Exit the pseudo-terminal, View the interactive jobs

Advertising
background image

$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 4 idle n[13-16]

Submit the job:

$ bsub -n8 -Ip /bin/sh
Job <1008> is submitted to default queue <normal>.
<<Waiting for dispatch>>
<<Starting on lsfhost.localdomain>>

Show the job allocation:

$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 4 alloc n[13-16]

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 <default>, Status <DONE>, Queue <normal>,
Interactive pseudo-terminal mode, Command </bin/sh>

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

Submit the job:

119

Advertising