CSIT 301 (Blum)1 Disk Drives. CSIT 301 (Blum)2 Hard drive In our original view of a computer as being comprised of ALU, Control, Memory, Input and Output,

Slides:



Advertisements
Similar presentations
IT253: Computer Organization
Advertisements

Peripheral Storage Devices
13.2 Disks Gaurav Sharma Class ID Mechanics of Disks 2 Moving Principal Moving pieces of Disk are: 1. Disk assembly & 2. Head Assembly The.
Magnetic Disk Magnetic disks are the foundation of external memory on virtually all computer systems. A disk is a circular platter constructed of.
Lesson 9 Types of Storage Devices.
Types Of Storage Device
Section 5a Types of Storage Devices.
OPERATING SYSTEMS CS3530 Summer 2014 OPERATING SYSTEMS CS3530 Summer 2014 Input/Output System Chapter 9.
The Memory Hierarchy fastest, perhaps 1Mb
Storage. The Memory Hierarchy fastest, but small under a microsecond, random access, perhaps 2Gb Typically magnetic disks, magneto­ optical (erasable),
Data Storage Lecture 3 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
1 Chapter 6 Storage and Multimedia: The Facts and More.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
12/3/2004EE 42 fall 2004 lecture 391 Lecture #39: Magnetic memory storage Last lecture: –Dynamic Ram –E 2 memory This lecture: –Future memory technologies.
The Hard Drive By “The Back Table”.
Disk Drives CSIT 301 (Blum).
Operating Systems COMP 4850/CISG 5550 Disks, Part II Dr. James Money.
1 Introduction to Computers Day 4. 2 Storage device A functional unit into which data can be –placed –retained(stored) –retrieved(accessed)
AS Level ICT Selection and use of storage requirements, media, and devices: Devices and media.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
Mass Storage System EMELIZA R. YABUT MSIT. Overview of Mass Storage Structure Traditional magnetic disks structure ◦Platter- composed of one or more.
Passage Three Storage Devices. Training target: In this part , you should try your best to form good reading habits. In order to avoid your ill habits.
Presented by: Manjeet Singh. Secondary Storage Devices Magnetic media Tape Disks Optical Media Compact Discs CD-R, WORM (Write Once, Read Many) CD-RW.
CS4432: Database Systems II Data Storage (Better Block Organization) 1.
Device Management. So far… We have covered CPU and memory management Computing is not interesting without I/Os Device management: the OS component that.
Lecture on Electronic Memories. What Is Electronic Memory? Electronic device that stores digital information Types –Volatile v. non-volatile –Static v.
Physical Storage and File Organization COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
How Hard Disks Work. Hard disks were invented in the 1950s. They started as large disks up to 20 inches in diameter holding just a few megabytes. They.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
1 Secondary Storage Management Submitted by: Sathya Anandan(ID:123)
Storing Data: Electronic Filing Cabinets What You Will Learn Difference between memory and storage How storage media are categorized Measuring a storage.
Binary and Hard Disk Aslin Izmitli PEOPLE Program.
GENERAL INFORMATION Invented in 1950's on mainframe computers with 20 inches diameter with only few megabytes of data. Originally called 'Fixed Disc'
1 Introduction to Computers By Masseta ICT Dept. Mzumbe University.
External Storage Primary Storage : Main Memory (RAM). Secondary Storage: Peripheral Devices –Disk Drives –Tape Drives Secondary storage is CHEAP. Secondary.
COM113 Introduction to Computing Storage. Storage Objectives Differentiate between storage devices and storage media Describe the characteristics of magnetic.
Chapter 8 External Storage. Primary vs. Secondary Storage Primary storage: Main memory (RAM) Secondary Storage: Peripheral devices  Disk drives  Tape.
11.1Database System Concepts. 11.2Database System Concepts Now Something Different 1st part of the course: Application Oriented 2nd part of the course:
Lecture 3 Page 1 CS 111 Online Disk Drives An especially important and complex form of I/O device Still the primary method of providing stable storage.
Auxiliary Memory Magnetic Disk:
Disk Basics CS Introduction to Operating Systems.
By : Reem Hasayen. A storage device is a hardware device capable of storing information. There are two types of storage devices used in computers 1. Primary.
Lecture 5: 9/10/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
Section 13.2 – Secondary storage management (Former Student’s Note)
CSIT 301 (Blum)1 Disk Drives. CSIT 301 (Blum)2 Hard drive In our original view of a computer as being comprised of ALU, Control, Memory, Input and Output,
Device Management Mark Stanovich Operating Systems COP 4610.
Chapter 9 I/O System. 2 Input/Output System I/O Major objectives are: Take an application I/O request and send it to the physical device. Then, take whatever.
CSIT 301 (Blum)1 Finish Cache. CSIT 301 (Blum)2 Cache Misses When a cache miss occurs, several factors have to be considered. For example, –We want the.
1 Components of the Virtual Memory System  Arrows indicate what happens on a lw virtual address data physical address TLB page table memory cache disk.
Data Storage and Querying in Various Storage Devices.
Chapter 10: Mass-Storage Systems
Section 13.2 – Secondary storage management (Former Student’s Note)
Chapter 2: Computer-System Structures
History of hard disk drive
Storage and Disks.
Database Management Systems (CS 564)
I/O Resource Management: Software
Introduction to Computing
Copyright © 2006 EMC Corporation. Do not Copy - All Rights Reserved.
CHAPTER 4 Memory System Organization and Architecture
Disks and Files DBMS stores information on (“hard”) disks.
McGraw-Hill Technology Education
Secondary Storage Devices
Computer Application Waseem Gulsher
Lesson 9 Types of Storage Devices.
Disks and Disk Scheduling
Disk Drives CSIT 301 (Blum).
McGraw-Hill Technology Education
Networks & I/O Devices.
Presentation transcript:

