magnetic disk

54

Upload: lula

Post on 23-Feb-2016

41 views

Category:

Documents


0 download

DESCRIPTION

Magnetic Disk. Magnetic disks are the foundation of external memory on virtually all computer systems. A disk is a circular platter constructed of nonmagnetic material, called the substrate, coated with a magnetizable material . The substrate has been an aluminum material. - PowerPoint PPT Presentation

TRANSCRIPT

Slide 1

Magnetic Disk Magnetic disks are the foundation of external memory on virtually all computer systems. A disk is a circular platter constructed of nonmagnetic material, called the substrate, coated with a magnetizable material.The substrate has been an aluminum material.Glass substrates have been introduced.Read and Write MechanismsRecording & retrieval via conductive coil called a head May be single read/write head or separate ones During read/write, head is stationary, platter rotates Write - Current through coil produces magnetic field - Pulses sent to head - Magnetic pattern recorded on surface belowRead and Write MechanismsRead (traditional) - Magnetic field moving relative to coil produces current - Coil is the same for read and write Read (contemporary) - Separate read head, close to write head - Partially shielded magneto resistive (MR) sensor - Electrical resistance depends on direction of magnetic field - High frequency operation - Higher storage density and speed

Data Organization and FormattingConcentric set of rings, called tracks each track has the same width as the head. There are thousands of tracks per surface. - Gaps between tracks - Reduce gap to increase capacity - Same number of bits per track (variable packing density) - Constant angular velocity Tracks divided into sectors Minimum block size is one sector May have more than one sector per block (track)

Disk VelocityBit near centre of rotating disk passes fixed point slower than bit on outside of diskIncrease spacing between bits in different tracks Rotate disk at constant angular velocity (CAV) - Gives pie shaped sectors and concentric tracks - Individual tracks and sectors addressable - Move head to given track and wait for given sector - Waste of space on outer tracks - Lower data densityCan use zones to increase capacity - Each zone has fixed bits per track -More complex circuitry

Finding Sectors Must be able to identify start of track and sectorFormat disk - Additional information not available to user - Marks tracks and sectorsAn example of disk formatting is shown in Figure 6.4. In this case, each track contains 30 fixed-length sectors of 600 bytes each. Each sector holds 512 bytes of data plus control information useful to the disk controller. The ID field is a unique identifier or address used to locate a particular sector. The SYNCH byte is a special bit pattern that delimits the beginning of the field. The track number identifies a track on a surface.The head number identifies a head, because this disk has multiple surfaces.The ID and data fields each contain an error detectingcode.

