From 7fd3d02e40045a7a035cb4bf3183f6e116aad21d Mon Sep 17 00:00:00 2001 From: Tom Webber <148005618+t-webber@users.noreply.github.com> Date: Wed, 30 Jul 2025 06:35:33 +0200 Subject: [PATCH] bsub: add page (#17379) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/linux/bsub.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/linux/bsub.md diff --git a/pages/linux/bsub.md b/pages/linux/bsub.md new file mode 100644 index 0000000000..7993db62bb --- /dev/null +++ b/pages/linux/bsub.md @@ -0,0 +1,28 @@ +# bsub + +> Submit batch jobs to LSF (Load Sharing Facility) scheduler. +> More information: . + +- Submit a script file as a job: + +`bsub {{path/to/script.sh}}` + +- Submit a job to a specific queue: + +`bsub -q {{queue_name}} make all` + +- Submit a job with a name and redirect output and error: + +`bsub -J {{job_name}} --output {{path/to/output.log}} --error {{path/to/error.log}} {{path/to/script.sh}}` + +- Request 8 CPU cores and 16GB memory for a command: + +`bsub -n 8 -M 16G cargo build --release` + +- Run an interactive shell in the current session: + +`bsub -I bash` + +- Submit a job with a runtime limit of 45 minutes: + +`bsub -W 45 {{path/to/script.sh}}`