MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The formula to calculate the Miss Rate is ____
A
Number of Hits / Total Attempt
B
Number of misses / Total Attempt
C
Total Attempt / Number of Misses
D
Total Attempt / Number of Hits
Explanation: 

Detailed explanation-1: -The miss rate is similar in form: the total cache misses divided by the total number of memory requests expressed as a percentage over a time interval. Note that the miss rate also equals 100 minus the hit rate.

Detailed explanation-2: -The fraction or percentage of accesses that result in a hit is called the hit rate. The fraction or percentage of accesses that result in a miss is called the miss rate. It follows that hit rate + miss rate = 1.0 (100%). The difference between lower level access time and cache access time is called the miss penalty.

Detailed explanation-3: -Calculate the cache hit ratio by dividing the number of cache hits by the combined numbers of hits and misses, then multiplying it by 100. For example, if a website has 107 hits and 16 misses, the site owner will divide 107 by 123, resulting in 0.87.

Detailed explanation-4: -On the first loop iteration, the cache misses on the access to memory address 0x4. This access loads data at addresses 0x0 through 0xC into the cache block. All subsequent accesses (as shown for address 0xC) hit in the cache. Hence, the miss rate is 1/15 = 6.67%.

There is 1 question to complete.