A track on a magnetic disk is a concentric rings where data is stored.

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

Magnetic Disk. Optical. Magnetic Tape. RAID Removable. CD-ROM CD-Recordable (CD-R) CD-R/W DVD

External Memory. Computer Architecture. Magnetic Disk. Outline. Data Organization and Formatting. Write and Read Mechanisms

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

Chapter 6 - External Memory

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

EXTERNAL MEMORY (Part 1)

Semiconductor Memory Types. Computer & Microprocessor Architecture HCA103. Memory Cell Operation. Semiconductor Memory.

Chapter 6 External Memory

Computer System Architecture

Computer Organization and Technology External Memory

SEN361 Computer Organization. Prof. Dr. Hasan Hüseyin BALIK (6 th Week)

Chapter 9: Peripheral Devices: Magnetic Disks

External Memory. Types of External Memory. Magnetic Disk. Optical. Magnetic Tape. RAID Removable. CD-ROM CD-Recordable (CD-R) CD-R/W DVD

CO212 Lecture 6: Memory Organization III

External Memory. Patrick Happ Raul Queiroz Feitosa. Parts of these slides are from the support material provided by W. Stallings

Mass-Storage Structure

Advanced Parallel Architecture Lesson 4 bis. Annalisa Massini /2015

COSC 243. Memory and Storage Systems. Lecture 10 Memory and Storage Systems. COSC 243 (Computer Architecture)

Table 6.1 Physical Characteristics of Disk Systems

Storage System COSC UCB

COMP283-Lecture 3 Applied Database Management

I/O CANNOT BE IGNORED

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568

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

Memory and Disk Systems

CS 554: Advanced Database System

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568

Storage Systems. Storage Systems

Administrivia. CMSC 411 Computer Systems Architecture Lecture 19 Storage Systems, cont. Disks (cont.) Disks - review

Monday, May 4, Discs RAID: Introduction Error detection and correction Error detection: Simple parity Error correction: Hamming Codes

Storage. CS 3410 Computer System Organization & Programming

CS2410: Computer Architecture. Storage systems. Sangyeun Cho. Computer Science Department University of Pittsburgh

Wednesday, April 25, Discs RAID: Introduction Error detection and correction Error detection: Simple parity Error correction: Hamming Codes

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568

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

UNIT 2 Data Center Environment

Today: Secondary Storage! Typical Disk Parameters!

