next up previous contents
Next: About this document ... Up: Requesting Resources - Reference Previous: Explicitly Assigning Slices to   Contents

Explicitly Restricting a Node to a Single Job



Note: Multiple slices may still be assigned to a single node, you may combine with the method specified prior.



Directive:


#PBS -W x=naccesspolicy:singlejob


Example:

 #!/bin/bash
 #PBS -l nodes=4:ppn=2
 #PBS -W x=naccesspolicy:singlejob

 echo "Script begins here"


Command Line:


qsub -l <resource_request> -W x=naccesspolicy:singlejob script


Example:

qsub -l nodes=4:ppn=2 -W x=naccesspolicy:singlejob blast.sh


Practicum:

	[jdpoisso@axiom qsub]$ qsub blast.sh
	1581.axiom.localdomain
	[jdpoisso@axiom qsub]$ qsub -l nodes=3:ppn=2 -W x=naccesspolicy:singlejob,nmatchpolicy:exactnode script.sh 
	1582.axiom.localdomain
	[jdpoisso@axiom qsub]$ qstat -f 1581 
	Job Id: 1581.axiom.localdomain 
	    Job_Name = blast.sh 
	<- output omitted ->
	    \textbf{exec_host = compute-0-14/7+compute-0-14/6+compute-0-14/5+compute-0-14/4+compute-0-14/3+compute-0-14/2+compute-0-14/1+compute-0-14/0} 
	<- output omitted ->
	    \textbf{Resource_List.nodect = 4}
	    \textbf{Resource_List.nodes = 4:ppn=2}
	<- output omitted ->
	[jdpoisso@axiom qsub]$ qstat -f 1582 
	Job Id: 1582.axiom.localdomain 
	    Job_Name = blast.sh 
	<- output omitted ->
	    \textbf{exec_host = compute-0-13/5+compute-0-13/4+compute-0-13/3+compute-0-13/2+compute-0-13/1+compute-0-13/0}
	<- output omitted ->
	    \textbf{Resource_List.nodect = 3}
	    \textbf{Resource_List.nodes = 3:ppn=2}
	<- output omitted ->



2010-08-27