-pack
Submits job packs instead of an individual job.
Categories
pack
Synopsis
bsub -pack job_submission_fileConflicting options
Do not use with any other bsub option in the command line.
Description
The purpose of the job packs feature is to speed up the submission of a large number of jobs. When job pack submission is enabled, you can submit jobs by submitting a single file containing multiple job requests.
Specify the full path to the job submission file. The job packs feature must be enabled (by defining LSB_MAX_PACK_JOBS in lsb.conf) to use the -pack option.
In the command line, this option is not compatible with any other bsub options. Do not put any other bsub options in the command line, as they must be included in each individual job request in the file.
In the job submission file, define one job request per line, using normal bsub syntax but omitting the word "bsub". For requests in the file, job pack submission supports all bsub options in the job submission file except for the following:
-I, -Ip, -Is, -IS, -ISp, -ISs, -IX, -XF, -K, -jsdl, -h, -V, -pack.
When you use the job packs feature to submit multiple jobs to mbatchd at once, instead of submitting the jobs individually, it minimizes system overhead and improves the overall job submission rate dramatically. When you use this feature, you create a job submission file that defines each job request. You specify all the bsub options individually for each job, so unlike chunk jobs and job arrays, there is no need for jobs in this file to have anything in common. To submit the jobs to LSF, you simply submit the file using the bsub -pack option.
LSF parses the file contents and submits the job requests to mbatchd, sending multiple requests at one time. Each group of jobs submitted to mbatchd together is called a job pack. The job submission file can contain any number of job requests, and LSF will group them into job packs automatically. The reason to group jobs into packs is to maintain proper mbatchd performance: while mbatchd is processing a job pack, mbatchd is blocked from processing other requests, so limiting the number of jobs in each pack ensures a reasonable mbatchd response time for other job submissions. Job pack size is configurable.
If the cluster configuration is not consistent and mbatchd receives a job pack that exceeds the job pack size defined in lsf.conf, it will be rejected.
Once the pack is submitted to mbatchd, each job request in the pack is handled by LSF as if it was submitted individually with the bsub command.