Question: How big should a TLB be? TLB misses are usually very fast (fewer than 10 instructions plus the cost of an exception), so it may
How big should a TLB be? TLB misses are usually very fast (fewer than 10 instructions plus the cost of an exception), so it may not be worth having a huge TLB just to lower the TLB miss rate a bit. Using the SimpleScalar simulator (www.cs.wisc.edu/~mscalar/simplescalar.html) and one or more SPEC95 benchmarks, calculate the TLB miss rate and the TLB overhead (in percentage of time wasted handling TLB misses) for the following TLB configurations. Assume that each TLB miss requires 20 instructions.
a. 128 entries, two-way set associative, 4 KB to 64 KB pages (going by powers of 2).
b. 256 entries, two-way set associative, 4 KB to 64 KB pages (going by powers of 2).
c. 512 entries, two-way set associative, 4 KB to 64 KB pages (going by powers of 2).
d. 1024 entries, two-way set associative, 4 KB to 64 KB pages (going by powers of 2).
e. What would be the effect on TLB miss rate and overhead for a multitasking environment? How would the context switch frequency affect the overhead?
Step by Step Solution
3.57 Rating (157 Votes )
There are 3 Steps involved in it
a TL B miss rate 0 04 0 08 TL B overhead 0 00 16 0 00 32 b TL B miss rate 0 02 0 04 TL B overhead ... View full answer
Get step-by-step solutions from verified subject matter experts
