$ lsload
HOST_NAME status r15s r1m r15m ut pg ls it tmp swp mem
ubun01 ok 0.0 0.0 0.1 0% 0.0 1 160 14G 1016M 1.2G
ubun02 ok 0.0 0.0 0.1 0% 0.0 1 160 14G 1016M 1.2G
ubun03 ok 0.0 0.0 0.1 0% 0.0 1 160 14G 1016M 1.2G
ubun04 ok 0.0 0.0 0.1 0% 0.0 1 160 14G 1016M 1.2G
$ bhosts
HOST_NAME STATUS JL/U MAX NJOBS RUN SSUSP USUSP RSV
ubun01 ok - 4 0 0 0 0 0
ubun02 ok - 4 0 0 0 0 0
ubun03 ok - 4 0 0 0 0 0
ubun04 ok - 4 0 0 0 0 0
单主机构建
提交 lsmake 作为 LSF 作业,使用单主机的 4 个槽位:
1
2
$ bsub -n 4 -R"span[hosts=1]"-o %J.out -cwd /share/android lsmake --no-block-shell-mode
Job <361> is submitted to default queue <normal>.
参数说明
参数
说明
-n 4
请求 4 个槽位
-R "span[hosts=1]"
所有槽位必须在同一主机
-o %J.out
输出重定向到 JOB_ID.out
-cwd /share/android
指定工作目录
--no-block-shell-mode
lsmake 选项,优化 SHELL 命令性能
检查作业状态
1
2
3
4
5
6
7
$ bjobs -l 361
Job <361>, User <lsfuser>, Project <default>, Status <DONE>, Queue <normal>,
Command <lsmake --no-block-shell-mode>,
Mon Dec 8 12:44:40: Submitted from host <ubun01>, CWD </home/lsfuser>;
Mon Dec 8 12:44:41: Started on <ubun01>, Execution Home </home/lsfuser>,
Specified CWD </share/android>;
Mon Dec 8 12:44:43: Done successfully. The CPU time used is 18,012 seconds.
I offer specialized consulting for EDA workflows, LSF/Slurm scheduling, and design environment standardization.
Turn these insights into production-ready solutions.