rteval: services: Iterate through items in MakeReport
PATCH 1/1 rteval: services: Iterate through items in MakeReport
Iterate through items instead of keys in MakeReport.
--- rteval/sysinfo/services.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
rteval/sysinfo/services.py +3 -3
@@ -111,10 +111,10 @@ class SystemServices: rep_n = libxml2.newNode("Services") rep_n.newProp("init", self.__init) - for s in srvs: + for service, val in srvs.items(): srv_n = libxml2.newNode("Service") - srv_n.newProp("state", srvs[s]) - srv_n.addContent(s) + srv_n.newProp("state", val) + srv_n.addContent(service) rep_n.addChild(srv_n) return rep_n
Signature · 1 line
2.31.1
PATCH 1/1 rteval: Remove mult from hackbench.py
The method for calculating the number of jobs to run for hackbench was changed with the following commit.
commit 67629a1b69ffe72af6bfb3a0d4362ac1920005a7
However, the mult variable which was used to calculate the number of jobs using the older method was not removed.
Remove it now and simplify the logic.
--- rteval/modules/loads/hackbench.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
rteval/modules/loads/hackbench.py +2 -5
@@ -41,7 +41,6 @@ class Hackbench(CommandLineLoad): def __init__(self, config, logger): CommandLineLoad.__init__(self, "hackbench", config, logger) - def _WorkloadSetup(self): 'calculate arguments based on input parameters' (mem, units) = self.memsize
@@ -51,12 +50,10 @@ class Hackbench(CommandLineLoad): mem = mem / 1024.0 elif units == 'TB': mem = mem * 1024 + ratio = float(mem) / float(self.num_cpus) - if ratio >= 0.75: - mult = float(self._cfg.setdefault('jobspercore', 2)) - else: + if ratio < 0.75: self._log(Log.WARN, "Low memory system (%f GB/core)!" % ratio) - mult = 0 sysTop = SysTopology() # get the number of nodes
Signature · 1 line
2.31.1
PATCH 1/1 rteval: Remove self.__err_sleep
In reply to John Kacurcommit 5ed68ae77ec05786aab99fbed35d0347a5d25997
changed the code to exit gracefully if hackbench failed from memory errors. No attempt is made anymore to wait to see if memory pressures ease. The variable __err_sleep however was not removed at the time. Remove it now, as it is now longer used.
--- rteval/modules/loads/hackbench.py | 1 - 1 file changed, 1 deletion(-)
rteval/modules/loads/hackbench.py +0 -1
@@ -97,7 +97,6 @@ class Hackbench(CommandLineLoad): '-l', str(self._cfg.setdefault('loops', '1000')), '-s', str(self._cfg.setdefault('datasize', '1000')) ] - self.__err_sleep = 5.0 def _WorkloadBuild(self): # Nothing to build, so we're basically ready
Signature · 1 line
2.31.1