<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kb.hurricane-ridge.com &#187; Sun Grid Engine</title>
	<atom:link href="http://kb.hurricane-ridge.com/category/hpc/sge/feed" rel="self" type="application/rss+xml" />
	<link>http://kb.hurricane-ridge.com</link>
	<description>My personal - but public - knowledge base</description>
	<lastBuildDate>Mon, 09 Jan 2012 14:49:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SGE Queue States</title>
		<link>http://kb.hurricane-ridge.com/hpc/sge/sge-queue-states</link>
		<comments>http://kb.hurricane-ridge.com/hpc/sge/sge-queue-states#comments</comments>
		<pubDate>Fri, 30 Sep 2011 16:21:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sun Grid Engine]]></category>
		<category><![CDATA[qstat]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1096</guid>
		<description><![CDATA[Reference: Monitoring and Controlling Queues a – Load threshold alarm o – Orphaned A – Suspend threshold alarm C – Suspended by calendar D – Disabled by calendar S – Suspended by subordination to another queue c – Configuration ambiguous d – Disabled s – Suspended u – Unknown E – Error]]></description>
			<content:encoded><![CDATA[<p>Reference: <a href="http://wikis.sun.com/display/GridEngine/Monitoring+and+Controlling+Queues">Monitoring and Controlling Queues</a></p>
<p>a – Load threshold alarm<br />
o – Orphaned<br />
A – Suspend threshold alarm<br />
C – Suspended by calendar<br />
D – Disabled by calendar<br />
S – Suspended by subordination to another queue<br />
c – Configuration ambiguous<br />
d – Disabled<br />
s – Suspended<br />
u – Unknown<br />
E – Error</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/hpc/sge/sge-queue-states/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List SGE resource availability with qstat -F</title>
		<link>http://kb.hurricane-ridge.com/hpc/sge/list-sge-resource-availability-with-qstat-f</link>
		<comments>http://kb.hurricane-ridge.com/hpc/sge/list-sge-resource-availability-with-qstat-f#comments</comments>
		<pubDate>Wed, 31 Aug 2011 19:32:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sun Grid Engine]]></category>
		<category><![CDATA[qstat h_vmem resource consumable]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1083</guid>
		<description><![CDATA[For a queue that uses h_vmem as a resource: > qstat -F h_vmem queuename qtype resv/used/tot. load_avg arch states --------------------------------------------------------------------------------- all.q@compute-1-0.local BIP 0/0/12 0.05 lx26-amd64 hc:h_vmem=48.000G]]></description>
			<content:encoded><![CDATA[<p>For a queue that uses h_vmem as a resource:</p>
<p><code>> qstat -F h_vmem<br />
queuename                      qtype resv/used/tot. load_avg arch          states<br />
---------------------------------------------------------------------------------<br />
all.q@compute-1-0.local        BIP   0/0/12         0.05     lx26-amd64<br />
	hc:h_vmem=48.000G<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/hpc/sge/list-sge-resource-availability-with-qstat-f/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling and Enabling an SGE queue</title>
		<link>http://kb.hurricane-ridge.com/hpc/sge/disabling-and-enabling-an-sge-queue</link>
		<comments>http://kb.hurricane-ridge.com/hpc/sge/disabling-and-enabling-an-sge-queue#comments</comments>
		<pubDate>Fri, 28 May 2010 21:35:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sun Grid Engine]]></category>
		<category><![CDATA[qmod]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=949</guid>
		<description><![CDATA[Disable: # qmod -d all.q@compute-0-0.local workflow.q@compute-0-0.local Enable: # qmod -e all.q@compute-0-0.local workflow.q@compute-0-0.local]]></description>
			<content:encoded><![CDATA[<p>Disable:</p>
<p><code># qmod -d all.q@compute-0-0.local workflow.q@compute-0-0.local</code></p>
<p>Enable:</p>
<p><code># qmod -e all.q@compute-0-0.local workflow.q@compute-0-0.local</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/hpc/sge/disabling-and-enabling-an-sge-queue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anatomy of an SGE Job File</title>
		<link>http://kb.hurricane-ridge.com/hpc/sge/anatomy-of-an-sge-job-file</link>
		<comments>http://kb.hurricane-ridge.com/hpc/sge/anatomy-of-an-sge-job-file#comments</comments>
		<pubDate>Mon, 01 Jun 2009 22:55:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sun Grid Engine]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=464</guid>
		<description><![CDATA[The contents of a basic Sun Grid Engine job file look something like this: #!/bin/bash # SGE uses shell script comments that start with "#$" to configure how # SGE handles the job. # # Use the bash shell as the shell for the job: #$ -S /bin/bash # # Write output and error stream [...]]]></description>
			<content:encoded><![CDATA[<p>The contents of a basic Sun Grid Engine job file look something like this:</p>
<p><code><br />
#!/bin/bash<br />
# SGE uses shell script comments that start with "#$" to configure how<br />
# SGE handles the job.<br />
#<br />
# Use the bash shell as the shell for the job:<br />
#$ -S /bin/bash<br />
#<br />
# Write output and error stream to the current working directory:<br />
#$ -cwd<br />
#<br />
# The job command or commands are below:<br />
/apps/bin/blastall -p blastp \<br />
-d /nethome/aleonard/blast/database.fasta \<br />
-i /nethome/aleonard/blast/input.fasta \<br />
-o /nethome/aleonard/blast/output.txt</code></p>
<p>To use a job file, create a shell script with contents similar to the above (such as &#8220;job.sh&#8221;), make the script executable (&#8220;chmod 755 job.sh&#8221;) and submit it to SGE (&#8220;qsub job.sh&#8221;).</p>
<p>It is important to note that blastall will only be using one processor (the &#8220;-a&#8221; flag is not used, so it defaults to one CPU).  It is generally the best for throughput &#8211; getting the most work done in the least amount of time &#8211; if you can split your job into many multiple, single-threaded jobs and run those in parallel, as opposed to running one or a few multiple-threaded jobs.</p>
<p>References: <a href="http://docs.sun.com/app/docs/doc/817-6117/chp4-1?q=N1GE&#038;a=view">N1 Grid Engine 6 User&#8217;s Guide</a>, <a href="http://blogs.sun.com/sprack/entry/ncbi_blast_scaling_on_sun">NCBI BLAST Scaling on Sun Fire T2000</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/hpc/sge/anatomy-of-an-sge-job-file/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic SGE Commands</title>
		<link>http://kb.hurricane-ridge.com/hpc/sge/basic-sge-commands</link>
		<comments>http://kb.hurricane-ridge.com/hpc/sge/basic-sge-commands#comments</comments>
		<pubDate>Mon, 01 Jun 2009 22:50:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sun Grid Engine]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=458</guid>
		<description><![CDATA[The &#8220;qstat&#8221; command provides information on the state of Grid Engine machines and queues. Entering &#8220;qstat&#8221; alone gives a brief overview of jobs in the queue: > qstat job-ID prior name user state submit/start at queue slots ja-task-ID ----------------------------------------------------------------------------------------------------------------- 395 0.55500 run-DSL22- aleonard r 06/13/2007 15:59:18 all.q@compute-0-1.local 1 393 0.55500 run-DSL20- aleonard r 06/13/2007 15:59:18 [...]]]></description>
			<content:encoded><![CDATA[<p>The &#8220;qstat&#8221; command provides information on the state of Grid Engine machines and queues. Entering &#8220;qstat&#8221; alone gives a brief overview of jobs in the queue:</p>
<p><code> > qstat<br />
 job-ID  prior   name       user         state submit/start at     queue                  slots ja-task-ID<br />
 -----------------------------------------------------------------------------------------------------------------<br />
     395 0.55500 run-DSL22- aleonard     r     06/13/2007 15:59:18 all.q@compute-0-1.local            1<br />
     393 0.55500 run-DSL20- aleonard     r     06/13/2007 15:59:18 all.q@compute-0-6.local            1<br />
     394 0.55500 run-DSL21- aleonard     r     06/13/2007 15:59:18 all.q@compute-0-7.local            1</code></p>
<p>&#8220;qstat -f&#8221; gives a &#8220;full&#8221; display of information, showing the state of all the machines in the cluster:</p>
<p><code> > qstat -f<br />
 queuename                      qtype used/tot. load_avg arch          states<br />
 ----------------------------------------------------------------------------<br />
 all.q@compute-0-0.local        BIP   0/4       0.23     lx26-amd64<br />
 ----------------------------------------------------------------------------<br />
 all.q@compute-0-1.local        BIP   1/4       1.00     lx26-amd64<br />
     395 0.55500 run-DSL22- aleonard     r     06/13/2007 15:59:18     1<br />
 ----------------------------------------------------------------------------<br />
 all.q@compute-0-2.local        BIP   0/4       0.05     lx26-amd64<br />
 ----------------------------------------------------------------------------<br />
 all.q@compute-0-3.local        BIP   0/4       0.04     lx26-amd64<br />
 ----------------------------------------------------------------------------<br />
 all.q@compute-0-4.local        BIP   0/4       0.25     lx26-amd64<br />
 ----------------------------------------------------------------------------<br />
 all.q@compute-0-5.local        BIP   0/4       0.86     lx26-amd64<br />
 ----------------------------------------------------------------------------<br />
 all.q@compute-0-6.local        BIP   1/4       1.10     lx26-amd64<br />
     393 0.55500 run-DSL20- aleonard     r     06/13/2007 15:59:18     1<br />
 ----------------------------------------------------------------------------<br />
 all.q@compute-0-7.local        BIP   1/4       1.89     lx26-amd64<br />
     394 0.55500 run-DSL21- aleonard     r     06/13/2007 15:59:18     1<br />
 ----------------------------------------------------------------------------<br />
 all.q@compute-0-8.local        BIP   0/4       0.62     lx26-amd64</code></p>
<p>Jobs are submitted to a queue using the &#8216;qsub&#8217; command:</p>
<p><code> > qsub blast.sh</code></p>
<p>An SGE array job is submitted using the &#8216;-t&#8217; flag:</p>
<p><code> > qsub -t 1:3 sge-blast-array.sh</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/hpc/sge/basic-sge-commands/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

