We have this in our mom configs:
size [fs=/tmp]
This makes the size resource hold the space available in /tmp
Then we do:
qsub -l ddisk=5gb
Or you could set a default for ddisk for a queue or server.
It should only run on nodes with the proper amount of free
space. I'm sure you can do this other ways, but I don't have
experience with those. Hopefully you can adapt this to what
you need.
Tom
Arnau Bria wrote:
On Fri, 19 Sep 2008 11:40:50 -0500
Tom Rudwick wrote:
Hi Tom,
If you have torque keeping track of disk space, you can just put
a default requirement on a queue or the server that specifies a
required free disk amount. Under that case, no jobs should run on
nodes that do not have enough free disk space.
Ok, I have defined a "dynamic" resource
at /var/spool/pbs/mom_priv/config and it's monitored by torque:
cat /var/spool/pbs/mom_priv/config
[...]
espacio !/usr/local/sbin/espacio.sh
$ pbsnodes td008.pic.es
td008.pic.es
state = free
np = 8
properties = slc4,magic
ntype = cluster
status = opsys=linux,uname=Linux td008.pic.es 2.6.9-42.0.3.ELsmp
#1 SMP Thu Oct 5 15:04:03 CDT 2006 i686,sessions=? 0,nsessions=?
0,nusers=0,idletime=3634169,totmem=32637848kb,availmem=32394068kb,physmem=16632016kb,ncpus=8,loadave=0.00,gres=espacio:102668424+cpu_factor:=1.52375,netload=3726282356,state=free,jobs=,varattr=,rectime=1222078967
Now, I try to submit a job requesting that resource, but I think I don't
know how to specify it correctly:
echo sleep 5|qsub -l "other=espacio=1234567891234" -q short
I'd like to define it as "size" default resource, that
Specifies that the available and configured disk space in the <FS> in
kb... is it possible?
If not, I'm thinking that I'll use size in certain nodes (the ones that
have small disks) and nothing in others, but, could someone predict
toque/maui behaivour when sending jobs reqeusting a resource that some
nodes have and some not?
thanks for your reply.
Tom
Cheer,
Arnau
_______________________________________________
mauiusers mailing list
[email protected]
http://www.supercluster.org/mailman/listinfo/mauiusers
_______________________________________________
mauiusers mailing list
[email protected]
http://www.supercluster.org/mailman/listinfo/mauiusers