Re: [gem5-users] Data_Cache
Analyze your benchmark by running for fewer number of loops(say 2 loops, first loop all miss and second loop all hits) and look at the gems statistics. This might give you a lead. Thanks, Prathap On Sep 8, 2017 4:27 PM, "Jackie Chan" wrote: > I'm actually using SE mode, so the only process running is this small > program. > > On Fri, Sep 8, 2017 at 7:10 PM, Prathap Kolakkampadath < > kvprat...@gmail.com> wrote: > >> Could you provide more details about your system configuration? How are >> you making sure that no other process or kernel accessing the memory. >> >> Thanks, >> Prathap >> >> On Sep 8, 2017 7:54 AM, "Jackie Chan" wrote: >> >> Hey guys! >> >> I'm running a small program on gem5 to test data cache. The cache size is >> 32kB (assoc: 8 and block size: 64 bytes). The program loads independent >> data values from an array with an offset of 64 bytes (the cache block >> size), such that the total size of array is 32kB, and the accesses keep on >> happening in a loop. Theoretically the number of data cache misses should >> be very low in this case. However I am noticing 72 million data cache >> misses for a total of 520 million accesses. I reduced the size of the >> array to 30kB rather than 32kB ( using the same size of data cache) and the >> number of misses reduced to less than a thousand. I am not sure what I >> might be missing here? Any thoughts? >> >> ___ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> >> >> >> ___ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > ___ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] Data_Cache
I'm actually using SE mode, so the only process running is this small program. On Fri, Sep 8, 2017 at 7:10 PM, Prathap Kolakkampadath wrote: > Could you provide more details about your system configuration? How are > you making sure that no other process or kernel accessing the memory. > > Thanks, > Prathap > > On Sep 8, 2017 7:54 AM, "Jackie Chan" wrote: > > Hey guys! > > I'm running a small program on gem5 to test data cache. The cache size is > 32kB (assoc: 8 and block size: 64 bytes). The program loads independent > data values from an array with an offset of 64 bytes (the cache block > size), such that the total size of array is 32kB, and the accesses keep on > happening in a loop. Theoretically the number of data cache misses should > be very low in this case. However I am noticing 72 million data cache > misses for a total of 520 million accesses. I reduced the size of the > array to 30kB rather than 32kB ( using the same size of data cache) and the > number of misses reduced to less than a thousand. I am not sure what I > might be missing here? Any thoughts? > > ___ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > > ___ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Re: [gem5-users] Data_Cache
Could you provide more details about your system configuration? How are you making sure that no other process or kernel accessing the memory. Thanks, Prathap On Sep 8, 2017 7:54 AM, "Jackie Chan" wrote: Hey guys! I'm running a small program on gem5 to test data cache. The cache size is 32kB (assoc: 8 and block size: 64 bytes). The program loads independent data values from an array with an offset of 64 bytes (the cache block size), such that the total size of array is 32kB, and the accesses keep on happening in a loop. Theoretically the number of data cache misses should be very low in this case. However I am noticing 72 million data cache misses for a total of 520 million accesses. I reduced the size of the array to 30kB rather than 32kB ( using the same size of data cache) and the number of misses reduced to less than a thousand. I am not sure what I might be missing here? Any thoughts? ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[gem5-users] Data_Cache
Hey guys! I'm running a small program on gem5 to test data cache. The cache size is 32kB (assoc: 8 and block size: 64 bytes). The program loads independent data values from an array with an offset of 64 bytes (the cache block size), such that the total size of array is 32kB, and the accesses keep on happening in a loop. Theoretically the number of data cache misses should be very low in this case. However I am noticing 72 million data cache misses for a total of 520 million accesses. I reduced the size of the array to 30kB rather than 32kB ( using the same size of data cache) and the number of misses reduced to less than a thousand. I am not sure what I might be missing here? Any thoughts? ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users