[torqueusers] how many resources left?
Bas van der Vlies
basv at sara.nl
Wed Sep 6 01:12:27 MDT 2006
Garrick Staples wrote:
> On Tue, Sep 05, 2006 at 04:14:51PM +0200, bill alleged:
>> Hello
>>
>> How can I know how many resources have I left?
>>
>> By hand, I can make a qstat -f and count how many nodes and ppn are
>> used, but is there an automatic way to do this?
>>
>> With an output like:
>> cluster with 10 nodes, 3 nodes with 4 ppn free, 2 nodes with 2
>> CPU free and 2 nodes with 1 CPU free, other nodes full.
I have written a simple python script that makes use of the pbs_python
package that gives this output: (Script attached)
./show_pbs_res.py and the output is:
Total number of nodes 686
Nodes with 1 processors
2 nodes has 1 free
Nodes with 2 processors
147 nodes has 0 free
59 nodes has 1 free
478 nodes has 2 free
********************************************************************
* *
* Bas van der Vlies e-mail: basv at sara.nl *
* SARA - Academic Computing Services phone: +31 20 592 8012 *
* Kruislaan 415 fax: +31 20 6683167 *
* 1098 SJ Amsterdam *
* *
********************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: show_pbs_res.py
Type: text/x-python
Size: 821 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20060906/431a3023/show_pbs_res.py
More information about the torqueusers
mailing list