CSIT 301 (Blum)1 Disk Drives

CSIT 301 (Blum)2 Hard drive In our original view of a computer as being comprised of ALU, Control, Memory, Input and Output, the hard drive is a device connected either as input or output. But the hard drive is also sometimes viewed as a logical extension of memory. The hard drive is the primary storage device. –Compared to RAM, storage is non-volatile –Compared to ROM, storage is more easily written.

Solid State Drive (SSD) CSIT 301 (Blum)3

4 Speed and Capacity The two main characteristics of a hard drive are –Its capacity: how much data can it hold –Its speed: how quickly can it be read from or written to Data intensive applications such as databases, graphics and so on will require pages to swapped in and out of memory. The speed of the hard drive will be an important factor for determining how efficiently such programs run.

CSIT 301 (Blum)5 Analog of Moore Recall that Moore’s Law concerns the exponential growth of the number of transistors on an integrated chip. There has been similar exponential growth in the capacity of hard drives.

CSIT 301 (Blum)6 Exponential Improvement in Hard Drive Capacity

CSIT 301 (Blum)7 Paper Tape and Cards Prior to hard drives, programs and data could be stored on cards or paper tape. In both cases a hole could correspond to a 1 and the absence of a hole to a 0.

CSIT 301 (Blum)8 Magnetic Tape Magnetic tape was an improvement upon punch cards and paper tape, both in terms of speed and capacity. In magnetic tape, a long thin piece of plastic is covered with a ferromagnetic material, such as Ferric oxide (Fe 2 O 3 ).

CSIT 301 (Blum)9 Magnetic Tapes versus Hard drives The writing or reading of a individual bit is similar whether we are talking about a hard drive or a magnetic tape. The difference is one of addressing: –Magnetic tapes have sequential access –Hard drives have random access

CSIT 301 (Blum)10 Magnets Little magnets align themselves in a particular way when in the presence of a magnetic field –E.g. a compass points North because it is a magnet aligning itself with the Earth’s magnetic field

CSIT 301 (Blum)11 Ferromagnetic Many atoms are like tiny little magnets, but the little magnets point in random directions and tend to cancel out any magnetic effect on a large scale. An external magnetic field can make these little magnets line up and produce a large-scale (macroscopic) effect. If the little magnets remain aligned even when the external magnetic field is removed, then the material is said to be ferromagnetic. The lining up of the magnets is called magnetization. A ferromagnetic material “holds” or “remembers” its magnetization state.

CSIT 301 (Blum)12 Writing/Recording The signal (data changing over time) is fed to a magnet which magnetizes the material on the region of the tape that corresponds to that time. –The tape may record analog or digital information.

CSIT 301 (Blum)13 Reading/Playing The magnetized region produces a magnetic field of its own. Any device that can sense this magnetic field can read the information encoded on the tape. It is important to note that the reading device (head) does not have to be in physical contact with the tape in order to sense the tape region’s magnetic field – just in its vicinity.

CSIT 301 (Blum)14 Floating height/Flying height As opposed to floppies, VCR and cassette tapes, hard disk heads do not come in contact with the medium they are reading from or writing to. The distance the head is from the material is one of the important design parameters and is known as the floating height or flying height.

CSIT 301 (Blum)15 Reading, Sensitivity and Density As the heads are made sensitive to smaller magnetic fields, the region corresponding to a unit of information can be made smaller. Also as the heads are made to approach the material more closely (where the field is stronger) without touching it, the region corresponding to a unit of information can be made smaller. If the regions grow smaller, the number of such regions per area (the density) increases. –There are other ways to measure density, so this version is sometimes called the areal density.

