ch08(Modified) - Chapter 8 MemoryManagement Strategies...

This preview shows page 1 - 9 out of 64 pages.

Silberschatz, Galvin and Gagne  © 2013 Operating System Concepts – 9 th  Edition Chapter 8: Memory- Management Strategies
Image of page 1
8.2 Silberschatz, Galvin and Gagne  © 2013 Operating System Concepts  – 9 th  Edition Chapter 8: Memory Management Strategies Background Swapping  Contiguous Memory Allocation Segmentation Paging Structure of the Page Table Example: The Intel 32 and 64-bit Architectures Example: ARM Architecture
Image of page 2
8.3 Silberschatz, Galvin and Gagne  © 2013 Operating System Concepts  – 9 th  Edition Objectives To provide a detailed description of various ways of organizing memory hardware To discuss various memory-management techniques, including paging and segmentation To provide a detailed description of the Intel Pentium, which supports both pure segmentation and  segmentation with paging
Image of page 3
8.4 Silberschatz, Galvin and Gagne  © 2013 Operating System Concepts  – 9 th  Edition Background Program must be brought (from disk)  into memory and placed within a process for it to be run Main memory and registers are only storage CPU can access directly Memory unit only sees a stream of addresses + read requests, or address + data and write requests Register access in one CPU clock (or less) Main memory can take many cycles, causing a  stall Cache   sits between main memory and CPU registers Protection of memory required to ensure correct operation
Image of page 4
8.5 Silberschatz, Galvin and Gagne  © 2013 Operating System Concepts  – 9 th  Edition Base and Limit Registers A pair of  base   and   limit   registers  define the logical address space CPU must check every memory access generated in user mode to be sure it is between base and  limit for that user = smallest legal physical memory address =the size of the range The program can legally access all addresses from: 300040 through 420939 (inclusive)
Image of page 5
8.6 Silberschatz, Galvin and Gagne  © 2013 Operating System Concepts  – 9 th  Edition Hardware Address Protection with Base and Limit Registers
Image of page 6
8.7 Silberschatz, Galvin and Gagne  © 2013 Operating System Concepts  – 9 th  Edition Address Binding Programs on disk, ready to be brought into memory to execute form an  input queue Without support, must be loaded into address 0000 Inconvenient to have first user process physical address always at 0000  How can it not be? Further, addresses represented in different ways at different stages of a program’s life Source code addresses usually  symbolic Compiled  code addresses  bind  to  relocatable addresses i.e. “14 bytes from beginning of this module” Linker or  loader  will bind relocatable addresses to  absolute addresses i.e. 74014 Address binding =  maps one address space to another
Image of page 7
8.8
Image of page 8

Want to read all 64 pages?

Image of page 9

Want to read all 64 pages?

You've reached the end of your free preview.

Want to read all 64 pages?

  • Fall '16
  • Arno
  • Virtual memory, Gagne, Galvin, Silberschatz

{[ snackBarMessage ]}

Get FREE access by uploading your study materials

Upload your study materials now and get free access to over 25 million documents.

Upload now for FREE access Or pay now for instant access
Christopher Reinemann
"Before using Course Hero my grade was at 78%. By the end of the semester my grade was at 90%. I could not have done it without all the class material I found."
— Christopher R., University of Rhode Island '15, Course Hero Intern

Ask a question for free

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern