COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM.

Slides:



Advertisements
Similar presentations
I/O Management and Disk Scheduling
Advertisements

Faculty of Information Technology Department of Computer Science Computer Organization Chapter 7 External Memory Mohammad Sharaf.
RAID (Redundant Arrays of Independent Disks). Disk organization technique that manages a large number of disks, providing a view of a single disk of High.
Section 6.2. Record data by magnetizing the binary code on the surface of a disk. Data area is reusable Allows for both sequential and direct access file.
I/O Management and Disk Scheduling
RAID Redundant Array of Independent Disks
COT 4600 Operating Systems Spring 2011 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 6:00-7:15 PM.
Computer ArchitectureFall 2007 © November 28, 2007 Karem A. Sakallah Lecture 24 Disk IO and RAID CS : Computer Architecture.
I/O Hardware n Incredible variety of I/O devices n Common concepts: – Port – connection point to the computer – Bus (daisy chain or shared direct access)
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
Computer ArchitectureFall 2008 © November 12, 2007 Nael Abu-Ghazaleh Lecture 24 Disk IO.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Device Management.
1/21/2010CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
12.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 12: Mass-Storage Systems.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
COT 5611 Operating Systems Design Principles Spring 2010 Dan C. Marinescu Office: HEC 439 B Office hours: M-Wd 1:00-2:00 PM.
Storage & Peripherals Disks, Networks, and Other Devices.
CGS 3863 Operating Systems Spring 2013 Dan C. Marinescu Office: HEC 439 B Office hours: M-Wd 11:30 AM – 1 PM.
Disk Access. DISK STRUCTURE Sector: Smallest unit of data transfer from/to disk; 512B 2/4/8 adjacent sectors transferred together: Blocks Read/write heads.
Lecture 9 of Advanced Databases Storage and File Structure (Part II) Instructor: Mr.Ahmed Al Astal.
COT 4600 Operating Systems Spring 2011 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 5:00 – 6:00 PM.
1 Secondary Storage Management Submitted by: Sathya Anandan(ID:123)
1 I/O Management and Disk Scheduling Chapter Categories of I/O Devices Human readable Used to communicate with the user Printers Video display terminals.
1 IO Management and Disk Scheduling Chapter Categories of I/O Devices n Human readable u used to communicate with the user u video display terminals.
Three fundamental concepts in computer security: Reference Monitors: An access control concept that refers to an abstract machine that mediates all accesses.
CE Operating Systems Lecture 20 Disk I/O. Overview of lecture In this lecture we will look at: Disk Structure Disk Scheduling Disk Management Swap-Space.
I/O Management and Disk Structure Introduction to Operating Systems: Module 14.
Disks Chapter 5 Thursday, April 5, Today’s Schedule Input/Output – Disks (Chapter 5.4)  Magnetic vs. Optical Disks  RAID levels and functions.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 3:00-4:00 PM.
The concept of RAID in Databases By Junaid Ali Siddiqui.
I/O Management and Disk Scheduling Chapter 11. Categories of I/O Devices Human readable Used to communicate with the user  Printers, Display terminals,
1 Advanced Operating Systems - Fall 2009 Lecture 2 – January 12, 2009 Dan C. Marinescu Office: HEC 439 B.
COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM.
Part IV I/O System Chapter 12: Mass Storage Structure.
COT 4600 Operating Systems Spring 2011 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 5:00 – 6:00 PM.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
CS422 Principles of Database Systems Disk Access Chengyu Sun California State University, Los Angeles.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Operating Systems.
Chapter 3 Getting Started. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To give an overview of the structure of a contemporary.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow,
Introduction to Operating Systems Concepts
RAID.
Java Programming: From the Ground Up
Multiple Platters.
I/O System Chapter 5 Designed by .VAS.
Operating System I/O System Monday, August 11, 2008.
CS703 - Advanced Operating Systems
COP 4600 Operating Systems Fall 2010
COT 5611 Operating Systems Design Principles Spring 2014
COT 5611 Operating Systems Design Principles Spring 2012
Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin
COT 4600 Operating Systems Fall 2010
Computer Based Technology:
Computer-System Architecture
Module 2: Computer-System Structures
Overview Continuation from Monday (File system implementation)
COT 4600 Operating Systems Spring 2011
UNIT IV RAID.
COT 4600 Operating Systems Fall 2010
Module 2: Computer-System Structures
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
COT 5611 Operating Systems Design Principles Spring 2010
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Module 2: Computer-System Structures
COT 5611 Operating Systems Design Principles Spring 2014
Presentation transcript:

COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM

2 Lecture 5 Last time:  Project. Today:  Names and the basic abstractions  Storage Next Time  Naming in computing systems

3 Names and the three basic abstractions Memory  stores named objects  write(name, value) value  READ(name)  file system: /dcm/classes/Fall09/Lectures/Lecture5.ppt Interpreters  manipulates named objects  machine instructions ADD R1,R2  modules  Variables call sort(table) Communication Links  connect named objects  HTTP protocol used by the Web and file systems Host: boticelli.cs.ucf.edu put /dcm/classes/Fall09/Lectures/Lecture5.ppt get /dcm/classes/Fall09/Lectures/Lecture5.ppt

