DOC PREVIEW
Pitt CS 1550 - Problems in Memory Management

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Problems in Memory ManagementPowerPoint PresentationSlide 3Slide 4Problems in Memory ManagementCS 1550 RecitationOctober 9th, 2002The questions in this slide are from Andrew S. Tanenbaum's textbookpage 264.11. If an instruction takes 10 nsec and a page fault takes and additional n nsec, give a formula for the effective instruction time if page faults occur every k instructions.Consider k instructions: k-1 instructions execution without page fault:10 * (k - 1) nsec1 instuction with page fault:(10 + n) * 1nsecAverage:(10*(k-1) + (10+n)*1) / k = 10 + n/k nsec12. A machine has a 32-bit address space and an 8-KB page. The page is entirely in harware, with one 32-bit word per entry. The page table is copied to the hardware from memory, at one word every 100 nsec. If each process runs for 100 msec (including the time to load the page table), what fraction of the CPU time is devoted to loading the page tables?1 nsec = 1/1,000,000,000 sec1 msec = 1/1,000 secPage size : 8-KB  # of offset bits8-KB = 2^13 BytesOffset bits : 13 bitsPage number: 32 – 13 = 19 bitsHow many pages are there?2 ^ 19 = 524288Load time:524288 * 100 nsec = 0.0524288 secCPU time:100 msec = 0.1 secFraction:0.0524288 / 0.1 = 52.4%Real World …32-bit address space == 32-bit word per


View Full Document

Pitt CS 1550 - Problems in Memory Management

Download Problems in Memory Management
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Problems in Memory Management and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Problems in Memory Management 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?