Reputation: 63
Does anyone know the formula for calculating the effective address-translation time?
For example, how to solve following problem:
Given an information as below:
The TLB can hold 1024 entries and can be accessed in 1 clock cycle (1 nsec).
A page table entry can be found in 100 clock cycles or 100 nsec.
The average page replacement time is 6 msec.
If page references are handled by the TLB 99% of the time, and only 0.01% lead to a page fault, what is the effective address-translation time?
So is it 1 nsec + (0.01% x 100 nsec) ?
Upvotes: 2
Views: 3674
Reputation: 1
All correct but u just need to add one time memory access too. bcz ur formula says what time it will take if hit and same if miss but after that
Upvotes: -1
Reputation: 10534
Based on the data in the question, in case of address translation (virtual-to-physical), following would happen:
The average access time would than be 0.99 * 1 ns + 0.0001 * 6000000 ns + 0.0099 * 100 ns = 601.98 ns.
Upvotes: 2