Examine the the finished job's information:
$ bhist -l 124
Job <124>, User <lsfadmin>, Project <default>, Interactive
4 Processors Requested, Requested Resources <type=any>;
date and time stamp: Dispatched to 4 Hosts/Processors <4*lsfhost.localdomain>;
date and time stamp:
date and time stamp: Starting (Pid 4785);
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 |
11 | 0 | 220 | 0 | 0 | 0 | 231 |
Submitting a Simple Job Script with LSF-HPC
This example submits a job script (myjobscript.sh) with the bsub
In this example, the
Show the environment:
$ lsid
Platform LSF HPC 6.0 for SLURM, Sep 23 2004
Copyright
My cluster name is penguin
My master name is lsfhost.localdomain
$ sinfo |
|
|
|
|
|
|
|
|
|
|
|
PARTITION | AVAIL | TIMELIMIT | NODES | STATE | NODELIST |
|
| ||||
lsf | up | infinite | 4 |
| alloc |
|
| ||||
$ lshosts |
|
|
|
|
|
|
|
|
|
|
|
HOST_NAME | type |
| model |
| cpuf ncpus maxmem maxswp server RESOURCES | ||||||
lsfhost.loc | SLINUX6 | DEFAULT | 1.0 |
| 8 | 1M | - | Yes | (slurm) | ||
$ bhosts |
|
|
|
|
|
|
|
|
|
|
|
HOST_NAME | STATUS | JL/U | MAX | NJOBS | RUN |
| SSUSP | USUSP | RSV | ||
lsfhost.loc | ok |
| - | 8 |
| 0 | 0 |
| 0 | 0 | 0 |
Display the script:
$ cat myjobscript.sh #!/bin/sh
srun hostname srun uname
Run the job:
$ bsub -I -n4 myjobscript.sh
Job <1006> is submitted to default queue <normal>. <<Waiting for dispatch>>
<<Starting on lsfhost.localdomain>> n14
n14
Examine the the finished job's information: 103