Latency and Bandwidth Important concepts for physical characterization. Applies to all three abstractions. Informal  Bandwidth  number of operations per second!  Latency  to get there The bandwidth of the CPU, Memory, and I/O sbsystems must be balanced. 4

5

6 Memory Hardware memory:  Devices RAM (Random Access Memory) chip Flash memory  non-volatile memory that can be erased and reprogrammed Magnetic tape Magnetic Disk CD and DVD  Systems RAID File systems DBMS (Data Base management Systems)

7 Attributes of the storage medium/system Durability  the time it remembers Stability  whether or not the data is changed during the storage Persistence  property of data storage system, it keeps trying to preserve the data

8 Critical properties of a storage medium/system Read/Write Coherence  the result of a READ of a memory cell should be the same as the most recent WRITE to that cell. Before-or-after atomicity  the result of every READ or WRITE is as if that READ or WRITE occurred either completely before or completely after any other READ or WRITE

9

10 Why it is hard to guarantee the critical properties? Concurrency  multiple threads could READ/WRITE to the same cell Remote storage  The delay to reach the physical storage may not guarantee FIFO operation Optimizations  data may be buffered to increase I/O efficiency Cell size may be different than data size  data may be written to multiple cells. Replicated storage  difficult to maintain consistency.

11 Access type; access time Sequential access  Tapes  CD/DVD Random access devices  Disk Seek Search time Read/Write time  RAM

Physical memory organization RAM  two dimensional array. To select a flip-flop provide the x and y coordinates. Tapes  blocks of a given length and gaps (special combination of bits. Disk:  Multiple platters  Cylinders correspond to a particular position of the moving arm  Track  circular pattern of bits on a given platter and cylinder  Record  multiple records on a track 12

Names and physical addresses Location addressed memory  the hardware maps the physical coordinates to consecutive integers, addresses Associative memory  unrestricted mapping; the hardware does not impose any constraints in mapping the physical coordinates 13 Figure 2.2 from textrbook

RAID – Redundant Array of Inexpensive Disks The abstraction put to work to increase performance and durability. Raid 0  allows concurrent reading and writing. Increases performance but does not improve reliability. Raid 1  increases durability by replication the block of data on multiple disks (mirroring) Raid 2  Disks are synchronized and striped in very small stripes, often in single bytes/words.  Error correction calculated across corresponding bits on disks, and is stored on multiple parity disks (Hamming codes). 14

15

RAID (cont’d) Raid 3  Striped set with dedicated parity or bit interleaved parity or byte level parity. Raid 4  improves reliability, it adds error correction 16

RAID (cont’d) Raid 5  striped disks with parity combines three or more disks to protect data against loss of any one disk.  The storage capacity of the array is reduced by one disk Raid 6  striped disks with dual parity combines four or more disks to protect against loss of any two disks.  Makes larger RAID groups more practical.  Large-capacity drives lengthen the time needed to recover from the failure of a single drive. Single parity RAID levels are vulnerable to data loss until the failed drive is rebuilt: the larger the drive, the longer the rebuild will take. Dual parity gives time to rebuild the array without the data being at risk if a (single) additional drive fails before the rebuild is complete. 17

18 Figure 2.3 from textbook

Interpreters The active elements of a computer system Diverse  Hardware  Processor, Disk Controller, Display controller  Software  script language: Javascropt, Pearl, Python text processing systems: Latex, Tex, Word browser : Safari, Google Chrome,Thunderbird All share three major abstractions/components:  Instruction reference  tells the system where to find the next instruction  Repertoire  the set of actions (instructions) the interpreter is able to perform  Environment reference  tells the interpreter where to find the its environment, the state in which it should be to execute the next instruction 19

An abstract interpreter The three elements allow us to describe the functioning of an interpreter regardless of its physical realization. Interrupt  mechanism allowing an interpreter to deal with the transfer of control. Once an instruction is executed the control is passed to an interrupt handler which may change the environment for the next instruction. More than a single interpreter may be present. 20

21 Figure 2.5 from the textbook

Processors Can execute instructions from a specific instruction set Architecture  PC, IR, SP, GPR, ALU, FPR, FPU  State is saved on a stack by the interrupt handler to transfer control to a different virtual processor, thread. 22

Interpreters are organized in layers Each layer issues instructions/requests for the next. A lower layer generally carries out multiple instruction for each request from the upper layer. 23

24 Figure 2.6 from the textbook

Example – a calendar management program Top layer a Java program with the following components:  The instruction reference  get the information provided by the keyboard and mouse and interpret them  The repertoire  add an event, delete an event, etc.  The environment  the files holding the current calendar Next layer  JVM which interprets the program  The instruction reference: next bytecode instruction  JVM instructions  The environment: IR, PC, etc Bottom layer  the computer the JVM is running on 25

26 Figure 2.7 from the textbook

Communication Links Two operations  SEND (link_name, outgoing_message_Buffer)  RECEIVE (link_name, incoming_message_Buffer) Message  an array of bits Physical implementation in hardware  Wires  Networks Ethernet Internet The phone system 27