CSIT 301 (Blum)16 Exponential Improvement in Hard Drive Density The units for areal density are bits per square inch (BPSI) or in this case MBPSI (mega)

CSIT 301 (Blum)17 Shrinking Bit Size

CSIT 301 (Blum)18 IBM RAMAC To get a sense of this improvement, consider an early disk drive. One of the first commercially available hard disks was IBM's RAMAC (Random Access Method of Accounting and Control) introduced in –Capacity: about 5 MB –Used 50 24" disks!!!!!!!! –Areal density: 2,000 bits per square inch –Data throughput: 8,800 bits/s.

CSIT 301 (Blum)19 Form Factor The areal density improvement has allowed the capacity to increase while the size has decreased. Drive’s form factors (basically their width and height) have continued to grow smaller and smaller. The 5.25-inch width was a standard. It came in three standard heights –Full-height: 3.25 inch –Half-height: inch –Third height: 1 inch

CSIT 301 (Blum) inch Form Factor But now the 3.5-inch width has replaced it as the standard in PCs. This width comes in two standard heights –Third height: 1-inch which is standard (slim-line) –Half-height: inch which is used for higher capacity drives Besides the overall benefits of miniaturization, smaller widths allow the platters to spin faster and thus help improve the speed.

CSIT 301 (Blum)21 Platters and Spindle Speed Instead of the long plastic strip of magnetic tape, hard disks have a collection of circular shaped aluminum or glass platters (which serve as the substrate) that are covered with magnetic material (the media layer). Data is accessed by having the head float over the platter as its spins. –Access speed is thus related to rotational or spindle speed which is measured in RPM (revolutions per minute). –Spindle speeds in the thousands to tens of thousands are typical these days.

CSIT 301 (Blum)22 Hard versus floppy disk The disks in a hard drive are fairly rigid and hence the name “hard” disk. The disk in a floppy disk is made of a more flexible material.

CSIT 301 (Blum)23

CSIT 301 (Blum)24 Anatomy of a Hard Drive The data is stored on platters: hard, flat circular- shaped piece of aluminum coated with magnetic material on one or both sides. The spindle serves as a rotational axis for the platters. The rotational motion is driven by the spindle motor. The information is accessed by a read/write head. –Typically there are two heads per platter, one on the top, one on the bottom.

CSIT 301 (Blum)25 Anatomy of a Hard Drive (Cont.) The head is attached to a part called the slider, which is in turn attached to the actuator arm, which is used to position the head in the desired region. The position of the actuator arm is controlled by the actuator. There is actually a parallel array of heads which are moved in unison by the actuator. The actuator in controlled by the logic board which communicates the rest of the PC.

CSIT 301 (Blum)26

CSIT 301 (Blum)27 Don’t try this at home Reading requires the head to come very, very close to the platter without touching it. Hard drives should not be opened because a typical speck of dust is larger than the head- to-platter reading distance. Opening a drive will almost assuredly ruin it. –Head crash: when the head touches the platter

CSIT 301 (Blum)28 Dust particle versus Flying Height

CSIT 301 (Blum)29 Tracks In both hard and floppy disks, the data is written in concentric circular paths known as tracks A typical floppy disk has 80 (double- density) or 160 (high- density) tracks. track

CSIT 301 (Blum)30 Tracks (cont.) The density of tracks is measured in units of tracks per inch (TPI). Each track is further divided into sectors. The location of information is remembered by noting its track and sector numbers.

CSIT 301 (Blum)31 Sectors Radial lines break the tracks up into sectors, each of which holds 512 bytes of information. Sector Usually 17 sectors per track for a floppy

CSIT 301 (Blum)32 Not all sectors are created equal A sector on the outer portion of the platter has a greater area than a sector on the inner portion. –More and more of the storage area is wasted as one moves out in the radial direction. –More modern drive technologies divide the outer tracks into more sectors to make use of this storage area.

CSIT 301 (Blum)33 Zoned Bit Recording Zoned bit recording (ZBR), a.k.a. multiple zone recording or zone recording. Tracks are broken into groups called zones based on their radial position. Tracks with greater radii are broken into more sectors so that storage area is not wasted. –Requires more sophisticated controller.

CSIT 301 (Blum)34 Larger Radius, Faster Access In ZBR, the outer tracks have more sectors and thus hold more data, but the data is accessed by the spinning of the disk. So more data goes by per revolution when reading the outer tracks. The outer tracks tend to be used first. So disk access performance may go down as one starts to use the inner/slower tracks.

CSIT 301 (Blum)35 ZBR

CSIT 301 (Blum)36 Cylinders Each platter has tracks with the various radii. All the tracks on different platters but with the same radius make up a cylinder. For example, if a hard drive has –Four platters –And each platter has 600 tracks Then –There will be 600 cylinders –Each cylinder will have 8 tracks (assuming that each platter has tracks on both sides).

