Custom Query (431 matches)
Results (121 - 123 of 431)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#446 | fixed | IZ2335: load_avg data missing from "qstat -f -xml" | Dave Love <d.love@…> | craffi |
Description |
[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2335] Issue #: 2335 Platform: All Reporter: craffi (craffi) Component: gridengine OS: All Subcomponent: qmaster Version: 6.1u3 CC: None defined Status: NEW Priority: P3 Resolution: Issue type: DEFECT Target milestone: --- Assigned to: rayson (rayson) QA Contact: ernst URL: * Summary: load_avg data missing from "qstat -f -xml" Status whiteboard: Attachments: Issue 2335 blocks: Votes for issue 2335: 13 Opened: Tue Jul 24 07:19:00 -0700 2007 ------------------------ Summary: qstat should produce the same output regardless of output format type. The XML output option ("-xml") currently does not show load_avg data. Easy to reproduce: chrisdag-aliased:~ dag$ qstat -f queuename qtype used/tot. load_avg arch states ---------------------------------------------------------------------------- all.q@chrisdag-aliased BIP 0/1 0.26 darwin-x86 chrisdag-aliased:~ dag$ qstat -f -xml <?xml version='1.0'?> <job_info xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <queue_info> <Queue-List> <name>all.q@chrisdag-aliased</name> <qtype>BIP</qtype> <slots_used>0</slots_used> <slots_total>1</slots_total> <arch>darwin-x86</arch> </Queue-List> </queue_info> <job_info> </job_info> </job_info> ------- Additional comments from craffi Mon Mar 17 10:48:32 -0700 2008 ------- Is it possible to get a status update or target milestone added to this issue? I may be biased (!!) but getting qstat output consistent is pretty important. ------- Additional comments from rayson Tue Feb 2 20:13:44 -0700 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. ------- Additional comments from rayson Fri Feb 12 18:58:29 -0700 2010 ------- A simple fix: Index: clients/qstat/qstat_xml.c =================================================================== RCS file: /cvs/gridengine/source/clients/qstat/qstat_xml.c,v retrieving revision 1.43 diff -C 4 -r1.43 qstat_xml.c *** clients/qstat/qstat_xml.c 4 Sep 2009 11:30:14 -0000 1.43 --- clients/qstat/qstat_xml.c 13 Feb 2010 01:55:51 -0000 *************** *** 1014,1022 **** xml_append_Attr_I(attribute_list, "slots_resv", summary->resv_slots); xml_append_Attr_I(attribute_list, "slots_total", summary->total_slots); /* load avg */ ! if (summary->has_load_value && summary->has_load_value_from_object) { xml_append_Attr_D(attribute_list, "load_avg", summary->load_avg); } /* arch */ --- 1014,1022 ---- xml_append_Attr_I(attribute_list, "slots_resv", summary->resv_slots); xml_append_Attr_I(attribute_list, "slots_total", summary->total_slots); /* load avg */ ! if (!summary->has_load_value && summary->has_load_value_from_object) { xml_append_Attr_D(attribute_list, "load_avg", summary->load_avg); } /* arch */ Now qstat -f XML displays the load information: hccgalaxy:~> /tmp/s/source/LINUXAMD64_26/qstat -f -xml <?xml version='1.0'?> <job_info xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <queue_info> <Queue-List> <name>all.q@hccgalaxy</name> <qtype>BIP</qtype> <slots_used>0</slots_used> <slots_resv>0</slots_resv> <slots_total>4</slots_total> <load_avg>1.03000</load_avg> <arch>lx26-amd64</arch> </Queue-List> </queue_info> <job_info> </job_info> </job_info> While standard qstat misses it: hccgalaxy:~> qstat -f -xml <?xml version='1.0'?> <job_info xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <queue_info> <Queue-List> <name>all.q@hccgalaxy</name> <qtype>BIP</qtype> <slots_used>0</slots_used> <slots_resv>0</slots_resv> <slots_total>4</slots_total> <arch>lx26-amd64</arch> </Queue-List> </queue_info> <job_info> </job_info> </job_info> |
|||
#452 | fixed | IZ2360: sge_conf sentence for execd_params in wrong location | reuti | |
Description |
[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2360] Issue #: 2360 Platform: All Reporter: reuti (reuti) Component: gridengine OS: All Subcomponent: man Version: 6.1 CC: None defined Status: NEW Priority: P3 Resolution: Issue type: DEFECT Target milestone: --- Assigned to: andreas (andreas) QA Contact: andreas URL: * Summary: sge_conf sentence for execd_params in wrong location Status whiteboard: Attachments: Issue 2360 blocks: Votes for issue 2360: Opened: Fri Sep 14 04:12:00 -0700 2007 ------------------------ The manpage sge_conf states in the middle of the execd_params paragraph: Changing execd_params will take immediate effect. The default for execd_params is none. The global configuration entry for this value may be overwritten by the execution host local configuration. This sentence should be at the end of this paragraph, not in the middle. |
|||
#454 | fixed | IZ2362: "qstat -f -xml" returns the sum of used and total slots in slots_total | Dave Love <d.love@…> | bs |
Description |
[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2362] Issue #: 2362 Platform: Macintosh Reporter: bs (bs) Component: gridengine OS: All Subcomponent: clients Version: 6.1u2 CC: [_] opoplawski [_] Remove selected CCs Status: NEW Priority: P3 Resolution: Issue type: DEFECT Target milestone: --- Assigned to: roland (roland) QA Contact: roland URL: * Summary: "qstat -f -xml" returns the sum of used and total slots in slots_total Status whiteboard: Attachments: Issue 2362 blocks: Votes for issue 2362: Opened: Sat Sep 15 09:34:00 -0700 2007 ------------------------ The number of used slots is added to the total number of slots configured for a particular queue instance in the output of "qstat -f -xml". Example: "qstat -f" returns queuename qtype used/tot. load_avg arch states ---------------------------------------------------------------------------- ... all.q@powermac12 BIP 2/4 0.00 darwin-ppc 57184 0.55500 codine.sh bs r 09/15/2007 17:27:09 1 57185 0.55500 codine.sh bs r 09/15/2007 17:27:09 1 ... for a machine configured with four slots (output truncated). "qstat -f -xml" returns <?xml version='1.0'?> <job_info xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <queue_info> ... <Queue-List> <name>all.q@powermac12</name> <qtype>BIP</qtype> <slots_used>2</slots_used> <slots_total>6</slots_total> <arch>darwin-ppc</arch> <job_list state="running"> <JB_job_number>57184</JB_job_number> <JAT_prio>0.55500</JAT_prio> <JB_name>codine.sh</JB_name> <JB_owner>bs</JB_owner> <state>r</state> <JAT_start_time>2007-09-15T17:27:09</JAT_start_time> <slots>1</slots> </job_list> <job_list state="running"> <JB_job_number>57185</JB_job_number> <JAT_prio>0.55500</JAT_prio> <JB_name>codine.sh</JB_name> <JB_owner>bs</JB_owner> <state>r</state> <JAT_start_time>2007-09-15T17:27:09</JAT_start_time> <slots>1</slots> </job_list> </Queue-List> ... for the same configuration (again, output truncated). Looking at the source code of SGE version 6.1u2, it seems to me that this bug can be fixed with the following little patch to source/clients/qstat/qstat_xml.c: --- qstat_xml.c.orig 2007-06-15 10:34:13.000000000 +0200 +++ qstat_xml.c 2007-09-15 11:15:57.000000000 +0200 @@ -1012,10 +1012,10 @@ /* number of used/free slots */ xml_append_Attr_I(attribute_list, "slots_used", summary->used_slots); - xml_append_Attr_I(attribute_list, "slots_total", summary->used_slots + summary->free_slots); + xml_append_Attr_I(attribute_list, "slots_total", summary->free_slots); /* load avg */ - if (summary->has_load_value && summary->has_load_value_from_object) { + if (!summary->has_load_value && summary->has_load_value_from_object) { xml_append_Attr_D(attribute_list, "load_avg", summary->load_avg); } This also resolves issue 2335 ("qstat -f -xml" not returning load_avg data). ------- Additional comments from opoplawski Fri Nov 2 08:45:04 -0700 2007 ------- Perhaps free_slots needs to get renamed to total_slots to avoid confusion? Changing os to All since this happens on Linux too. |
Note: See TracQuery
for help on using queries.