LSF Version 7.3 - Administering Platform LSF

Network Floating Licenses
264 Administering Platform LSF
lsf.cluster.cluster_name
Begin ResourceMap
RESOURCENAME LOCATION
verilog ([all])
End ResourceMap
The INTERVAL in the lsf.shared file indicates how often the ELIM is expected
to update the value of the
Verilog resourcein this case every 60 seconds. Since
this resource is shared by all hosts in the cluster, the ELIM only needs to be started
on the master host. If the
Verilog licenses can only be accessed by some hosts in
the cluster, specify the LOCATION field of the
ResourceMap section as ([hostA
hostB hostC ...])
. In this case an ELIM is only started on hostA.
Submitting jobs The users would submit jobs requiring verilog licenses as follows:
bsub -R "rusage[verilog=1:duration=1]" myprog
Configuring a dedicated queue for floating licenses
Whether you run all license jobs through LSF or run jobs that use licenses that are
outside of LSF control, you can configure a dedicated queue to run jobs requiring a
floating software license.
For each job in the queue, LSF reserves a software license before dispatching a job,
and releases the license when the job finishes.
Use the
bhosts -s command to display the number of licenses being reserved by
the dedicated queue.
Example The following example defines a queue named q_verilog in lsb.queues
dedicated to jobs that require
Verilog licenses:
Begin Queue
QUEUE_NAME = q_verilog
RES_REQ=rusage[verilog=1:duration=1]
End Queue
The queue named q_verilog contains jobs that will reserve one Verilog license
when it is started.
If the
Verilog licenses are not cluster-wide, but can only be used by some hosts in
the cluster, the resource requirement string should include the
defined() tag in the
select section:
select[defined(verilog)] rusage[verilog=1]
Preventing underutilization of licenses
One limitation to using a dedicated queue for licensed jobs is that if a job does not
actually use the license, then the licenses will be under-utilized. This could happen
if the user mistakenly specifies that their application needs a license, or submits a
non-licensed job to a dedicated queue.
LSF assumes that each job indicating that it requires a
Verilog license will actually
use it, and simply subtracts the total number of jobs requesting
Verilog licenses
from the total number available to decide whether an additional job can be
dispatched.