【发布时间】:2018-04-21 04:14:07
【问题描述】:
将bsub 与 LSF 一起使用时,-o 选项提供了很多详细信息,例如作业何时开始和结束,以及作业占用了多少内存和 CPU 时间。使用 SLURM,我得到的只是在没有 LSF 的情况下运行脚本所得到的相同标准输出。
例如,给定这个 Perl 6 脚本:
warn "standard error stream";
say "standard output stream";
因此提交:
sbatch -o test.o%j -e test.e%j -J test_warn --wrap 'perl6 test.p6'
导致文件test.o34380:
Testing standard output
还有文件test.e34380:
Testing standard Error in block <unit> at test.p6:2
使用 LSF,我会在标准输出文件中获得各种详细信息,例如:
Sender: LSF System <lsfadmin@my_node>
Subject: Job 347511: <test> Done
Job <test> was submitted from host <my_cluster> by user <username> in cluster <my_cluster_act>.
Job was executed on host(s) <my_node>, in queue <normal>, as user <username> in cluster <my_cluster_act>.
</home/username> was used as the home directory.
</path/to/working/directory> was used as the working directory.
Started at Mon Mar 16 13:10:23 2015
Results reported at Mon Mar 16 13:10:29 2015
Your job looked like:
------------------------------------------------------------
# LSBATCH: User input
perl6 test.p6
------------------------------------------------------------
Successfully completed.
Resource usage summary:
CPU time : 0.19 sec.
Max Memory : 0.10 MB
Max Swap : 0.10 MB
Max Processes : 2
Max Threads : 3
The output (if any) follows:
standard output stream
PS:
Read file <test.e_347511> for stderr output of this job.
更新:
sbatch 的一个或多个 -v 标志提供更多初步信息,但不会更改标准输出。
【问题讨论】:
-
假设您的 SLURM 版本足够新,只需使用
seff