[GE issues] [Issue 2335] load_avg data missing from "qstat -f -xml"

rayson rayrayson at gmail.com
Wed Feb 3 03:13:47 GMT 2010


http://gridengine.sunsource.net/issues/show_bug.cgi?id=2335



User rayson changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|ernst                     |rayson
--------------------------------------------------------------------------------




------- Additional comments from rayson at sunsource.net Tue Feb  2 19:13:44 -0800 2010 -------
The difference comes from the code:

Normal qstat
============
- clients/qstat/qstat.c

   /* load avg */
   if (!summary->has_load_value) {
      if (summary->has_load_value_from_object) {
         sprintf(to_print, "%2.2f ", summary->load_avg);
      } else {
         sprintf(to_print, "---  ");
      }
   } else {
      sprintf(to_print, "-NA- ");
   }

qstat XML
=========
- clients/qstat/qstat_xml.c

   /* load avg */
   if (summary->has_load_value && summary->has_load_value_from_object) {
      xml_append_Attr_D(attribute_list, "load_avg", summary->load_avg);
   }


For normal qstat output, load_avg is displayed when summary->has_load_value is FALSE and summary->has_load_value_from_object is TRUE .

For qstat XML output, load_avg is displayed when summary->has_load_value is TRUE and summary->has_load_value_from_object is TRUE .

This explains the difference in behavior, and I will read the code and see if the logic for qstat XML makes sense.

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=36&dsMessageId=242792

To unsubscribe from this discussion, e-mail: [issues-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list