summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2010-08-20 11:46:12 -0700
committerBrad Beckmann <Brad.Beckmann@amd.com>2010-08-20 11:46:12 -0700
commit29c45ccd2322470d0d6cef0ae20600c8c68f97e9 (patch)
treeec62739567ba7d442c8b65550507cdab6b7827dc /configs
parent8e5c441a54b481085d6311f14af66e41b5766f91 (diff)
downloadgem5-29c45ccd2322470d0d6cef0ae20600c8c68f97e9.tar.xz
ruby: Reduced ruby latencies
The previous slower ruby latencies created a mismatch between the faster M5 cpu models and the much slower ruby memory system. Specifically smp interrupts were much slower and infrequent, as well as cpus moving in and out of spin locks. The result was many cpus were idle for large periods of time. These changes fix the latency mismatch.
Diffstat (limited to 'configs')
-rw-r--r--configs/common/Options.py2
-rw-r--r--configs/example/ruby_se.py2
-rw-r--r--configs/ruby/MOESI_CMP_token.py4
-rw-r--r--configs/ruby/MOESI_hammer.py4
4 files changed, 6 insertions, 6 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index 4efbc541e..42e1585d7 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -34,7 +34,7 @@ parser.add_option("-n", "--num-cpus", type="int", default=1)
parser.add_option("--caches", action="store_true")
parser.add_option("--l2cache", action="store_true")
parser.add_option("--fastmem", action="store_true")
-parser.add_option("--clock", action="store", type="string", default='1GHz')
+parser.add_option("--clock", action="store", type="string", default='2GHz')
parser.add_option("--num-dirs", type="int", default=1)
parser.add_option("--num-l2caches", type="int", default=1)
parser.add_option("--num-l3caches", type="int", default=1)
diff --git a/configs/example/ruby_se.py b/configs/example/ruby_se.py
index a0e839bae..d51f92f19 100644
--- a/configs/example/ruby_se.py
+++ b/configs/example/ruby_se.py
@@ -143,7 +143,7 @@ assert(options.timing)
assert(test_mem_mode == 'timing')
assert(FutureClass == None)
-CPUClass.clock = '1GHz'
+CPUClass.clock = options.clock
np = options.num_cpus
diff --git a/configs/ruby/MOESI_CMP_token.py b/configs/ruby/MOESI_CMP_token.py
index f2669ef78..3853ebbb4 100644
--- a/configs/ruby/MOESI_CMP_token.py
+++ b/configs/ruby/MOESI_CMP_token.py
@@ -36,13 +36,13 @@ from m5.defines import buildEnv
# Note: the L1 Cache latency is only used by the sequencer on fast path hits
#
class L1Cache(RubyCache):
- latency = 3
+ latency = 2
#
# Note: the L2 Cache latency is not currently used
#
class L2Cache(RubyCache):
- latency = 15
+ latency = 10
def define_options(parser):
parser.add_option("--l1-retries", type="int", default=1,
diff --git a/configs/ruby/MOESI_hammer.py b/configs/ruby/MOESI_hammer.py
index 5cf27206b..818600a5a 100644
--- a/configs/ruby/MOESI_hammer.py
+++ b/configs/ruby/MOESI_hammer.py
@@ -35,13 +35,13 @@ from m5.defines import buildEnv
# Note: the L1 Cache latency is only used by the sequencer on fast path hits
#
class L1Cache(RubyCache):
- latency = 3
+ latency = 2
#
# Note: the L2 Cache latency is not currently used
#
class L2Cache(RubyCache):
- latency = 15
+ latency = 10
def define_options(parser):
return