Figure 5.1 (a) A single-sided disk with read/write hardware. (b) A disk pack with read/write hardware.

Similar documents
Chapter 1 Disk Storage, Basic File Structures, and Hashing.

Database Systems. File Organization-2. A.R. Hurson 323 CS Building

Chapter 13 Disk Storage, Basic File Structures, and Hashing.

RAID (Redundant Array of Inexpensive Disks)

Disk Scheduling. Based on the slides supporting the text

Disk Scheduling. Chapter 14 Based on the slides supporting the text and B.Ramamurthy s slides from Spring 2001

Chapter 17. Disk Storage, Basic File Structures, and Hashing. Records. Blocking

CS143: Disks and Files

Chapter 10: Mass-Storage Systems

System Structure Revisited

Storing Data: Disks and Files

Storing Data: Disks and Files

Mass-Storage Structure

Storing Data: Disks and Files. Storing and Retrieving Data. Why Not Store Everything in Main Memory? Database Management Systems need to:

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe

Storing and Retrieving Data. Storing Data: Disks and Files. Solution 1: Techniques for making disks faster. Disks. Why Not Store Everything in Tapes?

Storing and Retrieving Data. Storing Data: Disks and Files. Solution 1: Techniques for making disks faster. Disks. Why Not Store Everything in Tapes?

Storing Data: Disks and Files

Module 13: Secondary-Storage Structure

Part IV I/O System. Chapter 12: Mass Storage Structure

Chapter 9: Peripheral Devices: Magnetic Disks

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

L9: Storage Manager Physical Data Organization

Chapter 14: Mass-Storage Systems. Disk Structure

Storing Data: Disks and Files

Some Examples (for DATA REPRESENTATION)

I/O Systems and Storage Devices

V. Mass Storage Systems

Module 3: Hashing Lecture 9: Static and Dynamic Hashing. The Lecture Contains: Static hashing. Hashing. Dynamic hashing. Extendible hashing.

CS3600 SYSTEMS AND NETWORKS

Disk scheduling Disk reliability Tertiary storage Swap space management Linux swap space management

Virtual File System -Uniform interface for the OS to see different file systems.

Database Systems. November 2, 2011 Lecture #7. topobo (mit)

Why Is This Important? Overview of Storage and Indexing. Components of a Disk. Data on External Storage. Accessing a Disk Page. Records on a Disk Page

Lecture 9. I/O Management and Disk Scheduling Algorithms

Principles of Data Management. Lecture #2 (Storing Data: Disks and Files)

Part IV I/O System Chapter 1 2: 12: Mass S torage Storage Structur Structur Fall 2010

Database Systems. Session 8 Main Theme. Physical Database Design, Query Execution Concepts and Database Programming Techniques

I/O Management and Disk Scheduling. Chapter 11

Definition of RAID Levels

Lecture 25: Interconnection Networks, Disks. Topics: flow control, router microarchitecture, RAID

CSE325 Principles of Operating Systems. Mass-Storage Systems. David P. Duggan. April 19, 2011

Chapter 11. I/O Management and Disk Scheduling

Chapter 13: Mass-Storage Systems. Disk Scheduling. Disk Scheduling (Cont.) Disk Structure FCFS. Moving-Head Disk Mechanism

Chapter 13: Mass-Storage Systems. Disk Structure

I/O, Disks, and RAID Yi Shi Fall Xi an Jiaotong University

Physical Representation of Files

CPSC 421 Database Management Systems. Lecture 11: Storage and File Organization

Chapter 11. I/O Management and Disk Scheduling

Chapter 11 I/O Management and Disk Scheduling

CSE 380 Computer Operating Systems

EIDE Disk Arrays and Its Implement

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

CSCI-GA Database Systems Lecture 8: Physical Schema: Storage

CS370: System Architecture & Software [Fall 2014] Dept. Of Computer Science, Colorado State University

