CDA-4101 Lecture 5 Notes



Secondary Memory

  • There is, and always has been, far more data to be stored than is economically feasible in primary memory (RAM).
  • There is also the volatility of RAM that is a problem.
  • Secondary store is far slower, but far larger than primary memory, and also more permanent (but nothing lasts forever.)

Memory Hierarchies


Hard Disks, Fixed Disks. HDD, etc.

  • note that and floppy disk drives are also "Magnetic Disks"
  • aluminum platter (disk) with magnetized coating (layer of very small magnetic particles)
  • coated on both sides, so two surfaces contain data
  • induction coil (the main part of the head) is used to read and write
  • induction is the process where a moving magnetic field can create a current in a wire
  • the platters spin

Reading

  • For reading, the magetized coating passing under the induction coil which can create (or not create) a current.
  • The current / no current detection from the coil is translated into the 0's and 1's.
  • Note that usually it is the change from current to no current that is used as the "bit".

"The man who does not read good books has no advantage over the man who can't read them." - Samuel Clemens (a.k.a, Mark Twain)

Writing

  • For writing, a current is passed through the coil, and since an electrical field always has a surrounding magnetic field, this is used to set or magnetize the coating.
  • This same basic idea is used for cassette tapes, VHS tapes (Betamax and 8-tracks too!) only the physical storage media is a sequential and a plastic film substrate.

More Hard Disk Drive Properties

  • Induction coil does not make contact with the platter, if it does, this would be a "crash", and is very bad.
  • The air currents created by the platter spinning allow the r/w head to "float" just above the platter
  • for the most part, data can be accessed randomly rather than sequentially (a big advantage to tapes)
  • the head resides on an arm that moves it radially, so with the disk spinning can get to any point of the disk quickly
  • To increase capacities, multiple platters are used stack on top of each other
  • Each platter has its own R/W head, though most typically all are attached to the same arm control mechanism.

Disk Drive Geometry

track = yellow, sector = blue

  • sectors are fized sized (usually 512 bytes)

Multiple Platters/Cylinders

  • cylinders are similar to tracks, across multiple platters

Track Layout


Disk Capacities


'Rithmetic

  • This is the last disk drive I bought:
        model: WD 800BB - 00DAA1
        number of disks = 3
        number of surfaces = 6
        number of heads = 6
        bytes per sector = 512
        user sector per drive = 156,301,488
        capacity = 512 * 156,301,488
                 = 80,026,361,856
                 ~ 80GB
    

"There are only two truly infinite things, the universe and stupidity. And I am unsure about the universe." - Albert Einstein

Modern Disk Drive Geometries


Disk Performance

  • How a disk retrieves/writes data:
    1. move arm so head is on right track/cylinder
    2. wait for data to rotate under the R/W head
    3. read/write data
  • seek - moving arm to correct radial position
          SPECS
            Average Read Seek    8.9 ms (average)
            Track-to-Track Seek 4    2.0 ms (average)
            Full Stroke Read Seek 4    21 ms (average)
        
  • rotational latency - waiting for data to spin under head (depends on disk's rotational speed)
          SPECS
            7200 RPM
               = 120 RPS (revolutions per second)
               = 0.0083 SPR (seconds per revolution)
               = 8.3 milliseconds
    
    	    On average disk has to sping half way round, do the 
             ave rotational latency is about 4.2 milliseconds
        
  • transfer times - read/write the data, depends on linear density and rotational speed
          SPECS
             Up to 100 MB/s burst transfer rates
             195,312 sectors/sec
             0.00000512 secs per sector
             5.12 microsec
        
    
      
  • Notice that seek times and latency times are 3 orders of magnitdue slower than the transfer times.
  • maximumn burst rate versus maximum sustained rate - burts rate does not include the time spent over the ECCs, preambles and gaps

Disk Controllers


Floppy Disks

  • Floppy disk drives were originally introduced commercially as a read-only device to hold microcode and diagnostics for large IBM mainframe computer systems in the early 1970s.
  • Used to be the way softare was distributed:
    • no DVDs
    • no CDs
    • no ZIP drives
    • no Internet
  • Layout similar to hard drives, but:
    • Plastic film (floppy) disk rather than rigid aluminun platter
    • R/W head touches surface
    • slower
    • less durable
    • extra "spin up" times

Floppy Drive Evolution


Floppy drive Performance


Disk Controllers

BIOS IDE Combined Limit
Max. Sectors/track 63 255 63
Max. Heads 256 16 16
Max. Cylinders 1024 65536 1024
Max. Capacity 8 GB 127.5 GB 504 MB


SCSI (i.e., "scuzzy")

Small Computer System Interface


RAID

redundant array of inexpensive disks

RAID Basics


RAID Level 0 (Striping)


RAID Level 1 (Striping and mirroring)


RAID Level 2


RAID Level 3


RAID Level 4


RAID Level 5


Compact Disks

  • original phyical design for audio

Writing

  • laser burns 0.8 micron holes in a glass disk
  • use this "master" to create a mold
  • polycarbonate resin injected into molds
  • coat with aluminum and protective laquer
  • result is a disc with small "pits" and "lands"

Reading

  • read head with a laser can then read differences in height to distinguish 0's and 1's (using destructive interference)
  • actually use the transitions from lands to pit to hold information, since this is more reliable than trying to tell absolute depths.
  • data stored as a single continuous spiral groove
  • for audio, data must stream at uniform rate, so disk must slow down as it goes from inside to outside.

CD-ROMS


CD-ROM Filesystems


CD-ROM Performance


CD-R

  • uses dye to alter brightness of relfected laser light
  • chemical properties of dye: transparent normally, turning dark when heated
  • to "burn" higher powered laser is used to heat up areas needed to encoded the data
  • see book for more details
  • Also came up with CD-ROM XA which allows a CD-R to be written incrementally
  • writing must be done in a single continuous operation, if data cannot be fed fast enough, CD-R is ruined

CD-RW

  • yet another technology
  • uses a material that has two states, with different reflectiveity
  • depending on intensity of laser light it will read the data or force it to go through a state transition thus changing its reflectivity
  • more expensive than CD-Rs

DVD - Digital Video Disk

  • originally for audio/video
  • same idea as CDs, but can get higher densities with improved technology
  • different laser, so need two if CD's are to be read
  • capacity 4.7 GB
  • single speed 1.4 MB/sec
  • still evolving
    • DVD-R, DVD-RW, and many other formats, e.g., DVD-VCD

Next generation Floppies?