Professional Documents
Culture Documents
* Build ALPHA ISA with gem5.opt binary by invoking RUBY module and
MESI Two Level coherence
protocol.
* Simulate in syscall emulation mode using se.py
Base Configuration:
Number of cores/CPUs : 1
L1-I cache (size / associativity) : 16 kB / 2-way
L1-D cache (size / associativity) : 16 kB / 2-way
L2 cache (size / associativity) : 256 kB / 4-way
Cache-line / Cache-block size : 32 B
Main memory size : 1 GB
Benchmark : bzip2
Instruction count : 100000
2. In base configuration, change the L2 cache size to 512kB and benchmark to namd.
What will be
the L2 cache MPKI?
a) 20.5 - 22.5 b) 14.5 - 16 c) 284 - 287 d) 12.5 -13.5
Correct answer: (b)
Detailed solution:
./build/ALPHA/gem5.opt configs/example/se.py --ruby --num-cpus=1 --
l1i_size=16kB --
l1d_size=16kB --l1i_assoc=2 --l1d_assoc=2 --l2_size=512kB --l2_assoc=4 --
cacheline_size=32 --
mem-size=1GB --bench=namd –maxinsts=100000
system.ruby.l2_cntrl0.L2cache.demand_misses 1487
L2-mpki= (1487/100000)*1000= 14.87 (14.87 is exact answer)