EE457_Dis11_VirtualtMem_HW7

EE457_Dis11_VirtualtMem_HW7 - 1 EE457 Discussion Fall 2007...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 EE457 Discussion Fall 2007 HW#7 Virtual Memory Discussion # 11 Maryam Soltan, USC 2 Recall: Levels of the Memory Hierarchy Registers Cache Memory Disk Tape Instr. Operands Blocks Pages Files UpperLevel LowerLevel faster Larger Locality A principle that makes having a memory hierarchy a good idea If an item is referenced, temporal locality: it will tend to be referenced again soon spatial locality: nearby items will tend to be referenced soon. 4 MMU Virtual Memory (Fig.7.19) Main memory acts as a cache for disk Advantages: illusion of having more physical memory program relocation p r o t e c t i o n Virtual addresses Physical addresses Address translation Disk addresses 6 Pages: virtual memory blocks and Address Translation (Fig.7.20) A virtual address is translated to a physical address by a combination of hardware and software W hen the page is not in physical memory => page fault Page Tables (PTs) (Fig.7.21) Page Tables (PTs) (Fig.7.22) Page table Physical page or disk address Physical memory Virtual page number Disk storage 1 1 1 1 1 1 1 1 1 Valid Making Address Translation Fast Using TLB...
View Full Document

Page1 / 17

EE457_Dis11_VirtualtMem_HW7 - 1 EE457 Discussion Fall 2007...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online