Chapter 2: Computer-System Structures. Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General System Architecture



Similar documents
Computer-System Architecture

Operating Systems. Lecture 03. February 11, 2013

Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

1. Computer System Structure and Components

University of Dublin Trinity College. Storage Hardware.

Operating Systems 4 th Class

Main Memory & Backing Store. Main memory backing storage devices

Chapter 1: Introduction. Chapter 1: Introduction. Operating System Concepts, 7th Edition. Objectives

File System & Device Drive. Overview of Mass Storage Structure. Moving head Disk Mechanism. HDD Pictures 11/13/2014. CS341: Operating System

Price/performance Modern Memory Hierarchy

Operating Systems Overview

Lecture 1 Operating System Overview

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Robert Wagner

Types Of Storage Device

Operating System Concepts. Operating System 資 訊 工 程 學 系 袁 賢 銘 老 師

Writing Assignment #2 due Today (5:00pm) - Post on your CSC101 webpage - Ask if you have questions! Lab #2 Today. Quiz #1 Tomorrow (Lectures 1-7)

Data Storage - I: Memory Hierarchies & Disks

Devices and Device Controllers

William Stallings Computer Organization and Architecture 7 th Edition. Chapter 6 External Memory

Chapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers.

Disk Storage & Dependability

Secondary Storage. Any modern computer system will incorporate (at least) two levels of storage: magnetic disk/optical devices/tape systems

Chapter 8 Memory Units

& Data Processing 2. Exercise 2: File Systems. Dipl.-Ing. Bogdan Marin. Universität Duisburg-Essen

CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 5 Storage Devices

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Chapter 12: Secondary-Storage Structure

CS 6290 I/O and Storage. Milos Prvulovic

Record Storage and Primary File Organization

Sistemas Operativos: Input/Output Disks

With respect to the way of data access we can classify memories as:

Operating Systems Prof. Ashok K Agrawala

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

Solid State Drive Architecture

Chapter 10: Mass-Storage Systems

lesson 1 An Overview of the Computer System

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 412, University of Maryland. Guest lecturer: David Hovemeyer.

Chapter 9: Peripheral Devices: Magnetic Disks

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

Storage. The text highlighted in green in these slides contain external hyperlinks. 1 / 14

Here are my slides from lecture, along with my notes about each slide.

CS 464/564 Introduction to Database Management System Instructor: Abdullah Mueen

Outline. CS 245: Database System Principles. Notes 02: Hardware. Hardware DBMS Data Storage

Chapter 8. Secondary Storage. McGraw-Hill/Irwin. Copyright 2008 by The McGraw-Hill Companies, Inc. All rights reserved.

Computer Systems Structure Main Memory Organization

I/O Management. General Computer Architecture. Goals for I/O. Levels of I/O. Naming. I/O Management. COMP755 Advanced Operating Systems 1

Chapter 11 I/O Management and Disk Scheduling

Chapter 1 Computer System Overview

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Why Computers Are Getting Slower (and what we can do about it) Rik van Riel Sr. Software Engineer, Red Hat

Outline. Principles of Database Management Systems. Memory Hierarchy: Capacities and access times. CPU vs. Disk Speed

Chapter Introduction. Storage and Other I/O Topics. p. 570( 頁 585) Fig I/O devices can be characterized by. I/O bus connections

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

Communicating with devices

Chapter 3: Operating-System Structures. Common System Components

Chapter 3. Operating Systems

How To Improve Performance On A Single Chip Computer

Overview and History of Operating Systems

OS OBJECTIVE QUESTIONS

Chapter 12: Mass-Storage Systems

Storing Data: Disks and Files

Mass Storage Structure

6. Storage and File Structures

Physical Data Organization

William Stallings Computer Organization and Architecture 8 th Edition. External Memory

Chapter 2 Data Storage

Input/output (I/O) I/O devices. Performance aspects. CS/COE1541: Intro. to Computer Architecture. Input/output subsystem.

Floppy Drive & Hard Drive

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Overview of Operating Systems Instructor: Dr. Tongping Liu

INTRODUCTION The collection of data that makes up a computerized database must be stored physically on some computer storage medium.

Random-Access Memory (RAM) The Memory Hierarchy. SRAM vs DRAM Summary. Conventional DRAM Organization. Page 1

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

DIABLO TECHNOLOGIES MEMORY CHANNEL STORAGE AND VMWARE VIRTUAL SAN : VDI ACCELERATION

Tech Application Chapter 3 STUDY GUIDE

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Chapter 14: Recovery System

Storing Data: Disks and Files. Disks and Files. Why Not Store Everything in Main Memory? Chapter 7

1. Memory technology & Hierarchy

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Recommended hardware system configurations for ANSYS users

Fastboot Techniques for x86 Architectures. Marcus Bortel Field Application Engineer QNX Software Systems

Platter. Track. Index Mark. Disk Storage. PHY 406F - Microprocessor Interfacing Techniques

Input / Ouput devices. I/O Chapter 8. Goals & Constraints. Measures of Performance. Anatomy of a Disk Drive. Introduction - 8.1

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton

RAID HARDWARE. On board SATA RAID controller. RAID drive caddy (hot swappable) SATA RAID controller card. Anne Watson 1

HARD DRIVE CHARACTERISTICS REFRESHER

Lecture 9: Memory and Storage Technologies

Disks and RAID. Profs. Bracy and Van Renesse. based on slides by Prof. Sirer

Spacecraft Computer Systems. Colonel John E. Keesee

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

Introduction to Operating Systems. Perspective of the Computer. System Software. Indiana University Chen Yu

Common Operating-System Components

PC Boot Considerations for Devices >8GB

Big Picture. IC220 Set #11: Storage and I/O I/O. Outline. Important but neglected

