HP XC System Software Administration Guide Version 3.1
Example 15-4 is a similar example, but 20 processors are reserved.
Example 15-4 Launching Another Job Without the JOB_STARTER Script Configured
$ bsub -I -n20 hostname
Job <21> is submitted to default queue <normal>.
<<Waiting for dispatch...>>
<<starting on lsfhost.localdomain>>
n120
In both of the previous examples, processors were reserved but not used. To ensure that a job is launched
properly on the reserved nodes without the JOB_STARTER script configured, the user must preface each
command with either the srun command or the mpirun -srun command, as shown in Example 15-5
and Example 15-6.
Example 15-5 Launching a Job Without the JOB_STARTER Script Using srun
$ bsub -I srun hostname
Job <22> is submitted to default queue <normal>.
<<Waiting for dispatch...>>
<<starting on lsfhost.localdomain>>
n99
Example 15-6 Launching a Job Without the JOB_STARTER Script Using mpirun
$ bsub -I -n4 mpirun -srun hostmpi
Job <23> is submitted to default queue <normal>.
<<Waiting for dispatch...>>
<<starting on lsfhost.localdomain>>
task 0 running on n1
task 1 running on n1
task 2 running on n2
task 3 running on n2
Example 15-7 illustrates launching the same job as in Example 15-3, but with the JOB_STARTER script
configured.
Example 15-7 Basic Job Launch with the JOB_STARTER Script Configured
$ bsub -I hostname
Job <24> is submitted to default queue <normal>.
<<Waiting for dispatch...>>
<<starting on lsfhost.localdomain>>
n99
15.8 Monitoring and Controlling LSF-HPC with SLURM Jobs
All the standard LSF commands for monitoring a job are supported. The bjobs command reports the
status of a job. The following is an example of the bjobs command:
$ bjobs
JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME
116 lsfadmi RUN normal lsfhost.loc 8*lsfhost.l * sleep 50 date
time
You can use the -l (long) option to obtain detailed information about a job, as shown in this example:
$ bjobs -l 116
Job <116>, User <lsfadmin>, Project default, Status <RUN>, Queue <normal>,
Co
15.8 Monitoring and Controlling LSF-HPC with SLURM Jobs 185