[torquedev] mem limit change in resmon/linux/mom_mach.c

Dave Jackson jacksond at clusterresources.com
Tue Apr 25 16:44:32 MDT 2006


Garrick,

  The fix should be checked in.  Please let me know if you see anything
further.

Dave

On Tue, 2006-04-25 at 15:36 -0700, Garrick Staples wrote:
> Does anyone know the rationale for this change in
> resmon/linux/mom_mach.c?
> 
> @@ -1251,11 +1259,8 @@ int mom_set_limits(
>            vmem_limit = value;
>          }
>        } 
> -    else if (strcmp(pname,"mem") == 0) 
> -      {        
> -      /* ignore */
> -      } 
> -    else if (strcmp(pname,"pmem") == 0) 
> +    else if ((!strcmp(pname,"mem") && (pjob->ji_numnodes == 1)) ||
> +              !strcmp(pname,"pmem")) 
>        {        
>        /* set */
>  
> 
> Using "mem" on multi-node jobs are now getting rejected as an unknown
> resource.
> 
> _______________________________________________
> torquedev mailing list
> torquedev at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torquedev



More information about the torquedev mailing list