Example 10-2 Examples of Launching LSF Jobs Without the srun Command

The following bsub command line invokes the bash shell to run the hostname command with the pdsh command:

[lsfadmin@n16 ~]$ bsub -n4 -I -ext "SLURM[nodes=4]" /bin/bash -c 'pdsh -w "$LSB_HOSTS" hostname' Job <118> is submitted to default queue <interactive>.

<<Waiting for dispatch...>> <<Starting on lsfhost.localdomain>> n15: n15

n14: n14

n16: n16

n13: n13

The following command line uses the mpirun command to launch the hello_world example program on one core on each of four nodes:

[lsfadmin@n16 ~]$ bsub -n4 -I -ext "SLURM[nodes=4]" mpirun -lsb_hosts ./hello_world Job <119> is submitted to default queue <interactive>.

<<Waiting for dispatch...>> <<Starting on lsfhost.localdomain>> Hello world! I'm 0 of 4 on n13 Hello world! I'm 1 of 4 on n14 Hello world! I'm 2 of 4 on n15 Hello world! I'm 3 of 4 on n16 [lsfadmin@n16 ~]$"

The differences described in HP XC System Software documentation take precedence over descriptions in the LSF documentation from Platform Computing. See “Differences Between LSF and LSF Integrated with SLURM” and the lsf_diff(1) manpage for more information on the subtle differences between LSF and LSF integrated with SLURM.

10.3 Differences Between LSF and LSF Integrated with SLURM

LSF integrated with SLURM for the HP XC environment supports all the standard features and functions that LSF supports, except for those items described in this section, in “Using LSF Integrated with SLURM in the HP XC Environment”, and in the HP XC release notes for LSF.

By LSF standards, the HP XC system is a single host. Therefore, all LSF “per-host” configuration and “per-host” options apply to the entire HP XC system.

LSF integrated with SLURM knows only about the HP XC compute nodes through SLURM, so any preference or resource request that is intended for the HP XC compute nodes must go through LSF's external SLURM scheduler. See the “LSF-SLURM External Scheduler” (page 92) for more details.

LSF requires LSF daemons on every node. These daemons allow LSF to extract detailed information from each node, which you display or use for scheduling. This information includes CPU load, number of users, free memory, and so on.

When LSF is integrated with SLURM, it runs daemons only on one node in the HP XC system. Therefore, it relies on SLURM for static resource information (that is, number of CPUs, total physical memory, and any assigned SLURM “features”), and bases its scheduling on that static information.

LSF integrated with SLURM does not collect the following information from each node in the HP XC system:

maxswap

r15m

tmp

ndisks

ut

swp

r15s

pg

mem load

r1m

io

 

The lshosts and lsload commands display - for each of these items.

88 Using LSF