Thanks Martin. This indeed verified my configuration too.

Kind Regards, Ahmad


On 15 January 2014 12:46, Martin Brown <[email protected]> wrote:

> Not a cache expert, but I verified this myself a while back.
>
> Take a look at src/mem/cache/tags/base.cc
>
> In the constructor, p->size should be the cache size that you specified.
> That verified it for me.
>
>
> On Wed, Jan 15, 2014 at 1:19 AM, Hossein Nikoonia <[email protected]>wrote:
>
>> I guess the one that is shown in cpuinfo is fake... the system is already
>> configured with the cache you've specified in command line arguments.
>>
>> Cache experts! Am I right?
>>
>>
>> On Tue, Jan 14, 2014 at 3:16 PM, Ahmad Hassan <[email protected]>wrote:
>>
>>>
>>> Also 'cat /proc/cpuinfo' shows the wrong cache size 1024KB where the
>>> system was started as:
>>>
>>> ./build/X86/gem5.opt configs/example/fs.py
>>> --kernel=x86_64-vmlinux-2.6.22.9.smp   --cpu-type=detailed  --caches
>>>  --l1d_size=32kB --l1d_assoc=8 --l1i_size=32kB --l1i_assoc=8 --l2cache
>>> --l2_size=256kB  --l2_assoc=8 - --cacheline_size=64
>>>
>>> Any clues please?
>>>
>>> Best,
>>>
>>>
>>> On 14 January 2014 11:11, Zohreh Naghibi <[email protected]>wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Tue, Jan 14, 2014 at 2:27 AM, Ahmad Hassan 
>>>> <[email protected]>wrote:
>>>>
>>>>> I can see L2, L3 stats in stats.txt but how can I make sure that the
>>>>> LINUX has the correct cache sizes that I am passing in gem5 command line
>>>>> please? Is there a way to verify that? Because Linux bootup terminal 
>>>>> output
>>>>> only shows the following incorrect configuration:
>>>>>  "Mount-cache hash table entries: 256
>>>>> CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
>>>>> CPU: L2 Cache: 1024K (64 bytes/line)"
>>>>>
>>>>> Thanks.
>>>>>
>>>>> Ahmad
>>>>>
>>>>>
>>>>>
>>>>> On 14 January 2014 09:14, Ahmad Hassan <[email protected]> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> Please can you tell me how to verify that the Linux has been booted
>>>>>> with the actual cache configuration passed in gem5? I have run GEM3 with
>>>>>> L1, L2 and L3 having following sizes. I added L3 bus myself.
>>>>>>
>>>>>> ./build/X86/gem5.opt configs/example/fs.py
>>>>>> --kernel=x86_64-vmlinux-2.6.22.9.smp --cpu-type=detailed --caches
>>>>>> --num-l2caches=1 --num-l3caches=1 --l1d_size=32kB --l1d_assoc=8
>>>>>> --l1i_size=32kB --l1i_assoc=8 --l2cache --l2_size=256kB --l2_assoc=8
>>>>>> --l3_assoc=16 --l3_size=8192kB --cacheline_size=64 --l3cache
>>>>>>
>>>>>> But when Ubuntu (Lucid) boots up then I don't see any cache
>>>>>> configuration through 'lscpu'
>>>>>>
>>>>>> $lscpu
>>>>>> Architecture:          x86_64
>>>>>> CPU op-mode(s):        32-bit, 64-bit
>>>>>> CPU(s):                1
>>>>>> Thread(s) per core:    1
>>>>>> Core(s) per socket:    1
>>>>>> CPU socket(s):         1
>>>>>> Vendor ID:             M5 Simulator
>>>>>> CPU family:            15
>>>>>> Model:                 37
>>>>>> Stepping:              1
>>>>>> CPU MHz:               2000.010
>>>>>>
>>>>>> Moreover, 'ls /sys/devices/system/cpu/cpu0' only shows 'topology' dir
>>>>>> and no cache directory.
>>>>>>
>>>>>> Also during the system bootup, the Linux shows wrong cache
>>>>>> configuration for both L1 and L2:
>>>>>> :
>>>>>> "Mount-cache hash table entries: 256
>>>>>> CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
>>>>>> CPU: L2 Cache: 1024K (64 bytes/line)"
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> gem5-users mailing list
>>>>> [email protected]
>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> gem5-users mailing list
>>>> [email protected]
>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>>
>>>
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
>
> --
> Martin
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to