CGS 3863 Operating Systems Spring 2013 Dan C. Marinescu Office: HEC 439 B Office hours: M-Wd 11:30 AM – 1 PM.

Slides:



Advertisements
Similar presentations
Faculty of Information Technology Department of Computer Science Computer Organization Chapter 7 External Memory Mohammad Sharaf.
Advertisements

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.
I/O Management and Disk Scheduling
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
Lecture 13 Page 1 CS 111 Online File Systems: Introduction CS 111 On-Line MS Program Operating Systems Peter Reiher.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto Disks and RAID.
REDUNDANT ARRAY OF INEXPENSIVE DISCS RAID. What is RAID ? RAID is an acronym for Redundant Array of Independent Drives (or Disks), also known as Redundant.
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.
Other Disk Details. 2 Disk Formatting After manufacturing disk has no information –Is stack of platters coated with magnetizable metal oxide Before use,
1 Lecture 26: Storage Systems Topics: Storage Systems (Chapter 6), other innovations Final exam stats:  Highest: 95  Mean: 70, Median: 73  Toughest.
Based on the slides supporting the text
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.
Device Management.
Chapter 1 Data Storage. 2 Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns.
1 Disk Scheduling Chapter 14 Based on the slides supporting the text.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
I/O Systems and Storage Systems May 22, 2000 Instructor: Gary Kimura.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
12.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 12: Mass-Storage Systems.
Redundant Array of Inexpensive Disks (RAID). Redundant Arrays of Disks Files are "striped" across multiple spindles Redundancy yields high data availability.
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.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Storage Systems.
Two or more disks Capacity is the same as the total capacity of the drives in the array No fault tolerance-risk of data loss is proportional to the number.
L/O/G/O External Memory Chapter 3 (C) CS.216 Computer Architecture and Organization.
N-Tier Client/Server Architectures Chapter 4 Server - RAID Copyright 2002, Dr. Ken Hoganson All rights reserved. OS Kernel Concept RAID – Redundant Array.
Lecture 9 of Advanced Databases Storage and File Structure (Part II) Instructor: Mr.Ahmed Al Astal.
Redundant Array of Inexpensive Disks aka Redundant Array of Independent Disks (RAID) Modified from CCT slides.
COT 4600 Operating Systems Spring 2011 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 5:00 – 6:00 PM.
COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM.
Intro to Architecture – Page 1 of 22CSCI 4717 – Computer Architecture CSCI 4717/5717 Computer Architecture Topic: Introduction Reading: Chapter 1.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
COP 5611 Operating Systems Spring 2010 Dan C. Marinescu Office: HEC 439 B Office hours: M-Wd 2:00-3:00 PM.
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.
+ CS 325: CS Hardware and Software Organization and Architecture Memory Organization.
Chapter 12 – Mass Storage Structures (Pgs )
The concept of RAID in Databases By Junaid Ali Siddiqui.
Computer Architecture Lecture 32 Fasih ur Rehman.
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.
Operating Systems COT 4600 – Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: W, F 3:00-4:00 PM.
1 Lecture 27: Disks Today’s topics:  Disk basics  RAID  Research topics.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
ECE 456 Computer Architecture Lecture #9 – Input/Output Instructor: Dr. Honggang Wang Fall 2013.
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.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
RAID.
Multiple Platters.
I/O System Chapter 5 Designed by .VAS.
Operating System I/O System Monday, August 11, 2008.
Chapter 14 Based on the slides supporting the text
COT 5611 Operating Systems Design Principles Spring 2014
COT 5611 Operating Systems Design Principles Spring 2012
Advanced Operating Systems – Fall 2009
Lecture 28: Reliability Today’s topics: GPU wrap-up Disk basics RAID
Computer-System Architecture
COT 4600 Operating Systems Fall 2010
CSE 451: Operating Systems Autumn 2009 Module 19 Redundant Arrays of Inexpensive Disks (RAID) Ed Lazowska Allen Center 570.
COT 5611 Operating Systems Design Principles Spring 2012
COT 5611 Operating Systems Design Principles Spring 2010
COT 5611 Operating Systems Design Principles Spring 2014
COT 5611 Operating Systems Design Principles Spring 2014
Presentation transcript:

CGS 3863 Operating Systems Spring 2013 Dan C. Marinescu Office: HEC 439 B Office hours: M-Wd 11:30 AM – 1 PM

