[GE users] Creating a Soft consumable resource

stephendennis sdennis at univaud.com
Tue Oct 19 04:23:01 BST 2010


Hello List

This thread fizzled out in July.  Does anyone know why soft consumables are
denied, and if there is some way around this?

Thanks
Stephen

===========================================


I went through the source code and the code to deny soft resources consumables
was added in SGE v5.3 to fix the bug id
http://gridengine.sunsource.net/issues/show_bug.cgi?id=223

http://gridengine.sunsource.net/ds/viewMessage.do?dsMessageId=78898&dsForumId=35

Quoting: ( 
<> 
 I think there is a little bug inside SGE 5.3 .  
 If I have a host complex 
 mpi_down mpi_down BOOL false == NO NO false 
 and a queue with 
 load_thresholds      np_load_short=1.1,mpi_down=true 
 this queues is alarmed when no loadreport set mpi_down 
 to false.  
</>

From: ./daemons/qmaster/sge_job_qmaster.c
<>
/****** sge_job/deny_soft_consumables() ****************************************
*  NAME
*     deny_soft_consumables() -- Deny soft consumables
*
*  SYNOPSIS
*     static int deny_soft_consumables(lList **alpp, lList *srl)
*
*  FUNCTION
*     Find out if consumables are requested and deny them.
*
*  INPUTS
*     lList** alpp                    - answer list pointer pointer
*     lList *srl                      - jobs JB_soft_resource_list
*     const lList *master_centry_list - the master centry list
*
*  RESULT
*     static int - 0 request can pass
*                !=0 consumables requested soft
*
*******************************************************************************/
int deny_soft_consumables(lList **alpp, lList *srl, const lList
*master_centry_list)
{
   lListElem *entry, *dcep;
   const char *name;

   DENTER(TOP_LAYER, "deny_soft_consumables");

   /* ensure no consumables are requested in JB_soft_resource_list */
   for_each(entry, srl) {
      name = lGetString(entry, CE_name);

      if (!(dcep = centry_list_locate(master_centry_list, name))) {
         ERROR((SGE_EVENT, MSG_ATTRIB_MISSINGATTRIBUTEXINCOMPLEXES_S , name));
         answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN,
ANSWER_QUALITY_ERROR);
         DRETURN(-1);
      }

      /* ignore non-consumables */
      if (lGetUlong(dcep, CE_consumable)) {
         ERROR((SGE_EVENT, MSG_JOB_MOD_SOFTREQCONSUMABLE_S, name));
         answer_list_add(alpp, SGE_EVENT, STATUS_EUNKNOWN,
ANSWER_QUALITY_ERROR);
         DRETURN(-1);
      }
   }

   DRETURN(0);
}
</>

<>

            if (deny_soft_consumables(alpp, lGetList(jep,
JB_soft_resource_list), master_centry_list)) {
            DRETURN(STATUS_EUNKNOWN);
         }
</>

Can someone more knowledgeable please comment on the changes or point us to some
documentation on the soft resources.

Thanks.

-----Original Message-----
From: Molumuri, Janardhan 
Sent: Monday, July 19, 2010 8:02 PM
To: use... at gridengine.sunsource.net
Cc: svibhore
Subject: RE: [GE users] Creating a Soft consumable resource

A soft request on consumable attributes is not working.



More information about the gridengine-users mailing list