aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2016-02-09 15:45:50 -0600
committerClark Williams <williams@redhat.com>2016-02-09 15:45:50 -0600
commita0ba42b20ff20b35c75fb55f069e8e77bbad1187 (patch)
treed7c4a54bb302ebbc9f759c39b918477aed68082e
parente360f3b4f3cf9c6a0ce7b943dd5b27c71f71c28e (diff)
downloadrteval-a0ba42b20ff20b35c75fb55f069e8e77bbad1187.tar.gz
report load and measurement placement with cpulists
when --load-cpulist is specified report where the loads are running. Ditto for --measurement-cpulist. Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r--rteval/__init__.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/rteval/__init__.py b/rteval/__init__.py
index 8f5b2fa..8ff8429 100644
--- a/rteval/__init__.py
+++ b/rteval/__init__.py
@@ -173,17 +173,27 @@ class RtEval(rtevalReport):
self._loadmods.Start()
print "rteval run on %s started at %s" % (os.uname()[2], time.asctime())
- print "started %d loads on %d cores" % (self._loadmods.ModulesLoaded(), self._sysinfo.cpu_getCores(True)),
+ onlinecpus = self._sysinfo.cpu_getCores(True)
+ cpulist = self._loadmods._cfg.GetSection("loads").cpulist
+ if cpulist:
+ print "started %d loads on cores %s" % (self._loadmods.ModulesLoaded(), cpulist),
+ else:
+ print "started %d loads on %d cores" % (self._loadmods.ModulesLoaded(), onlinecpus),
if self._sysinfo.mem_get_numa_nodes() > 1:
print " with %d numa nodes" % self._sysinfo.mem_get_numa_nodes()
else:
print ""
+ cpulist = self._measuremods._MeasurementModules__cfg.GetSection("measurement").cpulist
+ if cpulist:
+ print "started measurement threads on cores %s" % cpulist
+ else:
+ print "started measurement threads on %d cores" % onlinecpus
print "Run duration: %s seconds" % str(self.__rtevcfg.duration)
# start the cyclictest thread
measure_profile.Start()
- # Uleash the loads and measurement threads
+ # Unleash the loads and measurement threads
report_interval = int(self.__rtevcfg.report_interval)
nthreads = with_loads and self._loadmods.Unleash() or None
self.__logger.log(Log.INFO, "Waiting 30 seconds to let load modules settle down")