36
Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal computers – Features of secondary storage devices. – How data is stored on a disk

Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

Embed Size (px)

Citation preview

Page 1: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

Module 6: Information storage

Objective– The bird view of data and information storage– Benefits of secondary storage– Second storage device for personal computers– Features of secondary storage devices. – How data is stored on a disk

Page 2: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

2

Domains and their measurement

• Space– Meter, millimeter, micrometer, nanometer

• Time– Second, millisecond, microsecond, nanosecond

• Frequency– Hertz (Hz), KHz, MHz, GHz– Clock cycle time = 1 / system clock frequency

• Information– Bit, Byte, KB, MB, GM, TB

• Printing/publication– Point (pt), 1 pt = 1/72 inch

Page 3: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

3

Storage• Hierarchy of data/information

storage– Register: small, fast – Cache: intermediate, not

addressable– Main memory: addressable,

volatile – Second storage, not

addressable, can only store files, e.g. program files, data files

• Benefit of secondary storage– Space– Reliability– Convenience– Economy

Control Unit

ALU

Registers

Main memory

CPU

Cache L1

Cache L2

Secondarystorage

Storage system

Page 4: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

4

Space

• Store a roomful of data on disks smaller than the size of a breadbox– Diskette contains equivalent of 500 printed

pages– Optical disk can hold equivalent of 500 books– A DVD disk can hold 3,500 books– The new 60 GB IPod can hold 15,000 songs

Page 5: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

5

Reliability

• Data in secondary storage is relatively safe– Secondary storage is highly reliable– More difficult for untrained people to tamper

with data stored on disk

Convenience• Authorized users can easily and quickly

locate data stored on the computer

Page 6: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

6

Economy

• Several factors create significant savings in storage costs– Less expensive to store data on disks than to

buy and house filing cabinets– Reliable and safe data is less expensive to

maintain– Greater speed and convenience in filing and

retrieving data

Page 7: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

7

Magnetic Disk Storage

• Data represented as magnetized spots on surface of spinning disk– Two states of magnetic molecule: Ordered or

unordered– Can be controlled, and changed by

electronic/magnetic field– Spots on disk converted to electrical impulses

• Primary types– Diskettes– Hard Disks

Page 8: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

8

Diskettes

• Made of flexible Mylar and coated with iron oxide

• Has protection of rigid plastic jacket• 3 ½” diskette holds 1.44 MB of data• High-capacity variations

– Sony’s HiFD holds 200 MB– Imation’s SuperDisk available in 120 and 240

MB versions– Iomega’s Zip drive available in 100, 250, and

750 MB versions

Page 9: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

9

Hard Disks

• Rigid platter coated with magnetic oxide– Several can be combined into a disk pack

• Disk drive - a device that allows data to be read from or written to a disk– Disk drive for personal computers contained

within computer housing– Large computer systems may have several

external disk drives

Page 10: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

10

Reading/Writing Data

• Access arm moves read/write head over particular location

• Read/write head hovers a few millionths of an inch above platter– If head touches platter, a head

crash occurs and data is destroyed

– Data can be destroyed if head touches miniscule foreign matter on surface of disk

Page 11: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

11

Disk Packs

• Each platter has its own access arm with read/write head

• Most disk packs combine platters, access arms, and read/write head

Page 12: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

12

Hard Disks for Personal Computers

• Sealed modules that mount in a 3 ½” bay

• Capacity in gigabytes• Accessing files much faster than

accessing files on diskettes• Some contain removable

cartridges– Iomega’s Jaz drive is very popular

Page 13: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

13

Flash memory• Flash memory is a non-volatile memory

device that retains its data after the power is removed

• Made of electronic circuits, RAM-ROM hybrid, small with high capacity

• Access speed is between main memory and HD

• E.g. memory key, flesh memory in mobile device, IPod nano. Replacement to HD?

Page 14: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

14

Redundant Array of Independent Disks (RAID)• A group of disks that work

together as one– Raid level 0 spreads data from a

single file over several drives• Called data striping• Increases performance

– Raid level 1 duplicates data on several drives

• Called disk mirroring• Increases fault tolerance

Page 15: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

15

How Data Is Organized on Disk

• Track

• Sector

• Cluster

• Cylinder

Page 16: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

16

Track

• The circular portion of the disk surface that passes under the read/write head– Floppy diskette has 80 tracks

on each surface– Hard disk may have 1,000 or

more tracks on each surface of each platter

Page 17: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

17

Sector

• Each track is divided into sectors that hold a fixed number of bytes– Typically 512 bytes per

