[Mauiusers] setting busy status in funciotn of disk space and
cpuload
Tom Rudwick
tomr at intrinsity.com
Fri Sep 19 10:40:50 MDT 2008
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.
Tom
Arnau Bria wrote:
> Hi all,
>
> We'd like to add a condition in maui for setting a node in busy state.
> It will be how many free disk space is avaliable in a specific
> partition.
>
> So, we have defined this in /var/spool/pbs/mom_priv/config:
> [...]
> espacio !/usr/local/sbin/espacio.sh
>
>
>
> # cat /usr/local/sbin/espacio.sh
> #!/bin/bash
>
> df -k|grep home|awk {'print $4'}
>
>
>
>
> # pbsnodes td033.pic.es
> td033.pic.es
> state = free
> np = 8
> properties = slc4,magic
> ntype = cluster
> jobs = 0/529054.pbs02.pic.es, 4/526631.pbs02.pic.es,
> 5/526712.pbs02.pic.es status = opsys=linux,uname=Linux td033.pic.es
> 2.6.9-42.0.3.ELsmp #1 SMP Thu Oct 5 15:04:03 CDT 2006
> i686,sessions=19495 24503
> 23476,nsessions=3,nusers=1,idletime=266504,totmem=32637848kb,availmem=30431012kb,physmem=16632016kb,ncpus=8,loadave=3.85,gres=espacio:85167420+cpu_factor:=1.52375,netload=998062640,size=90667668kb:108277440kb,state=free,jobs=526712.pbs02.pic.es
> 529054.pbs02.pic.es 526631.pbs02.pic.es
> 529394.pbs02.pic.es,varattr=,rectime=1221818948
>
>
> But we don't find the way of specifying our condition in maui.cfg. We
> think it's under:
> NODEALLOCATIONPOLICY CPULOAD
> adding LOCAL
>
> NODEALLOCATIONPOLICY CPULOAD LOCAL
>
> but doc is not much detailled:
>
> http://www.clusterresources.com/products/maui/docs/5.2nodeallocation.shtml#LOCAL
>
> and we're not sure if this will mark our node as busy, or maui will
> only consider that node as the worst one, but still free...
>
>
> Anyone is doing something similar or could give us some hint on how to
> confiure it?
>
>
> ***Notice the "+" between espacio and cpufactor:
> gres=espacio:85167420+cpu_factor
>
> is it normal?
>
>
>
> TIA,
> Arnau
> _______________________________________________
> mauiusers mailing list
> mauiusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/mauiusers
>
More information about the mauiusers
mailing list