不要在登录节点(管理节点)上运行大型程序
qrsh登录计算节点
qsub递交批量任务
创建
work.sh文件:1
2
3
4
5
6
7
8#!/bin/bash
#$ -S /bin/bash
#$ -N JobName
#$ -cwd
#$ -j y
#$ -pe smp 5
#$ -l mem_free=6G,h_vmem=6G
需要执行的任务命令提交任务:
qsub work.sh查看任务运行情况:
qstat删除任务:
qdel 139
详解:
- Use the
-pe local Koption to request K slots on a single cluster node. - use the
-R yoption to turn on slot reservation. - Use the
mem_free=NGoption to specify N Gigabytes of memory your job(指定作业多少G内存). - Use
h_vmem= nGto set the hard memory limit for your job. Important: the value,n, you set inh_vmemis the total memory you set viamem_freedivided by the number of slots specified for-pe. In other words n=N/K. -S shell_path:指定运行Shell环境-N job_name:重命名作业名-cwd:从当前工作路径运行作业-j y[es]|n[o]:定义作业的标准错误输出是否写入到输出文件中
推荐阅读:https://qpeng.org/prog/sge.htm