[Mauiusers] Question on mem resource differences between torque and maui

Åke Sandgren ake.sandgren at hpc2n.umu.se
Tue Feb 7 06:01:05 MST 2006


Hi!

In MPBSI.c MPBSJobSetAttr there is the following code

================
  else if (!strcmp(AP->name,ATTR_l))
    {
...
    else if (!strcmp(AP->resource,"pmem"))
      {
      /* NOTE: called 'workingset'? (indiana) */

      /* 'per processor' required memory */

      RQ->DRes.Mem = (MPBSGetResKVal(AP->value) >> 10);
      }
    else if (!strcmp(AP->resource,"pvmem"))
      {
      /* NOTE: called 'pmem'? (indiana) */

      /* 'per processor' required swap */

      RQ->DRes.Swap = (MPBSGetResKVal(AP->value) >> 10);
      }
    else if (!strcmp(AP->resource,"mem"))
      {
      /* 'per job' required memory */

      TA->JobMemLimit = (MPBSGetResKVal(AP->value) >> 10);
      }
    else if (!strcmp(AP->resource,"vmem"))
      {
      /* 'per job' required swap */

      TA->JobSwapLimit = (MPBSGetResKVal(AP->value) >> 10);
      }
===================

This looks weird after having read at least the linux/mom_mach.c from
torque where p(v)mem is limited per process (not processor) and (v)mem
is limited per node (or task) not per job.

Dave? Garrick?

-- 
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: ake at hpc2n.umu.se   Phone: +46 90 7866134 Fax: +46 90 7866126
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se


More information about the mauiusers mailing list