@@ -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
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. Signed-off-by: John Kacur <jkacur@redhat.com> --- rteval/modules/loads/hackbench.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)