Memory: Paging
[Pages:21]CS 4410 Operating Systems
Memory: Paging
Summer 2016 Cornell University
Today
? An allocation and protection mechanism that is used on most operating systems.
2
Paging
? Allocation and protection scheme. ? Processes get non-contiguous memory space. ? Memory is partitioned into fixed-size blocks.
3
Paging
? Divide physical memory into frames:
? Fixed-sized blocks. ? Size is power of 2, between 512 bytes and 8,192 bytes.
? Divide virtual memory into pages.
? Same size as frames.
? Page table translates virtual to physical addresses.
4
Paging
5
Paging Example
Frame size = page size = 4 bytes If CPU produces virtual address 11, what is the corresponding physical address? ? Find the page that 11 belongs to:
? Page number:2 ? Find the offset of 11 in page 2:
? Page offset: 3 ? Find the frame that 11 corresponds to:
? Frame number:1 ? Find the physical address that 11 corresponds to:
? Physical address: Frame number * frame size + page offset = 7
6
Address Translation
Page number (p) ? used as an index into a page table which contains base address of each page in physical memory.
Page offset (d) ? combined with base address to define the physical memory address that is sent to the memory unit.
We can find the page number and the page offset of a virtual address, if we know the size of pages.
If virtual address v has m bits (virtual address space 2^m), and
if the size of pages is 2^n, then:
page number
page
?the n least significant bits of v are used as d,
offset
? the remaining bits of v are used as p.
p
d
m - n
n
7
Address Translation Scheme
8
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- running head header 1 different first page
- page numbers using both roman and arabic numerals
- starting the page number greater than 1 massey university
- preliminary pages how to start page numbering at a
- different page numbers for different sections
- page setup headers footers and continuous page
- start page numbering at a specific page in microsoft word 2007
- google docs instructions for formatting an academic paper
- changing page numbers from roman numerals to arabic
- word 2010 working with sections and page numbering
Related searches
- memory activities speech therapy adults
- functional memory tasks for adults
- psychology chapter 6 memory quiz
- memory recall worksheets for adults
- memory therapy activities for adults
- functional short term memory activities
- advances in memory management
- memory management pdf
- computer memory management
- memory worksheets for adults printable
- questions for grandparents memory book
- short term memory activities adults