CS 111 Scribe Notes: Lecture 14

11-18-08

Beayna Grigorian & Saro Meguerdichian



Big real-world problem: unreliable processes with bad memory references

Solutions:

Standard Unix Memory Layout

standard memory
  • Idea: allow multiple base-bounds pairs (1 per region -- say 8).

    + For each pair, have permission bits.
       useful permissions:
    r - -
    r w -
    r w x
    r - x
    - - x (?)

    + Can share text region to save RAM.
    - Doesn't scale well to dynamic linking.
    - 8 is an arbitrary limit, need more! (use segmented memory).

  • Shared memory can be anywhere and there can be many shared memory regions.



Virtual Memory

memory mapping