User Tools

Site Tools


tutorial:torque

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorial:torque [2017/01/13 10:11]
sertalpbilal Changed Example Hierarchy
tutorial:torque [2017/03/15 17:58]
afo214
Line 64: Line 64:
 Now, we will run the code but we are setting the job parameters using ''-'' character (e.g. ''-N JobName'') Now, we will run the code but we are setting the job parameters using ''-'' character (e.g. ''-N JobName'')
  
-===== Important Options ===== +===== Options =====
  
   * ''-q <queue>'' set the queue. Often you will use the standard queue, so no need to set this up.   * ''-q <queue>'' set the queue. Often you will use the standard queue, so no need to set this up.
Line 96: Line 95:
 </code> </code>
  
 +Moreover, you can use the following command:
 +<code>qstat -r : provides the list of the running jobs</code>
 +<code>qstat -i : provides the list of the jobs which are in queue</code>
 +<code>qstat -n : provides the polyps node(s) which are executing each job</code>
 ==== Queues ==== ==== Queues ====
  
Line 127: Line 130:
 ===== Examples ===== ===== Examples =====
  
-==== Submitting Large Memory Job ====+==== Submitting a Small or Large Memory Job ====
  
-Sometimes your job needs more memory. This can be achieved by ''-l mem=size'' example +You can use the option ''-l mem=size,vmem=size'' to limit memory usage of your job.
-<code>qsub  -l mem=20gb  test.pbs</code>+
  
-==== Running MATLAB -- Example ====+<code bash limited.sh> 
 +qsub -l mem=4gb,vmem=4gb test.pbs 
 +</code> 
 + 
 +Sometimes your job needs more memory. You can choose a larger memory size with the same option: 
 + 
 +<code bash large.pbs>qsub  -l mem=20gb  test.pbs</code> 
 + 
 +==== Running MATLAB ====
  
 You just have to create a submission job which looks like this You just have to create a submission job which looks like this
Line 148: Line 158:
  
 ==== Interactive Jobs ==== ==== Interactive Jobs ====
- 
  
 If you do not care where you run your job just use ''-I'' and do not specify any script to run. If you do not care where you run your job just use ''-I'' and do not specify any script to run.
tutorial/torque.txt · Last modified: 2024/02/28 13:12 by mjm519