Or maybe 3% of cache is actually empty. If that is, then the stats should be look like:
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::empty 0.03 system.l2.occ_percent::total 1 any idea? On 5/26/12, biswabandan panda <[email protected]> wrote: > what about invalid lines? > > On Sat, May 26, 2012 at 10:38 PM, Mahmood Naderan > <[email protected]>wrote: > >> >What if the dish can actually hold 20 fruits in total, but only 2 apples >> >and 8 oranges are present? What would be the occupancy? >> Ok. In that case, >> occ_percent::total =100% = totalocc_percent::apples + >> occ_percent::oranges + remaining fruits. >> >> Isn't that? >> >> Back to the cache, if the items in the cache are only (writebacks, >> switch_cpu::data, switch_cpu::inst,prefetcher, cpu::inst and >> cpu::data) then the total occupancy of 97% means that there are 3% >> *remaining items*. >> So what is the remaining items then? >> >> On 5/26/12, Nilay Vaish <[email protected]> wrote: >> > On Sat, 26 May 2012, Mahmood Naderan wrote: >> > >> >>> 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. >> > >> > You are right, there is nothing in the cache when the simulation >> > starts, >> > which means that all the quantities will have a value of 0. How can >> > that >> > ever sum up to 1? In which case you are wrong in claiming that these >> > values should add up to 1. >> > >> >> >> >> >> >>> 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% >> > >> > What if the dish can actually hold 20 fruits in total, but only 2 >> > apples >> > and 8 oranges are present? What would be the occupancy? >> > >> > -- >> > Nilay >> > _______________________________________________ >> > 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 >> > > > > -- > > *thanks®ards > * > *BISWABANDAN* > -- // Naderan *Mahmood; _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
