Viewing information about SLAs and service classes
Monitoring the progress of an SLA (bsla)
Use bsla to display the properties of service classes configured in lsb.serviceclasses and dynamic state information for each service class. The following are some examples:
- One velocity goal of service class Tofino is active and on time. The other configured velocity
goal is inactive.
% bslaSERVICE CLASS NAME: Tofino-- day and night velocityPRIORITY = 20GOAL: VELOCITY 30ACTIVE WINDOW: (17:30-8:30)STATUS: InactiveSLA THROUGHPUT: 0.00 JOBS/CLEAN_PERIODGOAL: VELOCITY 10ACTIVE WINDOW: (9:00-17:00)STATUS: Active:On timeSLA THROUGHPUT: 10.00 JOBS/CLEAN_PERIODNJOBS PEND RUN SSUSP USUSP FINISH300 280 10 0 0 10 -
The deadline goal of service class Uclulet is not being met, and bsla displays status Active:Delayed.
% bslaSERVICE CLASS NAME: Uclulet-- working hoursPRIORITY = 20GOAL: DEADLINEACTIVE WINDOW: (8:30-19:00)STATUS: Active:DelayedSLA THROUGHPUT: 0.00 JOBS/CLEAN_PERIODESTIMATED FINISH TIME: (Tue Oct 28 06:17)OPTIMUM NUMBER OF RUNNING JOBS: 6NJOBS PEND RUN SSUSP USUSP FINISH40 39 1 0 0 0 -
The configured velocity goal of the service class Kyuquot is active and on time. The configured deadline goal of the service class is inactive.
% bsla KyuquotSERVICE CLASS NAME: Kyuquot-- Daytime/Nighttime SLAPRIORITY = 23USER_GROUP: user1 user2GOAL: VELOCITY 8ACTIVE WINDOW: (9:00-17:30)STATUS: Active:On timeSLA THROUGHPUT: 0.00 JOBS/CLEAN_PERIODGOAL: DEADLINEACTIVE WINDOW: (17:30-9:00)STATUS: InactiveSLA THROUGHPUT: 0.00 JOBS/CLEAN_PERIODNJOBS PEND RUN SSUSP USUSP FINISH0 0 0 0 0 0 - The throughput goal of service class Inuvik is always active. bsla displays:
- Status as active and on time
- An optimum number of 5 running jobs to meet the goal
- Actual throughput of 10 jobs per hour based on the last
CLEAN_PERIOD
% bsla InuvikSERVICE CLASS NAME: Inuvik-- constant throughputPRIORITY = 20GOAL: THROUGHPUT 6ACTIVE WINDOW: Always OpenSTATUS: Active:On timeSLA THROUGHPUT: 10.00 JOBS/CLEAN_PERIODOPTIMUM NUMBER OF RUNNING JOBS: 5NJOBS PEND RUN SSUSP USUSP FINISH110 95 5 0 0 10
Tracking historical behavior of an SLA (bacct)
Use bacct to display historical performance of a service class. For example, service classes Inuvik and Tuktoyaktuk configure throughput goals.
% bsla
SERVICE CLASS NAME: Inuvik
-- throughput 6
PRIORITY = 20
GOAL: THROUGHPUT 6
ACTIVE WINDOW: Always Open
STATUS: Active:On time
SLA THROUGHPUT: 10.00 JOBS/CLEAN_PERIOD
OPTIMUM NUMBER OF RUNNING JOBS: 5
NJOBS PEND RUN SSUSP USUSP FINISH
111 94 5 0 0 12
--------------------------------------------------------------
SERVICE CLASS NAME: Tuktoyaktuk
-- throughput 3
PRIORITY = 15
GOAL: THROUGHPUT 3
ACTIVE WINDOW: Always Open
STATUS: Active:On time
SLA THROUGHPUT: 4.00 JOBS/CLEAN_PERIOD
OPTIMUM NUMBER OF RUNNING JOBS: 4
NJOBS PEND RUN SSUSP USUSP FINISH
104 96 4 0 0 4These two service classes have the following historical performance. For SLA Inuvik, bacct shows a total throughput of 8.94 jobs per hour over a period of 20.58 hours:
% bacct -sla Inuvik
Accounting information about jobs that are:
- submitted by users user1,
- accounted on all projects.
- completed normally or exited
- executed on all hosts.
- submitted to all queues.
- accounted on service classes Inuvik,
--------------------------------------------------------------
SUMMARY: ( time unit: second )
Total number of done jobs: 183 Total number of exited jobs: 1
Total CPU time consumed: 40.0 Average CPU time consumed: 0.2
Maximum CPU time of a job: 0.3 Minimum CPU time of a job: 0.1
Total wait time in queues: 1947454.0
Average wait time in queue:10584.0
Maximum wait time in queue:18912.0 Minimum wait time in queue: 7.0
Average turnaround time: 12268 (seconds/job)
Maximum turnaround time: 22079 Minimum turnaround time: 1713
Average hog factor of a job: 0.00 ( cpu time / turnaround time )
Maximum hog factor of a job: 0.00 Minimum hog factor of a job: 0.00
Total throughput: 8.94 (jobs/hour) during 20.58 hours
Beginning time: Oct 11 20:23 Ending time: Oct 12 16:58
For SLA Tuktoyaktuk, bacct shows a total throughput of 4.36 jobs per hour over a period of 19.95 hours:
% bacct -sla
Tuktoyaktuknaround time )
Maximum hog fa
Accounting information about jobs that are:
- submitted by users user1,
- accounted on all projects.
- completed normally or exited
- executed on all hosts.
- submitted to all queues.
- accounted on service classes Tuktoyaktuk,
--------------------------------------------------------------
SUMMARY: ( time unit: second )
Total number of done jobs: 87 Total number of exited jobs: 0
Total CPU time consumed: 18.0 Average CPU time consumed: 0.2
Maximum CPU time of a job: 0.3 Minimum CPU time of a job: 0.1
Total wait time in queues: 2371955.0
Average wait time in queue:27263.8
Maximum wait time in queue:39125.0 Minimum wait time in queue: 7.0
Average turnaround time: 30596 (seconds/job)
Maximum turnaround time: 44778 Minimum turnaround time: 3355
Average hog factor of a job: 0.00 ( cpu time / turctor of a job: 0.00 Minimum hog factor of a job: 0.00
Total throughput: 4.36 (jobs/hour) during 19.95 hours
Beginning time: Oct 11 20:50 Ending time: Oct 12 16:47Because the run times are not uniform, both service classes actually achieve higher throughput than configured.