Viewing advance reservation information
Use the brsvs command to view information about advance reservations. You can see all current reservations, show a weekly planner for your reservations, or see reservation types and their associated jobs. Use the bjobs command to see the reservation ID for an advance reservation job. Use the bacct command to view historical accounting information for advance reservations.
Procedure
brsvs
RSVID TYPE USER NCPUS RSV_HOSTS TIME_WINDOW
user1#0 user user1 0/1024 hostA:0/1024 11/12/6/0-11/12/8/0
user2#0 user user2 0/1024 hostA:0/1024 12:0-14:0 *
groupA#0 group groupA -/2048 hostA:-/1024 3:0:0-3:3:0 *
hostB:0/1024
system#0 sys system 1024 hostA:0/1024 5:18:0-5:20:0 *
- A one-time reservation displays fields that are separated by slashes
(month/day/hour/minute):
11/12/14/0-11/12/18/0 - A recurring reservation displays fields that are separated by colons
(day:hour:minute). An asterisk (*)
indicates a recurring reservation:
5:18:0-5:20:0 *
-/2048 hostA:-/1024
Showing a weekly planner for advance reservations
Use the brsvs -p and brsvs -z commands to show a weekly planner for specified hosts using advance reservation.
Procedure
Showing reservation types and associated jobs
The brsvs -l command shows each advance reservation in long format.
Procedure
The rows that follow the reservation information show the
- The status of the reservation
- Time when the next instance of recurring reservation is active
- Type of reservation (open or closed)
- The status by job ID of any job associated with the specified reservation (FINISHED, PEND, RUN, or SUSP)
brsvs -l
RSVID TYPE USER NCPUS RSV_HOSTS TIME_WINDOW
user1_1#0 user user1_1 10/10 host1:4/4 8:00-22:00 *
host2:4/4
host3:2/2
Reservation Status: Active
Next Active Period:
Sat Aug 22 08:00:00 2009 - Sat Aug 22 22:00:00 2009
Creator: user1_1
Reservation Type: CLOSED
FINISHED Jobs: 203 204 205 206 207 208 209 210 211 212
PEND Jobs: 323 324
RUN Jobs: 313 314 316 318 319 320 321 322
SUSP Jobs: 315 317
Resource Unit: Host
brsvs -l user1_1#0
RSVID TYPE USER NCPUS RSV_HOSTS TIME_WINDOW
user1_1#0 user user1 0/2 lsfrhel04:0/2 4/13/23/30-4/13/23/40
Reservation Status: Inactive
Creator: user1
Reservation Type: CLOSED
Resource Unit: Slot
Showing the reservation ID for an advance reservation job
The bjobs -l command shows the reservation ID used by a job.
Procedure
bjobs -l
Job <1152>, User <user1>, Project <default>, Status <PEND>, Queue <normal>,
Reservation <user1#0>, Command <covfefe>
Mon Nov 12 5:13:21 2009: Submitted from host <hostB>, CWD </home/user1/jobs>;
...
Viewing historical accounting information for advance reservations
The bacct -U command shows historical accounting information about advance reservations.
Procedure
- The reservation ID specified on the -U option.
- The type of reservation (user or system)
- The user names of users who used the brsvadd command to create the advance reservations
- The user names of the users who can use the advance reservations for jobs that are submitted with the bsub -U option.
- Number of slots reserved
- List of hosts for which job slots are reserved
- Time window for the reservation.
- A one-time reservation displays fields that are separated by slashes
(month/day/hour/minute).
11/12/14/0-11/12/18/0
- A one-time reservation displays fields that are separated by slashes
(month/day/hour/minute).
- A recurring reservation displays fields that are separated by colons
(day:hour:minute).
5:18:0 5:20:0
For example, the following advance reservation has four time modifications during its life time. The original reservation has the scope of one user (user1) and one host (hostA) with one slot. The various modifications change the user to user2, then back to user1, adds, then removes one slot from the reservation.
bacct -U user1#1
Accounting about advance reservations that are:
- accounted on advance reservation IDs user1#1,
- accounted on advance reservations created by user1,
---------------------------- SUMMARY ----------------------------
RSVID: user1#1
TYPE: user
CREATOR: user1
Total number of jobs: 0
Total CPU time consumed: 0.0 second
Maximum memory of a job: 0.0 MB
Maximum swap of a job: 0.0 MB
Total active time: 0 hour 6 minute 42 second
Resource Unit: Host
------------------------ Configuration 0 ------------------------
RSVID TYPE CREATOR USER NCPUS RSV_HOSTS
user1#1 user user1 user1 1 hostA:1
Active time with this configuration: 0 hour 0 minute 16 second
------------------------ Configuration 1 ------------------------
RSVID TYPE CREATOR USER NCPUS RSV_HOSTS
user1#1 user user1 user2 1 hostA:1
Active time with this configuration: 0 hour 0 minute 24 second
------------------------ Configuration 2 ------------------------
RSVID TYPE CREATOR USER NCPUS RSV_HOSTS
user1#1 user user1 user2 1 hostA:1
Active time with this configuration: 0 hour 1 minute 58 second
------------------------ Configuration 3 ------------------------
RSVID TYPE CREATOR USER NCPUS RSV_HOSTS
user1#1 user user1 user1 2 hostA:2
Active time with this configuration: 0 hour 1 minute 34 second
------------------------ Configuration 4 ------------------------
RSVID TYPE CREATOR USER NCPUS RSV_HOSTS
user1#1 user user1 user1 1 hostA:2
Active time with this configuration: 0 hour 2 minute 30 second
The following reservation (user2#0) has one time modification during its life time. The original one has the scope of one user (user2) and one host (hostA) with one slot; the modification changes the user to user3.
bacct -U user2#0
Accounting about advance reservations that are:
- accounted on all advance reservation IDs:
- accounted on advance reservations created by all users:
--------------------------- SUMMARY -------------------------
RSVID: user2#0
TYPE: user
CREATOR: user2
Total number of jobs: 1
Total CPU time consumed: 5.0 second
Maximum memory of a job: 1.7 MB
Maximum swap of a job: 7.5 MB
Total active time: 2 hour 0 minute 0 second
------------------------ Configuration 0 ------------------------
RSVID TYPE CREATOR USER NCPUS RSV_HOSTS
user1#0 user user2 user2 1 hostA:1
Active time with this configuration: 1 hour 0 minute 0 second
------------------------ Configuration 1 ------------------------
RSVID TYPE CREATOR USER NCPUS RSV_HOSTS
user1#0 user user2 user3 1 hostA:1
Active time with this configuration: 1 hour 0 minute 0 second