[torquedev] Resource attributes expected functionality using qsub

John Rosenquist jrosenquist at adaptivecomputing.com
Fri Mar 18 17:18:19 MDT 2011


I recently started working at adaptive computing on the team that works 
on Torque.

I have been looking at qsub and had a question. (Short explanation of 
the question first)

Use the -l flag on the command line you can submit the same resource 
name with different values.
i.e.
1.) qsub -l nodes=2:ppn=3,mem=3MB {bunch of other flags} -l 
mem=2MB,walltime=2:00 script.sh
2.) qsub -l nodes=2:ppn=3,mem=4MB,nodes=3:ppn=1,mem=5MB script.sh
3.) qsub -l nodes=1:ppn=6 script.sh

script.sh can also have a -l flag with resource information
#PBS -l nodes=4:ppn=4,mem=6MB,walltime=1:00

Currently, from what I understand of the code, the qsub parses all of 
the command line options and adds all of them to the resource linked 
list. Then it add and resources found in any additional locations 
(including the script) but only if they don't already exist. It then 
ships all the resources over to the server (whether there is duplication 
or not). On the server side, when it parses the resources, everything 
but the last resource value is overwritten.
Using the line from the script above for both qsub commands, the lines 
above end up as the following on the server after being parsed.

1.) -l notes=2:ppn=3,mem=2MB,walltime=2:00
2.) -l nodes=3:ppn=1,mem=5MB,walltime=1:00
3.) -l nodes=1:ppn=6,mem=6MB,walltime=1:00

The question is, if someone used this mixture of locations to add 
resource information (and/or had multiple duplicate -l flags on the 
command line), what it the current expected functionality?


Thanks.
-- 
John Rosenquist | Torque Developer
Direct Line: 801.717.3--- | Fax: 801.717.3738
1656 S. East Bay Blvd. Suite #300 | Provo, Utah 84601 | USA
Adaptive Computing, Ent.
File:Sig.png <File:Sig.png>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torquedev/attachments/20110318/6f071a9a/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sig.png
Type: image/png
Size: 20504 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torquedev/attachments/20110318/6f071a9a/attachment-0001.png 


More information about the torquedev mailing list