[GE users] list of jobs submitted to a queue

Reuti reuti at staff.uni-marburg.de
Sun Apr 30 14:27:05 BST 2006


Hi,

Am 28.04.2006 um 20:25 schrieb Jinal Jhaveri:

> Is there anyway to list the jobs that are running or queued(qw/hqw)  
> and that were submitted to lets say a queue named "annot-1"
>
>
> qstat -q annot-1 doesn't work the way I thought. It shows me all  
> the jobs running in that queue and waiting but it also shows jobs  
> that are waiting and had a different queue name.

although the idea behind SGE is more to submit into the system and  
SGE will select an appropriate queue for you (which is different to  
OpenPBS/Torque, where you submit into a queue by default), you can  
try to use the -l modifier:

qstat -l qname=annot-3

HTH - Reuti


> As shown in the e.g below, the jobs belonging to user eszeto were  
> actually sent to a different queue.
>
>
> >qstat -q annot-1
>
> job-ID  prior   name       user         state submit/start at      
> queue                          slots ja-task-ID
> ---------------------------------------------------------------------- 
> -------------------------------------------
> 2081079 0.55500 Thaps3_tes rotillar     r     04/27/2006 20:24:19  
> annot-3 at bimini.jgi-psf.org         1       2036533 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:36                                    1       2036534 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:37                                    1       2036535 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:37                                    1       2036536 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:37                                    1       2036537 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:37                                    1       2036538 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:37                                    1       2036539 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:37                                    1       2036540 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:37                                    1       2036541 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:37                                    1       2036542 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:38                                    1       2036543 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:38                                    1       2036544 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:38                                    1       2036545 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:38                                    1       2036546 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:38                                    1       2036547 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:38                                    1       2036548 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:38                                    1       2036549 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:39                                    1       2036550 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:39                                    1       2036551 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:39                                    1       2036552 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:39                                    1       2036553 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:39                                    1       2036554 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:39                                    1       2036555 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:39                                    1       2036556 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:40                                    1       2036557 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:40                                    1       2036558 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:40                                    1       2036559 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:40                                    1       2036560 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:40                                    1       2036561 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:40                                    1       2036562 0.55500  
> xavaNewOld eszeto       qw    04/23/2006  
> 17:58:40                                    1       2051879 0.55500  
> interpro_a brubaker     qw    04/25/2006  
> 10:31:28                                    1 1119-54944:1
> 2081080 0.00000 Thaps3_tes rotillar     hqw   04/27/2006  
> 16:08:18                                    1       2081081 0.00000  
> Thaps3_tes rotillar     hqw   04/27/2006  
> 16:08:18                                    1       2081082 0.00000  
> Thaps3_tes rotillar     hqw   04/27/2006  
> 16:08:18                                    1
> > qstat -j 2036533
> job_number:                 2036533
> exec_file:                  job_scripts/2036533
> submission_time:            Sun Apr 23 17:58:36 2006
> owner:                      eszeto
> uid:                        2691
> group:                      genome
> gid:                        124
> sge_o_home:                 /home/eszeto
> sge_o_log_name:             eszeto
> sge_o_path:                 .:/home/img/eszeto/img_dev/dataLoad/ 
> bin:/home/img/eszeto/img_dev/dataLoad/bin/i686-linux:.:/home/condor/ 
> condor/bin:/sge/bin/lx24-amd64:.:/home/eszeto/bin:/home/eszeto/bin/ 
> i686-linux:/usr/local/bin:/usr/local/mysql/bin:/usr/local/j2se/bin:/ 
> usr/production/bin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/ccs:/usr/ucb:/ 
> usr/bin:/usr/openwin/bin:/usr/openwin/bin/xview:/home/ppace/bin:/ 
> etc:/sybase/bin://usr/budtool/bin:/home/analysis/bin:/usr/local/ 
> oracle/product/9.0.1/bin:/usr/local/wu-blast:/usr/local/ant/bin:/ 
> usr/local/teiresias/bin:/home/eszeto/fgenesb:/home/img/eszeto/arb/bin
> sge_o_shell:                /bin/tcsh
> sge_o_workdir:              /home/img/eszeto/dataLoad/data/add/ 
> avaNewOldBatches.cmds
> sge_o_host:                 node64t-00
> account:                    sge
> stderr_path_list:           /home/img/eszeto/img_dev/dataLoad/data/ 
> add/avaNewOldBatches.cmds/xavaNewOldBatches.list.txt.121.csh.stderr
> hard resource_list:         arch=lx24-amd64
> mail_list:                  eszeto at node64t-00.jgi-psf.org
> notify:                     FALSE
> job_name:                   xavaNewOldBatches.list.txt.121.csh
> stdout_path_list:           /home/img/eszeto/img_dev/dataLoad/data/ 
> add/avaNewOldBatches.cmds/xavaNewOldBatches.list.txt.121.csh.stdout
> jobshare:                   0
> hard_queue_list:            all.q,img-low
> env_list:                  script_file:                /home/img/ 
> eszeto/img_dev/dataLoad/data/add/avaNewOldBatches.cmds/ 
> xavaNewOldBatches.list.txt.121.csh
> scheduling info:            (Collecting of scheduler job  
> information is turned off)
>
>
>
> I can imagine this might be happening because of the way sge  
> schedules the jobs, but I thought it would be useful to have  
> something where you can know what all jobs(running/queued) are  
> submitted to a queue.
>
> lis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list