[PATCH] rteval: Remove mult from hackbench.py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 rteval/modules/loads/hackbench.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/rteval/modules/loads/hackbench.py b/rteval/modules/loads/hackbench.py
index ab028c495d8b..8119d50f626a 100644
--- a/rteval/modules/loads/hackbench.py
+++ b/rteval/modules/loads/hackbench.py
@@ -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
-- 
2.31.1




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux