Author: gnichols
Date: 2011-10-17 19:44:04 +0000 (Mon, 17 Oct 2011)
New Revision: 1116
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-17 19:43:37 UTC (rev 1115)
+++ trunk/tests/cpuscaling/cpuscaling.py 2011-10-17 19:44:04 UTC (rev 1116)
@@ -24,12 +24,13 @@
import decimal
import signal
+from aperfmperf import EffectiveFrequency
+
from v7.tags import Constants, DeviceClass, TestTag
from v7.test import Test
from v7.device import Device
from v7.command import Command, V7CommandException
-from aperfmperf import EffectiveFrequency
"""
Tolerance Calculation, workload time checks:
@@ -596,14 +597,23 @@
support = ""
self.turboBoostSupport = True
print " %s: Turbo Boost is%s supported" % (self.idaFlag, support)
- self.effectiveFrequencySupport = False
support = " NOT"
if self.aperfmperfFlag in self.cpuFlags:
support = ""
- self.effectiveFrequencySupport = True
print " %s: aperf/mperf is%s supported"% (self.aperfmperfFlag, support)
sys.stdout.flush()
+ 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()
+ if self.effectiveFrequencySupport:
+ print " Using C sqrt load processes and aperf/mperf effective freq. measurement (aperf.c)"
+ else:
+ print " Using Python pi load processes with /sys freq. values, (no aperf/mperf support)."
+ print ""
+ sys.stdout.flush()
+
return True
def getCPUFlags(self):