How would you calculate the cache hit ratio?
>64 byte cache lines
>1MB main memory
>>54854293
3.14
>>54854293
Please help
afaik, cache hit ratio are measured, not calculated.
It varies based on data and code.
>>54854619
There's a way to calculate it
>>54854293
dumb frogposter
>>54854293
Average access time of L1 cache = average hit time + (miss rate * average access time of L2 cache)
you cant really calculate it if you just have the sizes of the caches, it will depend on what kind of memory accesses you do.