SGE Usage

The scheduler called SGE (Sun Grid Engine) is the famous scheduler. User can see more detail of each command with help option (usually -h, -help, or --help)

qsub - submit job to sge

  • Usage: qsub [option] job_submission
  • Option

    • -q to schedule in specific queue
    • -pe to schedule parallel application. User have to indecate the parallel_environment (usually mpich) and number_of_processors after the -pe option.
  • Example

    [user @tera ~] qsub example.job
    [user @tera ~] qsub -q short.q example.job
    [user @tera ~] qsub -pe mpich 4 example.job
    [user @tera ~] qsub -q short.q -pe mpich 4 example.job

qstat - monitor jobs and queue

  • Usage: qstat [option] job_id
  • Option

    • -f to display more detail of selected job. User have to indicate the job_id after -f option.
  • Example

    [user @tera ~] qstat
    [user @tera ~] qstat -f 80

qdel - delete jobs form queue command

  • Usage: qdel job_id
  • Example

    [user @tera ~] qdel 80
    [user @tera ~] qdel 81 82 83 84 85

qconf - SGE queue configuration

  • Usage: qconf [option]
  • Option

    • -sql to show all queue that used in Tera Cluster’s scheduler
  • Example

    [user @tera ~] qconf
    [user @tera ~] qconf -sql

qhold - hold back jobs from execution

  • Usage: qhold job_id
  • Example

    [user @tera ~] qhold 80
    [user @tera ~] qhold 81 82 83 84 85

qrls - release jobs from previous hold states

  • Usage: qrls job_id
  • Example

    [user @tera ~] qrls 80
    [user @tera ~] qrls 81 82 83 84 85

If you have any questions, please sent it via email support@thaigrid.or.th.

Powered by Drupal - Design by Artinet