Hi Will,

The classic memory system requires all coherent caches to have the same line 
size. Thus, all your L1s, L2s etc need to have the same cacheline size, and 
there isa  parameter on the system level to set it. If you want your last-level 
cache to have a larger cache you can do so, but it requires some updates to the 
cache model, since you effectively place this cache after the 
point-of-coherency.

I am not sure if Ruby supports different block size at different levels. If 
not, we should remove these parameters.

Andreas

From: gem5-users 
<[email protected]<mailto:[email protected]>> on behalf of 
Will <[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list 
<[email protected]<mailto:[email protected]>>
Date: Thursday, 25 June 2015 05:01
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [gem5-users] How to configure three level caches with different cache 
line size?

Hello,

I'm new to gem5 and trying to establish simulation environment of three level 
caches with different cache line size using gem5.
I have managed to modify some codes and configurations of gem5. However, I 
always got error messages below.
I'm puzzled the relationships of between the cache line size of gem5 system  
and that of each level cache.

I would appreciate if some one can shed some light on this.

Best regards,
Will

=================================================================
$ build/ARM/gem5.opt configs/example/BCse.py --caches --l1i_size=4kB 
--l1i_assoc=128 --l1i_block_size=32 --l1d_size=4kB --l1d_assoc=128 
--l1d_block_size=32 --l2cache --l2_size=32kB --l2_assoc=512 --l2_block_size=64 
--l3cache --l3_size=128kB --l3_assoc=32 --l3_block_size=128 -c 
tests/test-progs/hello/bin/arm/linux/hello
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Jun 25 2015 10:20:16
gem5 started Jun 25 2015 10:38:32
gem5 executing on Stormy
command line: build/ARM/gem5.opt configs/example/BCse.py --caches 
--l1i_size=4kB --l1i_assoc=128 --l1i_block_size=32 --l1d_size=4kB 
--l1d_assoc=128 --l1d_block_size=32 --l2cache --l2_size=32kB --l2_assoc=512 
--l2_block_size=64 --l3cache --l3_size=128kB --l3_assoc=32 --l3_block_size=128 
-c tests/test-progs/hello/bin/arm/linux/hello
Global frequency set at 1000000000000 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (512 Mbytes)
      0: system.cpu.isa: ISA system set to: 0 0x3ea7f10
[BChip]Size: 4096, block_size: 64, assoc: 128, sets: 0
fatal: # of sets must be non-zero and a power of 2
 @ tick 0
[BaseSetAssoc:build/ARM/mem/cache/tags/base_set_assoc.cc, line 70]
Memory Usage: 795072 KBytes
Program aborted at cycle 0
Aborted (core dumped)
=================================================================
$ build/ARM/gem5.opt configs/example/BCse.py --caches --l1i_size=4kB 
--l1i_assoc=128 --l1i_block_size=32 --l1d_size=4kB --l1d_assoc=128 
--l1d_block_size=32 --l2cache --l2_size=32kB --l2_assoc=512 --l2_block_size=64 
--l3cache --l3_size=128kB --l3_assoc=32 --l3_block_size=128 --cacheline_size=32 
-c tests/test-progs/hello/bin/arm/linux/hello
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Jun 25 2015 10:20:16
gem5 started Jun 25 2015 10:42:28
gem5 executing on Stormy
command line: build/ARM/gem5.opt configs/example/BCse.py --caches 
--l1i_size=4kB --l1i_assoc=128 --l1i_block_size=32 --l1d_size=4kB 
--l1d_assoc=128 --l1d_block_size=32 --l2cache --l2_size=32kB --l2_assoc=512 
--l2_block_size=64 --l3cache --l3_size=128kB --l3_assoc=32 --l3_block_size=128 
--cacheline_size=32 -c tests/test-progs/hello/bin/arm/linux/hello
Global frequency set at 1000000000000 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (512 Mbytes)
      0: system.cpu.isa: ISA system set to: 0 0x3de0090
[BChip:create]Size: 4096, block_size: 32, assoc: 128, sets: 1
warn: Consider using FALRU tags for a fully associative cache
[BChip]block_size: 32
[BChip:create]Size: 4096, block_size: 32, assoc: 128, sets: 1
warn: Consider using FALRU tags for a fully associative cache
[BChip]block_size: 32
[BChip:create]Size: 32768, block_size: 64, assoc: 512, sets: 1
warn: Consider using FALRU tags for a fully associative cache
[BChip]block_size: 64
[BChip:create]Size: 131072, block_size: 128, assoc: 32, sets: 32
[BChip]block_size: 128
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
**** REAL SIMULATION ****
info: Entering event queue @ 0.  Starting simulation...
panic: Page table fault when accessing virtual address 0xe5108004
 @ tick 50000
[invoke:build/ARM/sim/faults.cc, line 69]
Memory Usage: 798924 KBytes
Program aborted at cycle 50000
Aborted (core dumped)
=================================================================






-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered 
in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, 
Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to