qsub命令


qsub

qsub命令用來向SGE提交批處理作業,SGE支持單或多節點作業。

qsub [ options ] [ command | -- [ command_args ]]

1. -@ optionfile (contains all valid options)  就是把qsub命令的可選項組合成一定功能的語句,保存在一個文件中。  qsub -a optionfilename jobfilename  

2. -a date_time   設置作業什么時候可以執行。   格式:CC YY MMDDHHMM.SS 如 201109272213.21   qsub -a 201109272213.21 ../simplejob

3. -A account_string  Identifies the account to which the resource consumption of the job should be charged   設置一個作業的賬戶名,便於統計該賬戶使用的資源等信息    qsub -A testaccountname jobname  

4. -ac 添加名/值對到作業上下文   -dc 刪除。。   -sc 設置(修改)。。   Contexts provide a way to dynamically attach and remove meta-     information to and from a job. The context variables are not     passed to the job's execution context in its environment     The outcome of the evaluation of all -ac, -dc, and -sc options     or corresponding values in qmon is passed to defined JSV     instances as parameter with the name -ac.  

5. -ar ar_id 分配已提交作業,作為它的一部分,給已存在預約。ar=advance reservation   qsub -ar 60 jobname   #ai_di = unsigned integer   

6.  -b y[es]|n[o]      Gives the user the possibility to indicate explicitly whether       command should be treated as binary or script.     

7. -binding 等待理解

8.  -c occasion_specifier(際符)  定義或者重定義作業是否要被檢查,if是,在什么環境下。        n           no checkpoint is performed.               s           checkpoint when batch server is shut down.               m           checkpoint at minimum CPU interval.               x           checkpoint when job gets suspended.               <interval>  checkpoint in the specified time interval.   qsub -c n jobname

9. -C prefix_string 前綴字符串定義一個在作業命令中的指令     qsub -C "#$" ../simplejob   

10.  -ckpt ckpt_name 選擇檢查點環境來檢查一個作業,同時聲明這個作業是檢查點作業。      qsub -ckpt allanckpt ../simplejob    

11.  -clear 重置作業的所有元素為初始默認狀態    qsub -clear ../simplejob   

12.  -cwd =current working directory  從當前的目錄開始執行作業。如果有相應的配置文件的話,    這個命令將啟動網格引擎的路徑別名設備。    

13.  -dl date_time 設置作業在deadline之前執行完,格式為CC YYU MMDDHHMM.SS    qsub -dl 201101131159.01 ../simplejob

14.  -e [[hostname]:]path,...定義或重新定義作業的標准錯誤流使用的路徑 e=stderror

15.  -h | -h {u|s|o|n|U|O|S}... h=hold 暫停作業執行       'u' .........user hold.             `s'  denotes a system hold.               `o'  denotes a operator hold.               `n'  denotes no hold (requires manager privileges).               `U'  removes a user hold.               `S'  removes a system hold.               `O'  removes a operator hold.        qsub -h ../simplejob(qsub只能使用-h)

16.  -l resource=value,... l=launch 啟動滿足資源需求的作業    Launch the job in a Grid Engine queue meeting the given resource               request list.  In case of qalter the previous definition is               replaced by the specified one.    qsub -l s_core=5 ../simplejob

17.  -q wc_queue_list 定義或重定義可能用來執行作業的隊列,包括群聚隊列、隊列域、隊列實例。    qsub -q all.q ../simplejob

18.  -hard  表示該作業在安排執行之前,作業的資源需求必須滿足。    qsub -hard  ../simplejob

19.  -soft 表示該作業在安排執行之前,作業的資料需求可以有、但不必須有。    qsub -soft ../simplejob

20.  -help 獲取幫助    qsub -help

21.  -hold_jid   wc_job_listt 定義或重定義當前提交的作業對哪些作業有依賴,所依賴的作業使用通配符作業清單表示:wc_job_list    qsub -hold_jid 63926 ../simplejob

