681 views
2 votes
2 votes
what is difference between miss rate and miss penalty.??

how to get both numerically?

1 Answer

4 votes
4 votes

Miss rate is the no. of referred pages that are not present in the page table. Let us assume if for every 10 references, 6 pages are not available in the page table then the miss rate is 6/10 = 0.6..... it will be given as hit rate.           Then 1-hit rate gives miss rate.

Miss Penalty is the time required to fetch the missing pages from secondary memory to primary memory. miss penalty can be calculated using time to search page table + time to access secondary memory + transfer of data from secondary memory to primary memory. usually it is given in the problem statement itself. if not we have to calculate it.

Related questions

1 votes
1 votes
0 answers
1
srestha asked Dec 27, 2018
427 views
Suppose there are $2$ level cache. If there are $L_{1}$ and $L_{2}$ are $2$ level cache, if both have some miss rate, then still why we need miss penalty for cache in bo...
1 votes
1 votes
1 answer
3
MayankSharma asked Aug 29, 2018
2,480 views
Are miss latency & miss penalty same in cache?if no then what's the difference???
1 votes
1 votes
1 answer
4
srestha asked Jul 25, 2018
2,220 views
Why we need to calculate miss penalty? I mean in miss rate we get every information about page table and valid/invalid bit. So, still why we calculating miss penalty?got ...