Physical CharacteristicsHead Motion - Fixed head (one read write head per track and Heads mounted on fixed ridged arm) - Movable head(one per surface and mounted on a movable arm).Disk Portability - Nonremovable disk (fixed ) - Removable disk (Can be removed from drive and replaced withanother disk, provides unlimited storage capacity, and easy data transfer between systems)Physical CharacteristicsSides - Single sided - double (usually) sidedPlatters - Single platters - multiple platter (One head per side, heads are joined and aligned, aligned tracks on each platter form cylinders and data is striped by cylinder: 1. Reduces head movement 2. Increases speed (transfer rate)

Physical Characteristics Head mechanism - Contact (Floppy disk) 8, 5.25, 3.5 Small capacity up to 1.44Mbyte (2.88M never popular) Slow, universal, cheap - Fixed gap - Flying (Winchester) Developed by IBM in Winchester (USA), Sealed unit One or more platters (disks), Very small head to disk gap universal, cheap, Fastest external storage Getting larger all the time. 250 Gigabyte now easily available

RAID Redundant Array of Independent Disks (RAIDRedundant Array of Inexpensive Disks7 levels in common use Not a hierarchySet of physical disks viewed as single logical drive by O/S Data distributed across physical drivesCan use redundant capacity to storeparity information RAIDThese levels share three common characteristics: 1. RAID is a set of physical disk drives viewed by the operating system as a single logical drive. 2. Data are distributed across the physical drives of an array in a scheme known as striping, described subsequently.3. Redundant disk capacity is used to store parity information, which guarantees data recoverability in case of a disk failure.The details of the second and third characteristics differ for the different RAID levels. RAID 0 and RAID 1 do not support the third characteristic.RAID 0No redundancy Data striped across all disks Round Robin striping Increase speed - Multiple data requests probably not on same disk - Disks seek in parallel - A set of data is likely to be striped across multiple disks

RAID 1Mirrored DisksData is striped across disks2 copies of each stripe on separate disksRead from eitherWrite to bothRecovery is simple - Swap faulty disk & re-mirror - No down time Expensive

RAID 2RAID levels 2 and 3 make use of a parallel access technique. In a parallel access array, all member disks participate in the execution of every I/O requestthe individual drives are synchronized so that each disk head is in the same position on each disk at any given time.RAID 2 requires fewer disks than RAID 1RAID 3RAID 3 requires only a single redundant disk.Employs parallel access, with data distributed in small stripsCan achieve very high data transfer rates.Only one I/O request can be executed at a timeRAID 4Each disk operates independently Good for high I/O request rate Large stripes Bit by bit parity calculated across stripes on each disk Parity stored on parity disk

RAID 5Like RAID 4Parity striped across all disksRound robin allocation for parity stripeAvoids RAID 4 bottleneck at parity disk Commonly used in network serversRAID 6Two parity calculationsStored in separate blocks on different disks User requirement of N disks needs N+2High data availability - Three disks need to fail for data loss - Significant write penalty, because each write affects two parity blocks.

Compact Disk CDBoth the audio CD and the CD-ROM (compact disk read-only memory) share a similar technology. The main difference is that CD-ROM players are more rugged and have error correction devices to ensure that data are properly transferred from disk to computer.Information is retrieved from a CD or CD-ROM by a low-powered laser housed in an optical-disk player, or drive unit.Optical Storage CD-ROMOriginally for audio 650Mbytes giving over 70 minutes audio Polycarbonate coated with highly reflective coat, usually aluminum Data stored as pits Read by reflecting laser Constant packing densityThe areas between pits are called lands. A land is a smooth surface, which reflects back at higher intensityConstant linear velocity ( CLV )

CD OperationData on the CD-ROM are organized as a sequence of blocks. A typical block format is shown in Figure 6.11. It consists of the following fields: Sync : The sync field identifies the beginning of a block. It consists of a byte of all 0s, 10 bytes of all 1s, and a byte of all 0s. Header: The header contains the block address and the mode byte. - Mode 0 specifies a blank data field; - mode 1 specifies the use of an error-correcting code and 2048 bytes of data; - mode 2 specifies 2336 bytes of user data with no error-correcting code.Data: User data. Auxiliary: Additional user data in mode 2. In mode 1, this is a 288-byte error correcting code.

CD-ROM advantageThe optical disk together with the information stored on it can be mass replicated inexpensivelyThe optical disk is removable, allowing the disk itself to be used for archival storageCD-ROM disadvantages:It is read-only and cannot be updated. It has an access time much longer than that of a magnetic disk drive, as much as half a secondCD-ROM Drive SpeedsAudio is single speed - Constant linear velocity - 1.2 ms-1 - Track (spiral) is 5.27km long - Gives 4391 seconds = 73.2 minutesOther speeds are quoted as multiples (e.g. 24x)

Other Optical StorageCD-Recordable (CD-R) - write-once read-many CD - Is attractive for archival storage of documents and files. - It provides a permanent record of large volumes of user data. CD-RW - It can be repeatedly written and overwritten - Erasable - Getting cheaper - Phase change disk uses material has two different reflectivities in two different phase statesDigital Versatile Disk - Used to indicate a computer drive - Will read computer disks and play video disksDVD technology - Multi-layer - Very high capacity (4.7G per layer) - Full length movie on single disk - Using MPEG compression - Finally standardized (honest!) - Movies carry regional coding - Players only play correct region films - Can be fixedThe DVDs greater capacity is due to three differences from CDs (Figure 6.12): Bits are packed more closely on a DVD.The DVD employs a second layer of pits and lands on top of the first layer.The DVD-ROM can be two sided, whereas data are recorded on only one side of a CD. This brings total capacity up to 17 GB.

High Definition Optical DisksDesigned for high definition videos Much higher capacity than DVD - Shorter wavelength laser - Blue-violet range - Smaller pitsHD-DVD - 15GB single side single layer Blue-ray - Data layer closer to laser - Tighter focus, less distortion, smaller pits - 25GB on single layer - Available read only (BD-ROM), Recordable once (BR-R) and re-recordable (BR-RE)

Magnetic TapeSerial accessSlow Very cheapBackup and archive Linear Tape-Open (LTO) Tape Drives - Developed late 1990s - Open source alternative to proprietary tape systemsData on the tape are structured as a number of parallel tracks running lengthwise.data are laid out as a sequence of bits along each track, as is done with magnetic disks.data are read and written in contiguous blocks, called physical recordsrecording technique used in serial tapes is referred to as serpentine recording.

The dominant tape technology today is a cartridge system known as linear tape-open (LTO). LTO was developed in the late 1990s as an open-source alternativeto the various proprietary systems on the market. Table 6.6 shows parameters