22.  -hold_jid_ad wc_job_list ad=array dependency list of the submitted job    定義或者重定義組作業依賴列表。    qsub -hold_jid_ad 1-1200

23.  -t n[-m[:s]]    指定組作業的數量,將指示器與作業關聯    qsub -t 1-1200 ../simplejob

24.  -i [[hostname]:]file,... 定義或重定義一個文件為作業的標准輸入流    qsub -i stdin job

25.  -j y[es]|n[o] 指定作業的標准錯誤流是否合並到標准輸出流,如果-j y 和-e都存在的話,SGE將忽略后者。    qsub -j y ../simplejob

26.  -js job_share 設置作業的對長期資源的相對股份 job_share is an unsigned integer value    qsub -js 4 job

27.  -jsv jsv_url 定義一個本地jsv實例,在作業發送到qmaster之前,該jsv將執行驗證作業規范。    qsub -jsv jsvurl job

28.  -m b|e|a|s|n,... 定義作業處在哪個階段給作業主人發送郵件。m=mail.    `b'     Mail is sent at the beginning of the job.               `e'     Mail is sent at the end of the job.               `a'     Mail is sent when the job is aborted or                       rescheduled.               `s'     Mail is sent when the job is suspended.               `n'     No mail is sent.    qsub -m n ../simplejob

29.  -M user[@host],...定義由哪個主機賬戶給用戶發送郵件    qsub -M root@ubuntu ../simplejob

30.  -masterq wc_queue_list 定義平行作業的主隊列,這個隊列可以是集群隊列、隊列域、隊列實例。    qsub -masterq all.q job

31.  -N =name 定義作業名字    qsub -N jobname job

32.  -notify 該選項標示這——網格引擎先發送警告信號給運行中的作業,再發送信號本身。如果SIGSTOP在排隊,     作業將收到一個SIGUSR1,之后幾秒才收到SIGSTOP;如果SIGKILL在排隊,作業將收到一個SIGUSR2,之后     幾秒才收到SIGKILL。    qsub -notify job   

33.  -o [[hostname]:]path,... 定義或重定義作業標准輸出流o=output stream    qsub -o jobname.jobid job   

34.  -P Project_name 設置作業的項目    qsub -P projectname job   

35.  -p priority 設置作業的相對優先權    qsub -p 10 job     

36.  -pe parallel_environment n[-[m]]|[-]m,... 初始化並行程序化環境    qsub -pe 200-500 job   

37.   -pty y[es]|n[o] 設置是否使用偽終端 pt=pseudo terminal    qsub -pty y  job  

38.  -r y[es]|n[o]  設置作業是否可以重新運行 r=run    qsub -r y job     39.  -R y[es]|n[o] 指示作業的預約要不要實施 R=Reservation    qsub -R y job     40.   -S [[hostname]:]pathname,... 規定作業的Shell解釋器    qsub -S ./ job   

41.    -shell y[es]|n[o]  設置執行shell還是command line      qsub -shell y job      

42.  -sync y[es]|n[o] y導致qsub等待作業執行完成之后才退出 ,n導致qsub提交作業成功就退出          

43.  -tc max_running_tasks 設置作業組中最大並行作業數量 同-t搭配使用     qsub -tc 800 -t 1-1600 job     

44.    -terse Available for qsub only. 只輸出剛剛提交作業的ID。

45.  -v variable[=value],...導出環境變量到作業執行上下文    qsub -v h_core=12 job    

46.  -V 導出所以活動的環境變量到作業上下文       qsub -V job    

47.  -verify 提交作業的同時,進行驗證    qsub -verify job   

48.  -w e|w|n|p|v 設置驗證(級別)模式    e..error  w..warning  n..none  p..poke  v..verify   

49.    -wd working_dir 工作目錄    qsu -wd ./  job

原文見:http://blog.sina.com.cn/s/blog_62db9b1901013g49.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM