
$ bsub -Is -n4 -ext "SLURM[nodes=4]" /usr/bin/xterm
Job <101> is submitted to default queue <normal>.
<<Waiting for dispatch ...>>
<<Starting on lsfhost.localdomain>>
n1
At this time an xterm terminal w ind ow appears on your disp lay. The xterm program runs on
the first node in the allocation. You can execute multiple srun and mpirun commands from
this te rminal; they wil l make use of the resources that were reserved by LSF-HPC.
The f ollowing examples are from an int
eractive s ession.
Example 7-17: View Your Environment
$ printenv | grep SLURM
SLURM_JOBID=105
SLURM_NPROCS=4
$ printenv LSB_HOSTS
n1 n2 n3 n4
$ printenv LSB_MCPU_HOSTS
n11n21n31n41
Example 7-18: View Your Allocation in SLURM
$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 4 alloc n[1-4]
lsf up infinite 6 idle n[5-10]
$ squeue -j $SLURM_JOBID
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
105 lsf hptclsf@ test R 1:59 4 n[1-4]
Example 7-19: View Your Running Job in LSF
$ bjobs
JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME
84 test RUN normal lsfhost.loc 4*lsfhost.l *bin/xterm date and time stamp
$ bhosts
HOST_NAME STATUS JL/U MAX NJOBS RUN SSUSP USUSP RSV
lsfhost.localdomai ok - 2044000
Example 7-20: View Job Details in LSF
$ bjobs -l 84
Job <84>, User <test>, Project <default>, Status <RUN>, Queue <normal>,
Inter
active pseudo-terminal shell mode, Command
</usr/bin/xterm>
date and time stamp: Submitted from host <lsfhost.localdomain>, CWD
<$HOME>,
4 Processors Requested;
date and time stamp: Started on 4 Hosts/Processors
<4*lsfhost.localdomain>;
date and time stamp: slurm_id=105;ncpus=4;slurm_alloc=n[1-4];
SCHEDULING PARAMETERS:
r15s r1m r15m ut pg io ls it tmp swp mem
loadSched - - - ------ - -
loadStop - - - ------ - -
bhist -l 84
Job <84>, User <test>, Project <default>, Interactive pseudo-terminal
shell m
ode, Command </usr/bin/xterm>
date and time stamp: Submitted from host <lsfhost.localdomain>, to Queue
Using LSF 7-21
Comentarios a estos manuales