That is seems very interesting.

To answer Hugh, I thought that it should be a problem with a single job
that have multiple threads (multithreading). From GridEngine you will see
only one real job, but it detects that the load is greater than only one
slot.

With these commands you would have the total of slots (even if the job is
an array or if it is parallel), while you won't have the real load on your
nodes if there are some multithreaded job.

Thanks,
Regards
Remy


2013/6/27 William Hay <[email protected]>

>
>
>
> On 27 June 2013 13:22, Rémy Dernat <[email protected]> wrote:
>
>>  Hi,
>>
>>  I would like to count the number of slots used for a specific user.
>>
>>  I am doing something like this:
>>
>>  nb_slots=`qstat -s r|grep -w $USER |awk 'BEGIN { ORS="+" } {print
>> $9}'`;echo "$nb_slots 0"|bc
>>
>>  However, I don't think it is working for jobs with many threads.
>>
>>  Is there any possibility to check that in an easy way ?
>>
>> I can't get the above to work even for a bunch of simple single slot
> single threaded jobs.
> If I were trying something similar I would use:
> echo $(qstat -s r -u ccaawih |tail -n +3| awk '{print $9}')|tr ' ' '+'|bc
>
> With ccaawih being the name of the user.
>
> We have a little script on our cluster that lists out slots per user but
> it relies on the fact that we have job_is_first_task true for all PEs:
> #!/bin/bash
> qstat -u "*"  -s r | tail -n +3|awk '{FOO=0;while ( FOO<$9){FOO =
> FOO+1;print $4 }}'|sort|uniq -c|sort -n
>
>
> William
>
>>  Thanks,
>>
>> Regards,
>> Remy
>>
>
>
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to