Last time:  Discussion of the paper “Architecture of Complexity” by H. A. Simon  Modularity, Abstractions, Layering, Hierarchy Today: Complexity of Computer Systems Resource Sharing and Complexity Bandwidth and Latency Iteration Names and The Basic Abstractions Memory. Critical Properties of Memory Systems.  Read-Write Coherence  Before or After Atomicity. RAID Next time  Discussion of the paper “Hints for Computer Systems Design” by Butler Lamson. Lecture 4 – Thursday September 2, Lecture 4

Names and fundamental abstractions The fundamental abstractions 1. Storage  mem, disk, data struct, File Systems, disk arrays 2. Interpreters  cpu, programming language e.g. java VM 3. Communication  wire, Ethernet rely on names. Naming:  Flat  Hierarchical 3Lecture 4

Computers a distinct species of complex systems The complexity of computer systems not limited by the laws of physics  distant bounds on composition  Digital systems are noise-free.  The hardware is controlled by software The rate of change unprecedented  The cost of digital hardware has dropped in average 30% per year for the past 35 years 4Lecture 4

Analog, digital, and hybrid systems Analog systems:  the noise from individual components accumulate and  the number of components is limited Digital systems:  are noise-free  the number of components is not limited  regeneration  restoration of digital signal levels  static discipline  the range of the analog values a device accepts for each input digital value should be wider than the range of analog output values  digital components could fail but big mistakes are easier to detect than small ones!! Hybrid systems  e.g., quantum computers and quantum communication systems 5Lecture 4

Computers are controlled by software Composition of hardware limited by laws of physics. Composition of software is not physically constrained;  software packages of 10 7 lines of code exist Abstractions hide the implementation beneath module interfaces and allow the  creation of complex software  modification of the modules Abstractions can be leaky. Example, representation of integers, floating point numbers. 6Lecture 4

Exponential growth of computers Unprecedented:  when a system is ready to be released it may already be obsolete.  when one of the parameters of a system changes by a factor of 2  other components must be drastically altered due to the incommensurate scaling. 10  the systems must be redesigned; E.g.; balance CPU, memory, and I/O bandwidth;  does not give pause to developers to learn lessons from existing systems find and correct all errors  negatively affects “human engineering”  ability to build reliable and user-friendly systems  the legal and social frameworks are not ready 7Lecture 4

Coping with complexity of computer systems Modularity, abstraction, layering, and hierarchy are necessary but not sufficient. An additional technique  iteration Iteration  Design increasingly more complex functionality in the system  Test the system at each stage of the iteration to convince yourself that the design is sound  Easier to make changes during the design process 8Lecture 4

Iteration – design principles Make it easy to change  the simplest version must accommodate all changes required by successive versions  do not deviate from the original design rationale  think carefully about modularity  it is very hard to change it. Take small steps; rebuild the system every day, to discover design flaws and errors. Ask others to test it. Don’t rush to implementation. Think hard before starting to program. Use feedback judiciously   use alpha and beta versions  do not be overconfident from an early success Study failures  understand that complex systems fail for complex reasons. 9Lecture 4

Curbing complexity In absence of physical laws curb the complexity by good judgment. Easier said than done because:  tempted to add new features than in the previous generation  competitors have already incorporated the new features  the features seem easy to implement  the technology has improved  human behavior: arrogance, pride, overconfidence… 10Lecture 4

Critical elements of information revolution! 11Lecture 4

12Lecture 4

The relation between homo sapiens and the computers The feelings of the homo sapiens:  Hate  Frustration  Lack of understanding The Operating System  A program to “domesticate” the computer.  Transforms a “bare machine” into a “user machine”  Controls and facilitates access to computing resources; optimizes the use of resources. The relation went through several stages:  Many-to-one  One-to-one  Many-to-many  Peer-to-peer 13Lecture 4

Resource sharing and complexity A main function of the OS is resource sharing. Sharing computer resources went through several stages with different levels of complexity: Many-to-one One-to-one Many-to-many Peer-to-peer 14Lecture 4

15Lecture 4

16Lecture 4

17 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

Lecture 418 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. 18

Lecture 419

Lecture 420 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)

Lecture 421 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

Lecture 422 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

Lecture 423

Lecture 424 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.

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

Lecture 426 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 26

Lecture 427 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 27 Figure 2.2 from textrbook

Lecture 428 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). 28

Lecture 429

Lecture 430 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 30

Lecture 431 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. 31

Lecture 432 Figure 2.3 from textbook