>Suppose the system is just about to start, that is number of cycles/ticks = 0. >What >would be the value of all of these quantities?
There is no problem with the starting point. At starting point there is nothing in cache. The stats are calculated at the end of simulation and we want to calculate the items in the cache. >Why do you expect these numbers should add up to 100%? Let me say this example: There is a dish that contains 2 apples and 8 oranges. Then total number of items are 10. Now the occupancy percentage for apples is (2/10)*100=20% and the occupancy percentage for oranges is (8/10)*100=80% => occ_percent::apples + occ_percent::oranges = 100% That is why expect the total occupancy percent should be 100% in cache. Let me ask the question in this way: what does this statement mean: "the total occupancy percent for cache is 97%"? On 5/26/12, Nilay Vaish <[email protected]> wrote: > You still have not answered my question. Why do you expect these numbers > should add up to 100%? Suppose the system is just about to start, that is > number of cycles/ticks = 0. What would be the value of all of these > quantities? > > -- > Nilay > > On Sat, 26 May 2012, Mahmood Naderan wrote: > >> Well as in my first post, the total stat says that: >> 0.977153% of L2 cache occupancy is devoted to >> writebacks+switch_cpus.inst+switch_cpus.data+l2.prefetcher+cpu.inst+cpu.data >> >> So where is the remaining 3%? >> That is my understanding though. Please let me know if I am wrong. >> >> On 5/26/12, Nilay Vaish <[email protected]> wrote: >>> Why should it sum up to 100%? >>> >>> -- >>> Nilay >>> >>> On Sat, 26 May 2012, Mahmood Naderan wrote: >>> >>>> I haven't figured out the problem yet. I looked into the code, but it >>>> is not clear how the percentage is calculated. Only the stats names >>>> are understandable. >>>> >>>> Why the total percent is less than 100%. I saw this in some other >>>> benchmarks. For example for one of them I see >>>> system.l2.occ_percent::total 0.576470 >>>> >>>> any comment is appreciated >>>> >>>> On 4/13/12, Mahmood Naderan <[email protected]> wrote: >>>>> Hi, >>>>> Can someone explain how the percentage of occupancy is calculated? >>>>> As you can see: >>>>> system.l2.occ_percent::writebacks 0.016149 >>>>> system.l2.occ_percent::switch_cpus.inst 0.034804 >>>>> system.l2.occ_percent::switch_cpus.data 0.177745 >>>>> system.l2.occ_percent::l2.prefetcher 0.732205 >>>>> system.l2.occ_percent::cpu.inst 0.001578 >>>>> system.l2.occ_percent::cpu.data 0.014672 >>>>> system.l2.occ_percent::total 0.977153 >>>>> >>>>> Why the total is not equal to 1? >>>>> -- >>>>> // Naderan *Mahmood; >>>>> >>>> >>>> >>>> -- >>>> // Naderan *Mahmood; >>>> _______________________________________________ >>>> 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 >>> >> >> >> -- >> // Naderan *Mahmood; >> _______________________________________________ >> 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 > -- // Naderan *Mahmood; _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
