0

I am a bit new to using StarCluster and SGE. I was wondering what the best practice is for monitoring "Cluster Performance", that is, to determine how many of a certain job the cluster can run in some unit of time. I am familiar with qstat command but that just shows the status of each job. I guess my use case is to submit X jobs and to know how long it takes for all X to complete. Is there an easy out-of-the-box way to do this or must I write a scipt to do it?

Right now I am using Ubuntu 12.04 for each instance.

Thanks Much!

4

1 回答 1

0

这样一个简单的 bash 脚本 + 一个 time 命令就足够了。

lines=999
while [ $lines -ne 0 ]; do
    sleep 1;
    lines=`qstat -u "*" | wc -l`;
    done;

只要队列不为空,此脚本就会循环。如果您将脚本称为“queue_watch.sh”,则启动您的作业,然后运行命令

time bash queue_watch.sh

那应该这样做。

于 2014-08-31T18:29:24.177 回答