CSIT 301 (Blum)37 Why cylinders are important If the data being written does not fit in a single track, it can be spread across the cylinder. Activating different heads (at the same radius/cylinder) is an electronic process and thus is faster than moving the arm to a new radius, which is a mechanical process and thus slow.

CSIT 301 (Blum)38 Accessing a disk 1.The combination of application, operating system, BIOS and possibly disk interface circuitry determine the location of the data on the hard disk. 2.The location corresponds to a geometric location on the disk. One needs to know A.The cylinder which determines the radius or track. B.The head which determines which platter and which side of the platter. C.The sector which determines where along the track.

CSIT 301 (Blum)39 Accessing a disk (Cont.) 3.See if the information is cached before starting the slower process of accessing it on the drive. 4.If the drive is not already spinning, it must be “spun up” to its working rotational speed. It might have been “spun down” to save energy. 5.The actuator moves the heads to the appropriate cylinder (track, radial position). 6.The actuator then selects the appropriate head and waits until the selected sector passes by the head. It then reads.

CSIT 301 (Blum)40 Accessing a disk (Cont.) 7.The information is read and placed temporarily into a buffer. 8.The hard disk interface then sends the data to some other part of the PC, in most cases the memory.

CSIT 301 (Blum)41 Cache on the Hard Disk The hard disk has a cache/buffer. –After requesting data from the hard drive, one does not sit by idly waiting for the result. One carries on with whatever else possible. The result of the read is placed in a buffer and picked up when the processor/memory is ready to take it. –When reading, one also grabs the data in the neighboring sectors and places it in the buffer (pre- fetching). This is the standard idea of caching something you expect to need soon based on locality of reference.

CSIT 301 (Blum)42 Size and Distinction The cache on the hard disk is typically between 512 KB and 2 MB. –Some SCSI drives may have as much as 16 MB. Be careful not to confuse the cache on the hard drive with “disk cache” which refers to a section of main memory used to hold data recently read from the hard drive.

CSIT 301 (Blum)43 Command overhead time Command overhead time is the time it takes from when the hard drive is given the read instruction to when the actuator starts positioning the head –Since this is an electronic time as opposed to the mechanical seek time, it is much smaller and does not contribute much to the access time.

CSIT 301 (Blum)44 Seek and ye shall find, but be quick about it Seek time is the time required to position the head to the selected cylinder. –Typical seek times are in milliseconds (ms) –Recall that processor times are in nanoseconds (ns, approx. a million times smaller) and memory times are in microseconds (  s, approx. a thousand times smaller). Seek time is not access time, but is probably the major part thereof.

CSIT 301 (Blum)45 Versions of Seek Time Average: from a random track to another random track –This is what is typically reported –8 – 10 ms Track-to-track: from one track to the adjacent track Full stroke: the full range from the innermost to outermost track

CSIT 301 (Blum)46 Settle Time After the head has reached the appropriate cylinder (track, radius), it must take a short amount of time to stabilize before reading can occur. This time is called the settle time or settling time. It is short compared to seek time and does not vary much from manufacturer to manufacturer.

CSIT 301 (Blum)47 Latency After the instructions have been interpreted and the actuator begins to move (command overhead) and the head has reached the selected cylinder (seek) and has stabilized (settle), it is still not ready to read. It must wait until the selected sector rotates past the head. This time is called the latency.

CSIT 301 (Blum)48 Latency and Spindle Speed The time it must wait for the correct sector to swing by clearly depends on how fast the disks are rotating – the spindle speed. –If the spindles rotates at 10,000 RPM (revolutions per minute), then it rotates at speed of 10,000/60 = revolutions per second. –If there are revolutions per second, then a revolution takes 1/166.7 seconds = s or 6 ms. –The average latency is half of the rotation time or in this case 3 ms.

CSIT 301 (Blum)49 PCGuide table

CSIT 301 (Blum)50 Ordering the to-do list Because the hard drive is slower than the processor and memory, there may be a back up of tasks for it to perform. The order in which it performs these tasks can greatly affect its efficiency. One ordering is a simple FIFO (first-in, first-out) ordering. The tasks (reads and writes) are queued up and the first task requested is the first task performed.

CSIT 301 (Blum)51 More Sophisticated Orderings Seek-Time Optimization (a.k.a. Elevator seeking): –Seek time involves the radial positioning of the head. The tasks are ordered based on their radial positioning to minimize seek time. Access-Time Optimization (a.k.a. multiple command reordering): –Takes into account both radial and angular positioning to minimize access time which includes seek time and latency.

CSIT 301 (Blum)52 Ordering Comparison

CSIT 301 (Blum)53 References PC Hardware in a Nutshell, Thompson and Thompson All-in-One A+ Certification, Meyers and Jernigan