Ask Your Question
3

Can the maximum number of jobs per host be specified in bsub?

asked 2023-07-17 11:32:29 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-07-17 12:01:02 +0000

nofretete gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-17 11:32:29 +0000

Seen: 14 times

Last updated: Jul 17 '23