Storage systems. Computer Systems Architecture CMSC 411 Unit 6 Storage Systems. (Hard) Disks. Disk and Tape Technologies. Disks (cont.

The Fetch-Execute Cycle

BBM371- Data Management. Lecture 2: Storage Devices

1. What is the difference between primary storage and secondary storage?

Computer Principles and Applications SSC. 151 Dr. Abdel-Hameed Nawar Spring Solution Key to Problem Set 3

I/O CANNOT BE IGNORED

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

Advanced Parallel Architecture Lesson 4. Annalisa Massini /2015

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

General Items: Reading Materials: Miscellaneous: Lecture 9 / Chapter 7 COSC1300/ITSC 1401/BCIS /19/2004 ? H ? T

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

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

Appendix D: Storage Systems

Mass-Storage Systems. Mass-Storage Systems. Disk Attachment. Disk Attachment

FACTFILE: GCE DIGITAL TECHNOLOGY

Chapter 11. I/O Management and Disk Scheduling

Session: Hardware Topic: Disks. Daniel Chang. COP 3502 Introduction to Computer Science. Lecture. Copyright August 2004, Daniel Chang

Silberschatz, et al. Topics based on Chapter 13

Chapter 12: Mass-Storage

Contents. Memory System Overview Cache Memory. Internal Memory. Virtual Memory. Memory Hierarchy. Registers In CPU Internal or Main memory

Lecture 18: Memory Systems. Spring 2018 Jason Tang

Chapter 12: Mass-Storage

Overview. EE 4504 Computer Organization. Historically, the limiting factor in a computer s performance has been memory access time

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

I/O Hardwares. Some typical device, network, and data base rates

Lecture 9. I/O Management and Disk Scheduling Algorithms

Storage Devices for Database Systems

Darshan Institute of Engineering & Technology for Diploma Studies

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

Homework, etc. Computer Science Foundations

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

Secondary Storage Devices: Magnetic Disks Optical Disks Floppy Disks Magnetic Tapes CENG 351 1

Ch 11: Storage and File Structure

Mass-Storage Structure

CS 261 Fall Mike Lam, Professor. Memory

Hard Disk Organization. Vocabulary

What is Data Storage?

Architecture of Computers and Parallel Systems Part 7: External Memories (Disks) Ing. Petr Olivka. Department of Computer Science

Secondary Store Ms Tape

Department of Computer Engineering University of California at Santa Cruz. File Systems. Hai Tao

Concepts Introduced. I/O Cannot Be Ignored. Typical Collection of I/O Devices. I/O Issues

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

CSE 120. Operating Systems. March 27, 2014 Lecture 17. Mass Storage. Instructor: Neil Rhodes. Wednesday, March 26, 14

Introduction to I/O and Disk Management

PRATHYUSHA INSTITUTE OF TECHNOLOGY AND MANAGEMENT

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

Introduction to I/O and Disk Management

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

Mass Storage. 2. What are the difference between Primary storage and secondary storage devices? Primary Storage is Devices. Secondary Storage devices

Chapter 6A. Describing Storage Devices. Describing Storage Devices. Types of Storage Devices. Store data when computer is off Two processes

CSCI-GA Operating Systems. I/O : Disk Scheduling and RAID. Hubertus Franke

16/06/56. Secondary Storage. Secondary Storage. Secondary Storage The McGraw-Hill Companies, Inc. All rights reserved.

Database Management Systems, 2nd edition, Raghu Ramakrishnan, Johannes Gehrke, McGraw-Hill

CHAPTER 10: Computer Peripherals

Lecture 23: Storage Systems. Topics: disk access, bus design, evaluation metrics, RAID (Sections )

CS143: Disks and Files

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

Chapter 14: Mass-Storage Systems

Principles of Operating Systems CS 446/646

vinodsrivastava.wordpress.com

Chapter 5 Input/Output

Transcription:

CS 320 Ch 6 External Memory Figure 6.1 shows a typical read/ head on a magnetic disk system. Read and heads separate. Read head uses a material that changes resistance in response to a magnetic field. This allows a faster read time. A track on a magnetic disk is a concentric rings where data is stored. A gap is used to separate tracks to prevent data bleeding from one to the other. A sector is a pie shaped wedge around a disk. Each sector has many track pieces. An intersector gap is used to separate the sectors. Sectors are of fixed size of 512 bytes per sector. Note that the spacing between bits along an inside track is closer together than the spacing between bits on the outside track. Disk are typically read using constant angular velocity. This means that the disk turns at a fixed rate (degrees per second is constant). Since bits on the outside are spaced further apart but are moving faster they come off the disk at the same rate as bits on the inside which are denser and moving slower.

The disadvantage of CAV is that some disk space is lost because of extra space in outer tracks. Multiple zone recording is more efficient. Sectors are divided into zones and each zone has its own bit density. Thus as you move from an inner zone to an outer zone the bit density remains piecewise constant. To compensate the disk controller reads different zones at different rates with data coming off the outer tracks faster than data coming off the inner tracks. Sectors distinguished from one another by the disk controller by writing the sector numbers at the beginning of each sector on each track. This is what lays out the sectors. This is called soft disk formatting. Figure 6.4 illustrates disk formatting. There are 30 fixed length sectors per track with 600 bytes per sector. 512 bytes are used for the data field and the remaining bytes are used for formatting and gaps. A) The data field consists of a synch byte, data bytes, and a crc. The Sync byte is used to synchronize clock, the CRC is cyclic redundancy check bits. CRC bits Suppose I want to transmit the message m = {1, 4, 5, 7, 4}. I add these up to get 21. I take 21 mod 8 to get 5. I then subtract 8 5 to get 3. I modify m to m = {1, 4, 5, 7, 4, 3}. The receiver adds this up to get 24 and 24 mod 8 is 0 so there are no errors. If any number is changed I will very likely not get 0 for a result indicating that the message is in error. This is a check sum. A CRC is similar but instead of adding the bits in the message we put them into a feedback shift register

B) The ID field has the sector number in addition to the head number. Most disk systems have Multiple heads or multiple platters. Physical characteristics: A) Head motion may be Fixed and movable. Fixed is one per track (faster) and movable is usually one per surface. B) Disk portability refers to whether or not the disk is nonremovable and removable (floppy or zip) disks. C) Disks may be single and double sided. Some systems use both sides of a platter. D) A platter is a. Some disks have multiple spinning disks (platters) E) There are three types of head mechanisms. Contact (floppy), fixed gap, and aerodynamic (Winchester). F) The Winchester head was invented by IBM. A cylinder consists of all of the tracks of the same diameter on multiple platters. A typical hard disk turns at 7200 rpm. Some are faster but this is a common number. The seek time is the time it takes the head to move from where it is to the selected track. The seek time consists of the startup time and traversal time. The traversal time has a start time and a settling time of its own. This is mostly due to the mass of the head and the arm. The rotational delay or rotational latency is the time beginning at the point where the head is at the track until the correct sector rotates around to be at the head. A) For a disk rotating at 7200 rpm you can calculate the average rotational latency as follows: 60sec/7200 rotations = 8.3msec per rotation. If information, on average is half way around the average rotational latency is 4.15 msec. The disk access time is defined as the Seek time + rotational latency. The transfer time is the time it takes to actually read the data after the access time.

