http://www.cs.wisc.edu/~bart/537/quizzes/quiz7.html
CS 537 - Quiz #7
|
UNIVERSITY OF WISCONSIN-MADISON
Computer Sciences Department
|
|
CS 537
Spring 1996
| | Bart Miller
|
| Quiz #7
Wednesday, April 10
|
|
Paging, Segmentation, and TLB's
Consider a virtual memory architecture with the following parameters:
-
64 bit words
-
64 bit virtual addresses
-
8K byte page size
-
512K segments in a virtual address
-
4 gigabytes of real memory
-
page tables are stored in real memory
-
page tables can start on any byte boundary
Add a TLB to the memory mapping architecture that is described above.
This cache should be
2-way set associative
and have
64 rows.
-
Draw a diagram of the TLB based on the figure on the next page, showing the size of each field in the TLB.
Indicate how bits of the VA are used for input to the TLB, and describe the
outputs from the TLB.
-
How often do you need to flush (clear) the TLB?
On every context switch.
Why?
TLB's contain mappings from virtual to physical addresses.
If you do not flush the TLB, then the current process may use the
mappings from the previous one, causing it to access the wrong page frames.
Last modified:
Wed Apr 10 16:32:18 CDT 1996
by
bart