0%

SGE作业调度系统

不要在登录节点(管理节点)上运行大型程序

  • 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

详解:

  1. Use the -pe local K option to request K slots on a single cluster node.
  2. use the -R y option to turn on slot reservation.
  3. Use the mem_free=NG option to specify N Gigabytes of memory your job(指定作业多少G内存).
  4. Use h_vmem= nG to set the hard memory limit for your job. Important: the value, n, you set in h_vmem is the total memory you set via mem_free divided by the number of slots specified for -pe. In other words n=N/K.
  5. -S shell_path:指定运行Shell环境
  6. -N job_name:重命名作业名
  7. -cwd:从当前工作路径运行作业
  8. -j y[es]|n[o]:定义作业的标准错误输出是否写入到输出文件中

推荐阅读:https://qpeng.org/prog/sge.htm

+