oarsub

Langue: en

Version: 2006-06-01 (mandriva - 22/10/07)

Section: 1 (Commandes utilisateur)

NAME

oarsub - submit a job to OAR batch scheduler.

SYNOPSIS

oarsub [-l resource_list][-q queuename][-p property_query][-I][-v][-r date][-c job id][script|program][-s stagein_directory][-m stagein_md5sum][-k seconds]

DESCRIPTION

This command is used to submit jobs a to OAR batch scheduler. Jobs can be a program or a script which contains description of this job.

OPTIONS

-l, --resource resource=value[,[resource=value]...]
Defines resource list requested for a job.

Defined resources :
  nodes : Request number of nodes (special value ``all'' is replaced by the number of free nodes corresponding to the weight and properties; special value ``max'' is replaced by the number of free,absent and suspected nodes corresponding to the weight and properties).
  walltime : Request maximun time. Format is [hour:mn:sec|hour:mn|mn]
  weight : the weight that you want to reserve on each node

-q, --queue queuename
Specifies the destination queue. If not defined the job is enqueued in default queue
-p, --property property
Specify with SQL syntax reservation properties.
-I, --interactive
Interactive mode. Give you a shell on the first reserved node.
-r, --reservation date
Ask for a reservation job on the date in argument
-c, --connect jobId
Connect to a reservation in Running state
-v, --verbose
verbose mode.
-s, --stagein directory|tgz
Set the stagein directory or archive.
-m, --stagein-md5sum md5sum
Set the stagein file md5sum.
-k, --checkpoint seconds
Specify the number of seconds before the walltime when OAR will send automatically a SIGUSR2 on the process.

SCRIPT

Script can contain the description of the job. Lines with options must begin by the key #OAR. There the same options as previous.

EXAMPLE

Job submission with arguments :
oarsub -l nodes=4 -I
oarsub -q default -l walltime=50:30:00,nodes=10,weight=1 -p "switch = 'sw1'" /home/users/toto/prog
oarsub -r "2004-04-27 11:00:00" -l nodes=12,weight=2
oarsub -c 154 -I

Script example:

#OAR -l nodes=4
#OAR -q long -l walltime=2:30
/home/users/toto/prog

Submit the script :

oarsub /home/users/toto/script

SEE ALSO

oardel(1), oarstat(1), oarnodes(1), oarhold(1), oarresume(1)

COPYRIGHTS

  Copyright � 2003 Laboratoire Id-Imag (http://www-id.imag.fr). This software is licensed under the GNU Library General Public License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.