[Mauiusers] patch: NODECFG[DEFAULT] have MAXPROC per class

Yaroslav Halchenko lists at onerussian.com
Thu Nov 16 09:23:53 MST 2006

Dear Maui people,

I found out (on 3.2.6p16-snap.1161621752) that I can't assign MAXPROC
per class for DEFAULT node, ie I can assign, but it has no effect ( as
can be easily seen from diagnose -n).

After poking around the code it seems that there is some inconsistency
since this patch snippet is borrowed from another location in the
code which takes care about similar situation properly (I didn't get
into understanding when that piece is exactly engaged) but is
missing from handling of regular nodes.  Now I can define not only on a
node basis: 

NODECFG[node26]         MAXPROC[CLASS:long]=4

but also have it for DEFAULT so nodes take that value unless
defined per node


I hope it will be of use for someone
P.S. Now though I am experiencing next problem: although I don't define
MAXJOB anywhere explicitly in the config, and I have available
resources (PROC) I get 

11/10 00:23:43 MJobCheckLimits(341415,SOFT,P,8,Message)
11/10 00:23:43 MJobCheckPolicies(341415,SOFT,2,ALL,RIndex,NULL,2140000000)
11/10 00:23:43 MJobCheckLimits(341415,SOFT,P,2,Message)
11/10 00:23:43 job 341415 violates active SOFT MAXJOB limit of 50 for class verylong  (Req: 1, InUse: 50)
11/10 00:23:43 INFO:     job 341415 rejected, partition ALL (policy failure: 'MaxJobPerUser')

although not clear why it says MaxJobPerUser if the limit is actually by
the class.
I have 25 nodes active, so maui must have computed somewhere
that SOFT MAXJOB is 2*NODES... I have tried various configuration
parameters to override it with no luck :-/ now I can't utilize all
available procs withing a single queue. Any hints are very welcome!
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
        101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW:     http://www.linkedin.com/in/yarik        
-------------- next part --------------
diff -Naur maui-3.2.6p16-snap.1161621752.orig/src/moab/MPBSI.c maui-3.2.6p16-snap.1161621752/src/moab/MPBSI.c
--- maui-3.2.6p16-snap.1161621752.orig/src/moab/MPBSI.c	2006-10-23 12:42:30.000000000 -0400
+++ maui-3.2.6p16-snap.1161621752/src/moab/MPBSI.c	2006-11-01 12:26:29.591649015 -0500
@@ -1730,6 +1730,11 @@
             CCount = MIN(CCount,N->MaxProcPerClass[C->Index]);
+          else if ((MSched.DefaultN.MaxProcPerClass != NULL) &&
+                   (MSched.DefaultN.MaxProcPerClass[C->Index] > 0))
+            {
+            CCount = MIN(CCount,MSched.DefaultN.MaxProcPerClass[C->Index]);
+            }
           N->CRes.PSlot[C->Index].count += CCount;
           N->CRes.PSlot[0].count        += CCount;

More information about the mauiusers mailing list