File. File System Implementation. Operations. Permissions and Data Layout. Storing and Accessing File Data. Opening a File

I/O CANNOT BE IGNORED

BBM371- Data Management. Lecture 2: Storage Devices

Lecture 21: Reliable, High Performance Storage. CSC 469H1F Fall 2006 Angela Demke Brown

File Management. Chapter 12

RAID. Redundant Array of Inexpensive Disks. Industry tends to use Independent Disks

I/O CANNOT BE IGNORED

Operating Systems 2010/2011

Hashed-Based Indexing

Database Technology. Topic 7: Data Structures for Databases. Olaf Hartig.

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 420, York College. November 21, 2006

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe

Physical Storage Media

Data Storage and Query Answering. Data Storage and Disk Structure (4)

Distributed Video Systems Chapter 5 Issues in Video Storage and Retrieval Part 2 - Disk Array and RAID

Chapter 6 External Memory

Chapter-6. SUBJECT:- Operating System TOPICS:- I/O Management. Created by : - Sanjay Patel

Disks & Files. Yanlei Diao UMass Amherst. Slides Courtesy of R. Ramakrishnan and J. Gehrke

Today: Secondary Storage! Typical Disk Parameters!

CSE380 - Operating Systems. Communicating with Devices

Database Applications (15-415)

Chapter 10: Mass-Storage Systems

Hashing IV and Course Overview

Database Systems II. Secondary Storage

Chapter 10: Mass-Storage Systems. Operating System Concepts 9 th Edition

Chapter 12: Mass-Storage

Chapter 11: File System Implementation. Objectives

u Covered: l Management of CPU & concurrency l Management of main memory & virtual memory u Currently --- Management of I/O devices

Chapter 12: Mass-Storage

Secondary Storage : Outline

Selection Queries. to answer a selection query (ssn=10) needs to traverse a full path.

Chapter 6. Storage and Other I/O Topics

Outlines. Chapter 2 Storage Structure. Structure of a DBMS (with some simplification) Structure of a DBMS (with some simplification)

COS 318: Operating Systems. Storage Devices. Kai Li Computer Science Department Princeton University

Computer System Architecture

CS 471 Operating Systems. Yue Cheng. George Mason University Fall 2017

Virtual Memory. Reading. Sections 5.4, 5.5, 5.6, 5.8, 5.10 (2) Lecture notes from MKP and S. Yalamanchili

CS370 Operating Systems

Physical Database Design: Outline

Reliable Computing I

Data Storage and Disk Structure

COS 318: Operating Systems. Storage Devices. Jaswinder Pal Singh Computer Science Department Princeton University

OPERATING SYSTEMS CS3502 Spring Input/Output System Chapter 9

COS 318: Operating Systems. Storage Devices. Vivek Pai Computer Science Department Princeton University

An Introduction to I/O and Storage Tuning. Randy Kreiser Senior MTS Consulting Engineer, SGI

Transcription:

Figure 5.1 (a) A single-sided disk with read/write hardware. (b) A disk pack with read/write hardware. track (a) arm actuator read/write head spindle disk rotation (b) cylinder of tracks (imaginary) actuator movement

Figure 5.2 Different sector organizations on disk. (a) Sectors subtending a fixed angle. (b) Sectors maintaining a uniform recording density. (a) track sector (arc of a track) (b) three sectors two sectors one sector

Figure 5.3 Data striping. File A is striped across four disks. disk 0 disk 1 disk 2 disk 3 FILE A A 1 A 2 A 3 A 4

Non-Redundant (RAID Level 0) Mirrored (RAID Level 1) Memory-Style ECC (RAID Level 2) Bit-Interleaved Parity (RAID Level 3) Block-Interleaved Parity (RAID Level 4) Block-Interleaved Distribution-Parity (RIAD Level 5) P+Q Redundancy (RAID Level 6) Figure 5.4 Multiple levels of raid. From Chen, Lee, Gibson, Katz, and Patterson (1994), ACM Computing Survey, Vol. 26, No. 2 (June 1994). Reprinted with permisson.

