The following example shows this resource requirement string in an LSF command:
$ bsub
7.5 Getting Information About Jobs
There are several ways you can get information about a specific job after it has been submitted to LSF. This section briefly describes some of the commands that are available under LSF to gather information about a job. This section is not intended as complete information about this topic. It is intended only to give you an idea of the commands that are commonly used, and to describe any differences there may be in the way these commands operate in the HP XC environment.
Refer to the LSF manpages for full information about the commands described in this section.
The following LSF commands are described in this section:
bjobs | Checks the status of a running job (Section 7.5.2) |
bhist | Gets brief or full information about running or finished jobs |
|
7.5.1 Getting Job Allocation Information
Before a job runs, LSF allocates SLURM compute nodes based on job resource requirements. After LSF allocates nodes for a job, it attaches allocation information to the job. You can view job allocation information through the bjobs
A job allocation information string looks like the following:
slurm_id=slurm_jobid;ncpus=slurm_nprocs;slurm_alloc=node_list
This allocation string has the following values:
slurm_id
ncpus
SLURM_JOBID environment variable. This is SLURM allocation ID (Associates LSF job with SLURM allocated resources.)
SLURM_NPROCS environment variable. This the actual number of allocated CPUs. Under
slurm_alloc | Allocated node list (comma separated). |
When LSF starts a job, LSF sets the SLURM_JOBID and SLURM_NPROCS environment variables.
7.5.1.1 Job Allocation Information for a Running Job
The following is an example of the output obtained using the bjobs
$ bjobs
Job <24>, User <lsfadmin>, Project <default>,
Status <RUN>, Queue <normal>,
Interactive
Extsched <SLURM[nodes=4]>, Command </bin/bash>
date and time stamp: Submitted from host <n2>, CWD <$HOME>,
4 Processors Requested, Requested Resources <type=any>; date and time stamp: Started on 4 Hosts/Processors <4*lsfhost.localdomain>; date and time stamp:
SCHEDULING PARAMETERS: |
|
|
|
|
|
|
|
|
| ||
| r15s | r1m | r15m | ut | pg | io | ls | it | tmp | swp | mem |
loadSched | - | - | - | - | - | - | - | - | - | - | - |
loadStop | - | - | - | - | - | - | - | - | - | - | - |
Using LSF