Am 05.03.2013 um 12:36 schrieb jan roels:

> Hi,
> 
> When 2 array jobs are submitted, the gridengine runs the first job and only 
> after it's done with that it runs the second job. Ii know it's possible to 
> configure the gridengine in a way that it switches between jobs, so if the 
> second job is a small one it doesn't have to wait for the first one to finish.
> 
> How can i do this?

a) You can define a second queue solely for the use of short jobs. Then setting 
up slotwise subordination related to the normal queue. `man queue_conf` section 
"subordinate_list", hence one of the array instances will be suspended for the 
duration of one of the short running jobs.

b) Another option is to have a second queue solely for the short jobs, but 
instead of using a subordinate list the two queues have different nice levels 
defined. 0 for the queue of the short running jobs ,19 for the normal jobs 
(setting "priority" in the queue definition). As long as you don't 
oversubscribe a node (i.e. more running processes than cores), giving all 
processes a nice value of 19 is the same as giving them all 0. Hence in normal 
day operation you won't notice this setting. Only if a short running job comes 
in, the processes with a nice value of 19 will give some computing time to 
other jobs with a lower nice value. The effect compared to a) is, that none of 
the normal jobs is really suspened, but all jobs on a node will just run a 
little but slower for some time in the normal queue.

HTH -- Reuti


> This is my qstat output, as you can see the first job is a pretty big one 
> while the second one is only a small one but has to way for the big one.
> 
>     239 0.75000 TestArray   user1     r     03/04/2013 15:12:52 main.q@node0  
>                                             1 1567
>     239 0.75000 TestArray   user1     r     03/04/2013 15:22:52 main.q@node0  
>                                             1 1568
>     239 0.75000 TestArray   user1     r     03/04/2013 16:28:07 main.q@node0  
>                                             1 1569
>     239 0.75000 TestArray   user1     r     03/04/2013 16:34:22 main.q@node0  
>                                             1 1570
>     239 0.75000 TestArray   user1     r     03/04/2013 16:56:07 main.q@node4  
>                                             1 1571
>     239 0.75000 TestArray   user1     r     03/04/2013 17:04:22 main.q@node0  
>                                             1 1572
>     239 0.75000 TestArray   user1     r     03/04/2013 17:26:52 main.q@node0  
>                                             1 1573
>     239 0.75000 TestArray   user1     r     03/04/2013 17:28:52 main.q@node0  
>                                             1 1574
>     239 0.75000 TestArray   user1     r     03/04/2013 17:29:07 main.q@node0  
>                                             1 1575
>     239 0.75000 TestArray   user1     r     03/04/2013 17:35:37 main.q@node0  
>                                             1 1576
>     239 0.75000 TestArray   user1     r     03/04/2013 17:39:52 main.q@node4  
>                                             1 1577
>     239 0.75000 TestArray   user1     r     03/04/2013 17:46:07 main.q@node5  
>                                             1 1578
>     239 0.75000 TestArray   user1     r     03/04/2013 17:50:07 main.q@node3  
>                                             1 1579
>     239 0.75000 TestArray   user1     r     03/04/2013 17:53:22 main.q@node5  
>                                             1 1580
>     239 0.75000 TestArray   user1     r     03/04/2013 18:17:22 main.q@node1  
>                                             1 1581
>     239 0.75000 TestArray   user1     r     03/04/2013 18:22:37 main.q@node4  
>                                             1 1582
>     239 0.75000 TestArray   user1     r     03/04/2013 18:24:52 main.q@node3  
>                                             1 1583
>     239 0.75000 TestArray   user1     r     03/04/2013 18:30:22 main.q@node3  
>                                             1 1584
>     239 0.75000 TestArray   user1     r     03/04/2013 18:33:37 main.q@node6  
>                                             1 1585
>     239 0.75000 TestArray   user1     r     03/04/2013 18:42:22 main.q@node3  
>                                             1 1586
>     239 0.75000 TestArray   user1     r     03/04/2013 18:49:07 main.q@node5  
>                                             1 1587
>     239 0.75000 TestArray   user1     r     03/04/2013 19:01:37 main.q@node4  
>                                             1 1588
>     239 0.75000 TestArray   user1     r     03/04/2013 19:18:52 main.q@node6  
>                                             1 1589
>     239 0.75000 TestArray   user1     r     03/04/2013 19:22:07 main.q@node1  
>                                             1 1590
>     239 0.75000 TestArray   user1     r     03/04/2013 19:59:07 main.q@node6  
>                                             1 1591
>     239 0.75000 TestArray   user1     r     03/04/2013 20:01:52 main.q@node6  
>                                             1 1592
>     239 0.75000 TestArray   user1     r     03/04/2013 23:30:52 main.q@node1  
>                                             1 1593
>     239 0.75000 TestArray   user1     r     03/04/2013 23:44:52 main.q@node2  
>                                             1 1594
>     239 0.75000 TestArray   user1     r     03/04/2013 23:45:52 main.q@node2  
>                                             1 1595
>     239 0.75000 TestArray   user1     r     03/05/2013 00:56:52 main.q@node2  
>                                             1 1596
>     239 0.75000 TestArray   user1     r     03/05/2013 01:08:52 main.q@node1  
>                                             1 1597
>     239 0.75000 TestArray   user1     r     03/05/2013 08:24:52 main.q@node5  
>                                                   1 1598
>     239 0.75000 TestArray   user1     qw    02/28/2013 14:20:28               
>                                             1 1599-5400:1
>     240 0.25000 TestCluste  user2     qw    03/03/2013 13:22:45 
> 1 1,2
>  
> Hope you guys can help :)
> 
> Kind regards
> 


_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to