Author: gnichols
Date: 2011-10-20 13:51:43 +0000 (Thu, 20 Oct 2011)
New Revision: 1126
Modified:
trunk/tests/cpuscaling/cpuscaling.py
Log:
743609 - CPU Scaling is failing with AMD Interlagos - user space load times aren't repeatable
Modified: trunk/tests/cpuscaling/cpuscaling.py
===================================================================
--- trunk/tests/cpuscaling/cpuscaling.py 2011-10-20 13:51:22 UTC (rev 1125)
+++ trunk/tests/cpuscaling/cpuscaling.py 2011-10-20 13:51:43 UTC (rev 1126)
@@ -30,6 +30,7 @@
from v7.test import Test
from v7.device import Device
from v7.command import Command, V7CommandException
+from v7.redhatrelease import RedHatRelease
"""
@@ -73,6 +74,8 @@
self.workloadEffectiveFreq = dict() # measured effective cpu freq indexed by [workload][cpu]
self.workloadErrors = dict() # error log indexed by [workload]
self.currentWorkload = "minimum"
+ # what RHEL are we testing?
+ self.redHatRelease = RedHatRelease()
def dumpTables(self):
print "\nDumping Data Tables:"
@@ -603,10 +606,15 @@
print " %s: aperf/mperf is%s supported"% (self.aperfmperfFlag, support)
sys.stdout.flush()
+ if self.redHatRelease.getArch() in [Constants.i386, Constants.i686] and self.redHatRelease.getVersion() is 5:
+ print "\n Checking Modules:"
+ self.checkKernelModule("msr")
+ print ""
+
print "\n Measurement Method:"
# use ./aperfmperf.py to assess effective frequency support, as cpuflags are not reliable.
efi = EffectiveFrequency(0)
- self.effectiveFrequencySupport = efi.has_support()
+ self.effectiveFrequencySupport = efi.has_support() is 0
if self.effectiveFrequencySupport:
print " Using C sqrt load processes and aperf/mperf effective freq. measurement (aperf.c)"
else: