Difference between revisions of "Torque/PBS on mime"

From CompSemWiki
Jump to navigationJump to search
m (moved PBS on mime to Torque/PBS on mime: We no longer use the official PBS)
Line 1: Line 1:
= Running PBS on the Mime Cluster =
+
= Torque vs. PBS =
 +
While PBS used to be the preferred job scheduling software on mime, the repeated hassle of renewing expired licenses gave us reason to switch to Torque, an open source resource manager based on the original PBS.  For the most part PBS scripts should still work with Torque.
 +
 
 +
= Running Torque on the Mime Cluster =
  
 
Portable Batch System (PBS) is a full featured queuing system for job submission.  Listed below are a few sample commands to get you up and running on the cluster.  For a more detailed documentation on PBS, please refer to the man pages.
 
Portable Batch System (PBS) is a full featured queuing system for job submission.  Listed below are a few sample commands to get you up and running on the cluster.  For a more detailed documentation on PBS, please refer to the man pages.
  
 
== Prerequisites ==
 
== Prerequisites ==
* Add /usr/pbs/bin to your path
+
* Add /usr/torque/bin to your path
 
* Configure ssh to have password-less login on the mime nodes (see UsingTheMimeCluster).
 
* Configure ssh to have password-less login on the mime nodes (see UsingTheMimeCluster).
  
  
 
== Checking machine status ==
 
== Checking machine status ==
To check the PBS queue status on mime type:
+
To check the Torque queue status on mime type:
  
 
   $ qstat
 
   $ qstat
Line 19: Line 22:
 
To submit a job to the queue type:
 
To submit a job to the queue type:
  
   $ qsub <pbs_script>
+
   $ qsub <torque_script>
  
  
== PBS Scripts ==
+
== Torque Scripts ==
  
A PBS script is a shell script with PBS commands specified by comments starting with #PBS.  A bare bones PBS script without any PBS options would look something like this:
+
A Torque script is a shell script with PBS commands specified by comments starting with #PBS.  A bare bones PBS script without any PBS options would look something like this:
  
 
   #!/bin/bash
 
   #!/bin/bash

Revision as of 13:57, 21 September 2009

Torque vs. PBS

While PBS used to be the preferred job scheduling software on mime, the repeated hassle of renewing expired licenses gave us reason to switch to Torque, an open source resource manager based on the original PBS. For the most part PBS scripts should still work with Torque.

Running Torque on the Mime Cluster

Portable Batch System (PBS) is a full featured queuing system for job submission. Listed below are a few sample commands to get you up and running on the cluster. For a more detailed documentation on PBS, please refer to the man pages.

Prerequisites

  • Add /usr/torque/bin to your path
  • Configure ssh to have password-less login on the mime nodes (see UsingTheMimeCluster).


Checking machine status

To check the Torque queue status on mime type:

 $ qstat


For more information and options see the qstat man page.

Submitting jobs

To submit a job to the queue type:

 $ qsub <torque_script>


Torque Scripts

A Torque script is a shell script with PBS commands specified by comments starting with #PBS. A bare bones PBS script without any PBS options would look something like this:

 #!/bin/bash
 your_commands_here

For a more thorough PBS example script with a wide range of PBS options please look at PbsExampleScript.

Deleting Jobs

To delete a job type:

 $ qdel <job_id>


Please refer to the qdel man page for more details.