The transfer time calculated as follows: Trans Time = number of bytes/(rev/sec * number of bytes/track). Thus the transfer time is dependent on how fast the disk rotates since the electronics of the transfer is on the order of a thousand times faster than this. Access time of a disk is mostly governed by the time it takes to move the head and waiting for the rotational delay. Thus if data is randomly distributed rather than sequentially distributed the disk access time can be substantially slower. **** RAID **** RAID is Redundant Array of Independent Disks. This is an industry standard multidisk database design. RAID is seen by the computer operating system as a system Even though RAID is a set of disks. RAID systems are classified by the RAID level as shown in the table below.

Table 6.3 RAID Levels Category Level Description Disks Required Striping 0 Nonredundant N Mirroring 1 Mirrored 2N Parallel access Independent access 2 3 4 5 6 Redundant via Hamming code Bit-interleaved Blockinterleaved Blockinterleaved distributed Blockinterleaved dual distributed N + m N + 1 N + 1 N + 1 N + 2 Data Availability Lower than Higher than RAID 2, 3, 4, or 5; lower than RAID 6 to RAID 3, 4, or 5 to RAID 2, 4, or 5 to RAID 2, 3, or 5 to RAID 2, 3, or 4 Highest of all listed alternatives Large I/O Data Transfer Capacity Very high Higher than for read; similar to Highest of all listed alternatives Highest of all listed alternatives read; significantly read; lower disk read; lower than RAID 5 Small I/O Request Rate Very high for both read and Up to twice that of a for read; similar to Approximately twice that of a Approximately twice that of a read; significantly for read; generally for read; significantly RAID 5 for N = number of data disks; m proportional to log N

In striping the data is divided into strips and the strips are distributed round robin across the multiple disks. A strip is a collection of stripes. The advantage of striping is that for slow systems multiple disks can be accessed simultaneously or overlapped to get strips in parallel. This is non-redundant and is faster but provides little protection against data loss. Raid 0. Mirroring is the simple duplication of data on multiple disks. This redundancy provides some guarantee against loss of data. Raid 1 uses striping and mirroring. Raid 2 uses redundancy via the Hamming code. Error correcting Hamming codes are used with each data strip. Codes are stored on separate disks. This is expensive and not used. Bit-interleaved is used in Raid 3. Has a to hold all bits. If a disk fails the data can be reconstructed. Cheaper than Raid 2. Parity is used on a small set of bits. Block-interleaved means that is computed across blocks with bits stored on interleaved strips all on one disk. Raid 4 uses this. Raid 5 is similar but has distributed across disks instead of stored on a. Raid 6 uses two different check schemes and makes a reliable system even if two disk systems fail simultaneously. ****** Solid State Disks ****** Most Solid State Disks use NAND flash. The advantages of SSDs over HDDs include better performance, less susceptible to physical abuse, longer lifespan, lower power, quieter. About 10 times faster than HDDs In terms of cost the SSD is about $0.50/GByte where and HDD is about $0.15/GByte The main problems with SSDs include: Cost remains higher than HHDs, SSDs can be written about 100,000 times and then becomes unusable, As the disk gets full it can be fragmented, finally NAND flash is written in blocks so a whole block must be processed even if only one byte is needed. ***** Optical memory ***** Audio CD's and CD-ROM's are Optical memory. The use a laser reads pits in a mirror like surface. Pits are ¼ wavelength deep so that the total path is exactly ½

wavelength thus cancelling the incoming wave and leaving a dark area. Both use constant linear velocity in a continuous spiral track. The advantages of CD-ROM's over hard disks are: CD-ROMS are much more easily duplicated. Optical disk are removable, sturdy, and portable. The disadvantage of CD-ROM's over hard disks are access time is slow 0.5 seconds and disks are read only. CD-R disks are CD Recordable. These are once read many CD's. They use a technology similar to CD-ROMs but use a dye layer that is activated by a high intensity laser. CD-Rewritable disks use a phase change mechanism in which a laser can change the "magic" material from crystalline to amorphous. These can be rewritten > 500,000 times but not forever. Cheaper than hard drives although slower. Make good back up media. A DVD is a Digital Versatile Disk. Will eventually replace tape and CD ROMs. Can be double layered and double sided. Can hold up to 17 Gytes of data. Has a higher density than CD-ROMs because of a higher frequency laser and a shorter wavelength. Despite DVD's tape systems remain in use because they have very high capacities (>100 Gbytes) and very cheap. There are three differences between DVD and CDs that give DVDs more capacity.1. Bits are packed more closely because of the laser with a shorter wavelength. 2.DVD has two layers and can read both from the same side. 3. DVD can be two-sided giving two layers on both sides.