Figure 5.5 Interleaved concurrency versus parallel execution. Interleaved concurrency of operations A and B. Parallel execution of operations C and D. A A B B t 1 t 2 t 3 t 4 Time

Figure 5.6 Use of two buffers, A and B, for reading from disk. disk block: I/O: i fill A i + 1 fill B i + 2 fill A i + 3 fill B i + 4 fill A disk block: PROCESSING: i process A i + 1 process B i + 2 process A i + 3 process B i + 4 process A Time

Figure 5.7 Three record storage formats. (a) A fixed-length record with six fields and size of 71 bytes. (b) A record with two variable-length fields and three fixed-length fields. (c) A variable-field record with three types of separator characters. (a) JOBCODE NAME SSN SALARY DEPARTMENT HIRE-DATE 1 31 40 44 48 68 (b) SALARY JOBCODE NAME SSN 1 12 21 25 29 DEPARTMENT Smith, John 123456789 xxxx xxxx Computer separator characters (c) Separator Characters = separates field name from field value NAME=Smith, John SSN=123456789 DEPARTMENT=Computer separates fields terminates record

Figure 5.8 Types of record organization. (a) Unspanned. (b) Spanned. (a) block i record 1 record 2 record 3 @@@@@@@@@ ;;;;;;;;; QQQQQQQQQ @@@@@@@@@ ;;;;;;;;; QQQQQQQQQ block i + 1 record 4 record 5 record 6 @@@@ ;;;; QQQQ @@@@ ;;;; QQQQ (b) block i record 1 record 2 record 3 record 4 P block i + 1 record 4 (rest) record 5 record 6 record 7 P

NAME SSN BIRTHDATE JOB SALARY SEX block 1 Aaron, Ed Abbott, Diane Acosta, Marc block 2 Adams, John Adams, Robin Akers, Jan block 3 Alexander, Ed Alfred, Bob Allen, Sam block 4 Allen, Troy Anders, Keith Anderson, Rob block 5 Anderson, Zach Angeli, Joe Archer, Sue block 6 Arnold, Mack Arnold, Steven Atkins, Timothy block n 1 Wong, James Wood, Donald Woods, Manny block n Wright, Pam Wyatt, Charles Zimmer, Byron Figure 5.9 Some blocks of an ordered (sequential) file of EMPLOYEE records with NAME as the ordering key field.

Figure 5.10 Internal hashing data structures. (a) Array of M positions for use in internal hashing. (b) Collision resolution by chaining records. (a) NAME SSN JOB SALARY 0 1 2 3 M 2 M 1 (b) 0 1 2 3 4 data fields overflow pointer 1 M 1 1 M + 2 address space M 2 M 1 M M + 1 M + 2 M + O 2 M + O 1 M + 1 1 M + 5 1 M + 4 overflow space null pointer = 1. overflow pointer refers to position of next record in linked list.

Figure 5.11 Matching bucket numbers to disk block addresses. bucket number 0 1 2 block address on disk M 2 M 1

Figure 5.12 Handling overflow for buckets by chaining. main buckets bucket 0 340 460 bucket 1 321 761 91 null 981 182 overflow buckets null bucket 2 22 72 652 null 522 (pointers are to records within the overflow blocks) bucket 9 399 89 null

Figure 5.13 Structure of the extendible hashing scheme. local depth of each bucket DATA FILE BUCKETS d ' = 3 bucket for records whose hash values start with 000 d ' = 3 bucket for records whose hash values start with 001 DIRECTORY 000 001 010 011 100 101 110 111 global depth d = 3 d ' = 2 d ' = 2 d ' = 3 bucket for records whose hash values start with 01 bucket for records whose hash values start with 10 bucket for records whose hash values start with 110 d ' = 3 bucket for records whose hash values start with 111