Introduction. System Calls

User's Guide. RecoveryExpert. Compute with confidence

Primary Memory. Input Units CPU (Central Processing Unit)

Transcription:

Chapter 2: Computer-System Structures Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General System Architecture Operating System Concepts 2.1 Computer-System Architecture Operating System Concepts 2.2 1

Computer-System Operation I/O devices and the CPU can execute concurrently. Each device controller is in charge of a particular device type. Each device controller has a local buffer. CPU moves data from/to main memory to/from local buffers I/O is done from the device to local buffer of controller. Memory controller is used to ensure orderly access to shared memory. So, its function is to synchronize access to the shared memory. Device controller informs CPU that it has finished its operation by causing an interrupt. Operating System Concepts 2.3 Interrupt Time Line For a Single Process Doing Output Operating System Concepts 2.4 2

Storage Structure Main memory only large storage media that the CPU can access directly. The programs must be in main memory to be executed. Secondary storage extension of main memory that provides large nonvolatile storage capacity. Magnetic disks rigid metal or glass platters covered with magnetic recording material Disk surface is logically divided into tracks, which are subdivided into sectors. The disk controller determines the logical interaction between the device and the computer. Operating System Concepts 2.5 Moving-Head Disk Mechanism Operating System Concepts 2.6 3

Magnetic Disk Mechanism The two surfaces of a platter are covered with magnetic material. Platter diameters range from 1.8 to 5.25 inches. There may be thousands of concentric cylinders in a disk drive, and each track may contain hundreds of sectors. The transfer rate is the rate at which data flow between the drive and the computer. The positioning time (or random access time), consists of seek time and rotational latency. The seek time is the time to move the disk arm to the desired cylinder. The rotational latency is the time for the desired sector to rotate to the disk head. Operating System Concepts 2.7 Storage Structure Floppy disks consist of one platter and the head sits directly on the surface. Its inexpensive, less storage 1.4MB and slower compare it to the hard disk. Also, it is removable. The load instruction moves a word from main memory to an internal register, within the CPU for execution. The store instruction moves the content of a register to main memory. Can we store the programs and data in main memory permanently? The answer is no for two reasons: Main memory is small to store all programs and data. Main memory (RAM) is volatile storage device that loses its contents when power is turned off or otherwise lost. Therefore, to store all programs and data permanently you use secondary storage such as hard disk and diskette. Operating System Concepts 2.8 4

Storage Hierarchy Storage systems organized in hierarchy. Speed Cost Volatility Caching copying information into faster storage system; main memory can be viewed as a last cache for secondary storage. Operating System Concepts 2.9 Storage-Device Hierarchy Size Small Fast and Expensive Size Large Slow and Cheap Operating System Concepts 2.10 5

Storage-Device Hierarchy Registers, cache, and main memory are volatile. All storage after main memory are non-volatile. Caching: Check first cache memory if data not there go to main memory and copy it into cache under the assumption that there is a high probability that it will be needed again. Data must be moved from secondary storage into main memory before use. Data transfer from cache to CPU and registers is usually a hardware function with no operating system control. Data transfer from disk to memory is usually controlled by the operating system. Cache Coherency and Consistency is the state that exists in a multiprocessor system, when any shared data is held by 2 or more caches, and no 2 caches hold different values of such a shared data simultaneously. Operating System Concepts 2.11 Hardware Protection Dual-Mode Operation I/O Protection Memory Protection CPU Protection Operating System Concepts 2.12 6

Dual-Mode Operation Protection is needed for any shared resource. Sharing system resources requires operating system to ensure that an incorrect program cannot cause other programs to execute incorrectly. Provide hardware support to differentiate between at least two modes of operations. 1.User mode execution done on behalf of a user. 2.Monitor mode (also supervisor mode or system mode) execution done on behalf of operating system. Operating System Concepts 2.13 Dual-Mode Operation (Cont.) At system boot time, the hardware starts in monitor mode. The O.S. is then loaded, and starts user processes in user mode. Whenever, an interrupt occurs, the hardware switches from user mode to monitor mode. Whenever, the O.S. gains control of the computer, it is in monitor mode. If you do not have dual mode then you can wipe or write over the O.S. Example: MS-DOS for 8088 architecture does not have a dual mode. MS-Widows NT and IBM OS/2 take advantage of dual mode feature and provide greater protection for the O.S. Operating System Concepts 2.14 7

Dual-Mode Operation (Cont.) Mode bit added to computer hardware to indicate the current mode: monitor (0) or user (1). When an interrupt or fault occurs hardware switches to monitor mode. Interrupt/fault monitor user set user mode Privileged instructions can be issued only in monitor mode. Operating System Concepts 2.15 I/O Protection All I/O instructions are privileged instructions. Must ensure that a user program could never gain control of the computer in monitor mode (i.e., a user program that, as part of its execution, stores a new address in the interrupt vector). Operating System Concepts 2.16 8

Memory Protection We want to protect the O.S. from access by user programs, and to protect user programs from one another. In order to have memory protection, add two registers that determine the range of legal addresses a program may access: base register holds the smallest legal physical memory address. Limit register contains the size of the range Memory outside the defined range is protected. Operating System Concepts 2.17 A Base And A limit Register Define A Logical Address Space Limit register = 300040-420940 Operating System Concepts 2.18 9

Protection Hardware This protection is accomplished by the CPU hardware comparing every address generated in user mode with the registers. The base and limit registers can be loaded by only the O.S. Operating System Concepts 2.19 General System Architecture User of A System Call to Perform I/O: I/O instructions can be executed by only the O.S. To do I/O, a user program executes a system call to request that the O.S. perform I/O. Operating System Concepts 2.20 10