Options

You configured a static shared resource for licenses for the Verilog application as a resource called verilog_lic. To submit a job that runs on a host when there is a license available:

bsub -R "select[defined(verilog_lic)] rusage[verilog_lic=1]" myjob

The following job requests 20 MB memory for the duration of the job, and 1 license for 2 minutes:

bsub -R "rusage[mem=20, license=1:duration=2]" myjob

The following job requests 20 MB of memory and 50 MB of swap space for 1 hour, and 1 license for 2 minutes:

bsub -R "rusage[mem=20:swp=50:duration=1h, license=1:duration=2]" myjob

The following job requests 20 MB of memory for the duration of the job, 50 MB of swap space for 1 hour, and 1 license for 2 minutes.

bsub -R "rusage[mem=20,swp=50:duration=1h, license=1:duration=2]" myjob

The following job requests 50 MB of swap space, linearly decreasing the amount reserved over a duration of 2 hours, and requests 1 license for 2 minutes:

bsub -R "rusage[swp=50:duration=2h:decay=1, license=1:duration=2]" myjob

The following job requests two resources with same duration but different decay:

bsub -R "rusage[mem=20:duration=30:decay=1, lic=1:duration=30]" myjob

You are running an application version 1.5 as a resource called app_lic_v15 and the same application version 2.0.1 as a resource called app_lic_v201. The license key for version 2.0.1 is backward compatible with version 1.5, but the license key for version 1.5 does not work with 2.0.1.

Job-level resource requirement specifications that use the operator take precedence over any queue-level resource requirement specifications.

If you can only run your job using one version of the application, submit the job without specifying an alternative resource. To submit a job that only uses

app_lic_v201:

bsub -R "rusage[app_lic_v201=1]" myjob

If you can run your job using either version of the application, try to reserve version 2.0.1 of the application. If it is not available, you can use version 1.5. To submit a job that tries app_lic_v201 before trying app_lic_v15:

bsub -R "rusage[app_lic_v201=1app_lic_v15=1]" myjob

If different versions of an application require different system resources, you can specify other resources in your rusage strings. To submit a job that uses 20 MB of memory for app_lic_v201 or 20 MB of memory and 50 MB of swap space for app_lic_v15:

bsub -R "rusage[mem=20:app_lic_v15=1mem=20:swp=50:app_lic_v201=1]" myjob

-Sstack_limit Sets a per-process (soft) stack segment size limit for each of the processes that belong to the batch job (see getrlimit(2)).

By default, the limit is specified in KB. Use LSF_UNIT_FOR_LIMITS in lsf.conf to specify a larger unit for the limit (MB, GB, TB, PB, or EB).

-ssignal Send the specified signal when a queue-level run window closes.

By default, when the window closes, LSF suspends jobs running in the queue (job state becomes SSUSP) and stops dispatching jobs from the queue.

198Platform LSF Command Reference