Hi Rémy:
Hmm, not sure why that wouldn’t work. What do you mean by ‘many threads’? It
works for me with a mix of single and a few mpi jobs. Only suggestion I would
make would be to do the column sum in awk:
qstat -s r | grep -w $USER | awk '{ttl+=$9} END {print ttl}'
There’s probably a better way though I bet. ☺
-Hugh
From: [email protected] [mailto:[email protected]] On
Behalf Of Rémy Dernat
Sent: Thursday, June 27, 2013 8:22 AM
To: [email protected]
Subject: [gridengine users] Count slots for a specific User
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 ?
Thanks,
Regards,
Remy
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users