sector

• Zone recording assigns more sectors to tracks in outer zones than those in inner zones– Uses storage space more

fully

Page 18: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

18

Cluster

• A fixed number of adjacent sectors that are treated as a unit of storage– Typically two to eight sectors, depending on

the operating system

Page 19: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

19

Cylinder

• The track on each surface that is beneath the read/write head at a given position of the read/write heads– When file is larger than the

capacity of a single track, operating system will store it in tracks within the same cylinder

Page 20: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

20

Disk Access Speed

• Access time - the time needed to access data on disk

• Three factors– Seek time: moving arm over a track– Head switching: from one head to another– Rotational delay: rotating to a sector

• Once data found, next step is data transfer

Page 21: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

21

Data Transfer

• The process of transferring data between its location on the disk track and memory

• Measures of performance– Average access time

• About 10 milliseconds (10 thousandth of a second)

– Data transfer rate - how fast data can be transferred once it has been found

• Stated in terms of megabytes per second

Page 22: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

22

Optical Disk Storage

• Provides inexpensive and compact storage with greater capacity

• Laser scans disk and picks up light reflections from disk surface

• Categorized by read/write capability– Read-only media - user can read from, but not

write to disk– Write-once, read-many (WORM) - user can

write to disk once

Page 23: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

23

Compact Disks

• CD-ROM - drive can only read data from CDs– CD-ROM stores up to 700 MB per disk– Primary medium for software distribution

• CD-R - drive can write to disk once– Disk can be read by CD-ROM or CD-R

drive

• CD-RW - drive can erase and record over data multiple times– Some compatibility problems trying to

read CD-RW disks on CD-ROM drives

Page 24: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

24

Digital Versatile Disk (DVD)

• Short wavelength laser can read densely packed spots– DVD drive can read CD-ROMs– Capacity up to 17GB– Allows for full-length movies– Sound is better than on audio CDs

• Several versions of writable and rewritable DVDs exist

Page 25: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

25

Multimedia

• Presents information with text, illustrations, photos, narration, music, animation, and film clips

• Not practical until the advent of the optical disk

• Requirements

• Applications

Page 26: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

26

Requirements

• CD-ROM or DVD-ROM drive

• Sound card or sound chip

• Speakers– For high-quality sound, get good speakers

and powered subwoofer

• Equipped to handle MPEG– Standards for compressing video

Page 27: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

27

Magnetic Tape Storage

• Tape similar to tape used in music cassettes

• Categorized in terms of density– Number of bits per inch stored on

tape

• Used primarily for backup of data stored on disk systems

Page 28: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

28

Backup Systems

• Imperative to have copies of important data stored away from the computer– Disks occasionally fail– Software installation can cause computer to crash– Users make mistakes entering data

• Tape is ideal backup medium– Can copy entire hard disk to single tape in minutes– Backup can be scheduled when you are not going to

use the system

Page 29: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

29

File Plan Overview

• Must devise a plan for placing data on a storage unit

• Key factors– Whether users must access data directly

(immediately)– How data must be organized on disk– Type of processing that will take place

Page 30: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

30

File Organization

• Three major methods of organizing data files in secondary storage– Sequential– Direct– Indexed

Page 31: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

31

Sequential File Organization

• Records are stored in order according to a key field– If a particular record is desired, all prior

records must be read first– To update a record, a new sequential file must

be created, with changed and unchanged records

• Tape storage uses sequential organization

Page 32: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

32

Direct File Organization

• Also called random access• Go directly to desired

record by using a key– Computer does not have to

read all prior records– Hashing algorithm used to

determine address of given key

• Requires disk storage

Page 33: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

33

Indexed File Organization

• Combines elements of sequential and direct methods– Records stored sequentially, but file also

contains an index– Index stored sequentially, contains record key– Data accessed by record key

Page 34: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

34

Processing Stored Data

• Transactions processed to update a master file– Transactions - a business event such as a

sale– Master file - data that is updated when a

transaction occurs, such as a sales file or inventory file

• Two main methods of processing data– Batch processing– Transaction processing

Page 35: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

35

Batch Processing

• Transactions collected into groups or batches– Batch processed and master

file updated when the computer has few users online

• Very efficient use of computer resources

• Master file current only immediately after processing

Page 36: Module 6: Information storage Objective – The bird view of data and information storage – Benefits of secondary storage – Second storage device for personal

36

Transaction Processing

• Processing transactions as they occur– Also called real-time

processing and online processing

– Terminals must be connected directly to the computer

• Offers immediate updating of master file