1,043 views
2 votes
2 votes
Is it correct approach to solve this question.Please tell.

Qu.
time for memory access=100 ns, time for cache access =5ns
40 % of data access results in successfull cache hit.
70 % of instruction access result in succesfull TLB hit.
A program has 30 % data & 70 % instructions.
effective access time =.

Solution :
let program has 100 lines.
So data has 30 lines and instruction has 70 lines.
Data hit -> 30 * 0.4 =12 lines
Instruction hit -> 70 * 0.7 =49 lines
Total hit: 49+12=61 lines .so hit ratio= 61/100 =0.61
Effective access time= 0.61 * 5 +(1-0.61)*(5+100)
=3.05+40.95=44ns

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
Ray Tomlinson asked Aug 22, 2023
244 views
is this formula is correct if it is correct then in gate 2006 Question 75 why they not used this formulahttps://gateoverflow.in/43565/gate-cse-2006-question-75
2 votes
2 votes
1 answer
2
0 votes
0 votes
1 answer
4
Mrityudoot asked May 22, 2023
198 views
Under what category does Universal Serial Bus fall: System Bus or a Network connection or something else?