← 返回命令列表

Linux command

bsub 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Submit

bsub [path/to/script.sh]

Example

bsub -q [queue_name] make all

Example

bsub -J [job_name] --output [path/to/output.log] --error [path/to/error.log] [path/to/script.sh]

Example

bsub -n 8 -M 16G cargo build --release

Example

bsub -I bash

Example

bsub -W 45 [path/to/script.sh]

说明

bsub submits batch jobs to IBM Spectrum LSF (Load Sharing Facility), a workload management platform for distributed HPC environments. It schedules jobs to run on cluster nodes based on resource requirements and availability. Jobs can be commands, scripts, or interactive sessions. The scheduler matches job requirements with available resources.

参数

-q _queue_
Submit to a specific queue
-J _name_
Assign a name to the job
-n _cores_
Number of CPU cores required
-M _memory_
Memory limit (e.g., 16G, 4096M)
-W _minutes_
Runtime limit in minutes
-I
Run interactively
-o, --output _file_
Standard output file
-e, --error _file_
Standard error file
-R _resource_
Resource requirements string

FAQ

What is the bsub command used for?

bsub submits batch jobs to IBM Spectrum LSF (Load Sharing Facility), a workload management platform for distributed HPC environments. It schedules jobs to run on cluster nodes based on resource requirements and availability. Jobs can be commands, scripts, or interactive sessions. The scheduler matches job requirements with available resources.

How do I run a basic bsub example?

Run `bsub [path/to/script.sh]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -q _queue_ do in bsub?

Submit to a specific queue