Chapter Two Memory organisation Examples of operating system n Windows 95/98/2000, Windows NT n Unix, Linux, n VAX/VMS IBM MVS n Novell Netware and Windows.

Slides:



Advertisements
Similar presentations
Memory.
Advertisements

Computer Organization and Architecture
M. Mateen Yaqoob The University of Lahore Spring 2014.
Chapter 12 Memory Organization
Memory Management Chapter 7.
Modified from notes by Saeid Nooshabadi COMP3221: Microprocessors and Embedded Systems Lecture 25: Cache - I Lecturer:
Memory Management (II)
S.1 Review: The Memory Hierarchy Increasing distance from the processor in access time L1$ L2$ Main Memory Secondary Memory Processor (Relative) size of.
Lecture 11: Memory Management
Memory Management 2010.
Memory Organization.
Chapter 3.2 : Virtual Memory
1 Chapter 8 Virtual Memory Virtual memory is a storage allocation scheme in which secondary memory can be addressed as though it were part of main memory.
Memory Management Chapter 5.
Computer Organization Cs 147 Prof. Lee Azita Keshmiri.
Computer Organization and Architecture
Virtual Memory Deung young, Moon ELEC 5200/6200 Computer Architecture and Design Lectured by Dr. V. Agrawal Lectured by Dr. V.
PC Maintenance: Preparing for A+ Certification
Memory Systems Architecture and Hierarchical Memory Systems
Random access memory.
Topics covered: Memory subsystem CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
8.4 paging Paging is a memory-management scheme that permits the physical address space of a process to be non-contiguous. The basic method for implementation.
Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection.
1 Chapter 3.2 : Virtual Memory What is virtual memory? What is virtual memory? Virtual memory management schemes Virtual memory management schemes Paging.
0 High-Performance Computer Architecture Memory Organization Chapter 5 from Quantitative Architecture January 2006.
1 Memory Hierarchy The main memory occupies a central position by being able to communicate directly with the CPU and with auxiliary memory devices through.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui COMP 203 / NWEN 201 Computer Organisation / Computer Architectures Virtual.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-8 Memory Management (2) Department of Computer Science and Software.
Fall 2000M.B. Ibáñez Lecture 17 Paging Hardware Support.
1 Memory Management (b). 2 Paging  Logical address space of a process can be noncontiguous; process is allocated physical memory whenever the latter.
1 Memory Management Chapter 7. 2 Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable.
Memory Cell Operation.
1 Memory Management. 2 Fixed Partitions Legend Free Space 0k 4k 16k 64k 128k Internal fragmentation (cannot be reallocated) Divide memory into n (possible.
1 Memory Management Chapter 7. 2 Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable.
MEMORY ORGANIZATION - Memory hierarchy - Main memory - Auxiliary memory - Cache memory.
4.3 Virtual Memory. Virtual memory  Want to run programs (code+stack+data) larger than available memory.  Overlays programmer divides program into pieces.
Memory Architecture Chapter 5 in Hennessy & Patterson.
Multilevel Caches Microprocessors are getting faster and including a small high speed cache on the same chip.
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
Lectures 8 & 9 Virtual Memory - Paging & Segmentation System Design.
Jeffrey Ellak CS 147. Topics What is memory hierarchy? What are the different types of memory? What is in charge of accessing memory?
What is it and why do we need it? Chris Ward CS147 10/16/2008.
Chapter 7 Memory Management Eighth Edition William Stallings Operating Systems: Internals and Design Principles.
COMPUTER SYSTEMS ARCHITECTURE A NETWORKING APPROACH CHAPTER 12 INTRODUCTION THE MEMORY HIERARCHY CS 147 Nathaniel Gilbert 1.
Memory Management Chapter 5 Advanced Operating System.
Types of RAM (Random Access Memory) Information Technology.
1 Contents Memory types & memory hierarchy Virtual memory (VM) Page replacement algorithms in case of VM.
Chapter 7: Main Memory CS 170, Fall Program Execution & Memory Management Program execution Swapping Contiguous Memory Allocation Paging Structure.
Memory Management memory hierarchy programs exhibit locality of reference - non-uniform reference patterns temporal locality - a program that references.
Memory Hierarchy and Cache. A Mystery… Memory Main memory = RAM : Random Access Memory – Read/write – Multiple flavors – DDR SDRAM most common 64 bit.
Types of RAM (Random Access Memory)
Ramya Kandasamy CS 147 Section 3
Module IV Memory Organization.
Computer Organization & Assembly Language Chapter 3
Memory chips Memory chips have two main properties that determine their application, storage capacity (size) and access time(speed). A memory chip contains.
Virtual Memory Chapter 8.
Paging and Segmentation
Chapter 8: Main Memory.
Operating System Concepts
Module IV Memory Organization.
William Stallings Computer Organization and Architecture 7th Edition
MICROPROCESSOR MEMORY ORGANIZATION
Lecture 3: Main Memory.
Memory Organization.
Contents Memory types & memory hierarchy Virtual memory (VM)
Chapter 8: Memory Management strategies
Fundamentals of Computing: Computer Architecture
Virtual Memory 1 1.
Presentation transcript:

Chapter Two Memory organisation

Examples of operating system n Windows 95/98/2000, Windows NT n Unix, Linux, n VAX/VMS IBM MVS n Novell Netware and Windows NT: Client/Server model

Objective n how Virtual Memory works; n the limitation and inaccuracy of data n the internal structure between DRAM and Video RAM; and n the function and location of Cache memory.

Overlay n Divide the program into several manageable smaller overlays to be stored on the disk n Load the first overlay into the memory and run for a while. n When it finishes, it reads the next overlay into the memory to perform program execution.

Idea of virtual memory n Allow programmers to write programs without paying attention to the size of the program n Programs could be as large as necessary n run even though the whole program would not fit into the main memory.

Relationship between virtual and physical page

Hardware and software n Break program (code + data) into pages (page means fixed length data block.) n Keep all code/data pages on disk n Brings pages from disk into memory only as needed by the programme only.

To implement virtual memory, n we must be able to: n break code/data into pages n recognize when a given page is not present in memory n be able to bring the missing page into various places in main memory

Difference Between Virtual Address and Physical Address n Compiled addresses are called virtual addresses for this reason. n Physical address refers to the address in the main memory.

Mapping n Mapping is about the virtual addresses to physical addresses. n It is composed of two parts, page # and offset n Example in a 16 bit virtual address has: n 4 bit page # (can be changed for different physical frame) n 12 bit offset

Addressing n For example 12310h, n The page number is 0011, the first four digits, n The offset is = 22.

Address Mapping

Virtual to Real addresses n to map one virtual address to several different locations in physical memory.

For example n The page number is 0011 in binary, which is 3 in decimal n The offset is in binary, which is 22 in decimal n If PAGE 3 was stored in page frame 0, the page is 0 offset = 22

Loading data from memory

Windows NT n All early PC using 8086 and used a segmented model. n A segmented addressing system divides physical memory (RAM) into units of continguious address, called segment. n the page size for Windows NT is chosen as 4K bytes

Windows NT disk address

Memory error Detection /Correction n deals with basic error detection and protection to ensure the data in the memory is accurate n invisible to software; and n set/checked by hardware only

3 bit word with parity checking

Hamming Codes n Suppose there is an m-bit word, how many extra bits are required to detect and correct the single bit error. n 2^n >= 2m(n + 1) n Since n = m + r n 2^(m+r) >= 2^m (m+r+1) n 2^r >= m + r + 1 n it is more efficient to apply this error checking for large word size but not for small word size.

6 bit word with one incorrect

Memory Chip Architectures n Main memory n Video memory n Main memory

DRAM and SRAM n DRAM uses capacities to hold the data and needs refreshment to store the data as a capacitor

Video memory n Video DRAM is a conventional DRAM with an additional 256 bit shift register on board. n This shift register is connected to help download a complete row of memory cells. n The shift register has its own output which can be controlled with separate input lines to the video DRAM.

Video RAM

Cache Memory n Cache is a French word which means “to hide”. n Cache memory refers to the memory that is invisible. n This helps to speed up the operation.

Cache Memory

characteristics for cache memory n It is usually built within a CPU/board chip to facilitate the frequently used commands. n Most frequently used code/data in memory is also kept in cache but invisible to software. n When program accesses this code/data, it comes from high speed cache rather than from slower main memory. n Cache memory is small, high speed memory usually on-chip or on same board as CPU.

Cache Design n size n how much will fit on a CPU/board? n at what point does increased size result in small improvements in hit rate? Issues

Cache Hit

Cache Miss

Software characteristic n Locality of addressing n Cache contents

Hit against cache size

Cache Performance n Mean access time = [cache memory access time] + (1-h)*[main memory access time] n h refers to the hit rate n Note that as h -> 0 the cache memory is a little worse than main memory alone.

Example n What is the effective memory speed of a cache-main memory system with the following characteristics? n main memory access time is 100 nsec n cache access time is 20 nsec n the hit rate is 95% u Using the formula, the effective memory speed is 20 + ( )x100 = 25 nsec

Summary n Virtual Memory and Overlay n The memory protection using Hamming code n Cache memory was designed to enhance performance. n To measure how efficient the system is running, hit ratio is used.