<?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>生信菜鸟团 &#187; qsub</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/qsub/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>关于qsub和condor两种在集群上面提交任务的方式比对</title>
		<link>http://www.bio-info-trainee.com/1028.html</link>
		<comments>http://www.bio-info-trainee.com/1028.html#comments</comments>
		<pubDate>Tue, 29 Sep 2015 13:27:36 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[计算机基础]]></category>
		<category><![CDATA[condor]]></category>
		<category><![CDATA[qsub]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1028</guid>
		<description><![CDATA[毕竟不是计算机科班出身，很多计算机概念我其实并不清楚，很多时候对一个任务的解决只 &#8230; <a href="http://www.bio-info-trainee.com/1028.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>毕竟不是计算机科班出身，很多计算机概念我其实并不清楚，很多时候对一个任务的解决只是凭着自己的悟性来模仿接触到的做法，大多数情况下并无可厚非，能完成任务即可，但是碰到多人协作的环境，往往就出了问题。</p>
<div>我一直都知道可以 cat /proc/cpuinfo 来查看cpu数量，用free -g 来查看内存的总量及消耗，用top来查看当前运行的任务情况。</div>
<div>以前都是三到五人的环境公用一个服务器，一般都有几十个cpu和几百G的内存，而且服务器还经常空闲着，所以不会面临资源的问题。</div>
<div>而最近接触的项目是多个小组公用服务器，所以面临计算资源的分配，接触了qsub和condor两种不同的任务提交模式。</div>
<div>qsub和condor其实都是用来运行一个脚本的，它与我们用bash或者sh来运行一个脚本的区别在于是否立即执行我们的脚本。</div>
<div>比如我写了一个脚本myscript.sh</div>
<div>我可以 bash myscript.sh 然后里面看到这个脚本被运行了</div>
<div>但是用 qsub myscript.sh， 就只是向我们的集群提交了一个任务而已，这个脚本什么时候运行，占用多少内存和cpu来运行，需要特定的设置好。</div>
<div></div>
<div>这里有个并行计算的ppt：<a href="http://www.marquette.edu/mugrid/bootcamp/2010Summer/Parallel.pdf">http://www.marquette.edu/mugrid/bootcamp/2010Summer/Parallel.pdf</a> 从计算机专业的角度来讲解了两者的区别。</div>
<div>其实只要看了这个<a href="https://wikis.nyu.edu/display/NYUHPC/Tutorial+-+Submitting+a+job+using+qsub">https://wikis.nyu.edu/display/NYUHPC/Tutorial+-+Submitting+a+job+using+qsub</a> 就能很容易明白qsub的用法，毕竟它只是一个命令而已，但是我们需要记住的是下面几个命令，因为经常用</div>
<div>
<div>PBS commands covered in this section</div>
<div>qsub</div>
<div>submit a job for execution</div>
<div>qstat</div>
<div>examine the status of a job (we have discussed what this status may be)</div>
<div>qhold</div>
<div>put a job on hold</div>
<div>qrls</div>
<div>release a job</div>
<div>qsig</div>
<div>send a signal to a job</div>
<div>qdel</div>
<div>delete a job</div>
<p>而condor其实很少见的。</p></div>
<div>
<div>An example Condor submission file is shown below:</div>
<div></div>
<div>Executable = ./myexecutable</div>
<div>Universe = vanilla</div>
<div>Log = condor.log</div>
<div>Output = out.log</div>
<div>Error = err.log</div>
<div>should_transfer_files = YES</div>
<div>when_to_transfer_output = ON_EXIT</div>
<div>transfer_input_files = mydata.txt</div>
<div></div>
<div>
<div>Save your script to a file with a name such as mysubmitfile.condor.</div>
<div>Once you have saved your submission script you can submit using the following command:</div>
<div>/dcs/condor/condor/bin/condor_submit mysubmitfile.condor</div>
<p>condor_q 可以用来查看任务提交情况</p></div>
<div>condor_rm 可以用来杀掉提交的任务。</div>
</div>
<p>任务提交模式还是挺有用的</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1028.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
