Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, the maximum number of jobs per host can be specified in bsub using the -n option followed by the number of maximum jobs per host. For example, to specify a maximum of 4 jobs per host, the following command can be used:

bsub -n 4 my_script.sh

This will submit the script "my_script.sh" and limit the number of jobs that can run on a single host to 4. If there are more jobs submitted than the specified maximum, they will be queued until a slot becomes available.