chapter 5 data storage technology. chapter goals describe the distinguishing characteristics of...
Post on 22-Dec-2015
219 views
TRANSCRIPT
![Page 1: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/1.jpg)
Chapter 5
Data Storage Technology
![Page 2: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/2.jpg)
Chapter goals Describe the distinguishing characteristics of
primary and secondary storage Describe the devices used to implement
primary storage Describe the memory allocation schemes Compare and contrast secondary storage
technology alternatives
![Page 3: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/3.jpg)
Goals cont. Describe factors that determine storage device
performance Choose appropriate secondary storage technologies
and devices Explore storage devices and their technologies Outlines characteristics common to all storage
devices Explains the technology strengths and weaknesses of
primary storage and secondary storage
![Page 4: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/4.jpg)
Storage types Primary storage – memory or RAM
Holds instructions and data for currently executing programs
Volatile – requires electricity to maintain data
Secondary storage – electromagnetic or optical devices Non-volatile storage devices with
large capacities
![Page 5: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/5.jpg)
Storage device components Storage devices are comprised of
Storage medium Read/write mechanism Device controller – interface between
the storage device and the system bus (discussed in chapter 6)
![Page 6: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/6.jpg)
Storage device characteristics
![Page 7: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/7.jpg)
Speed Speed of primary storage (RAM) directly
impacts performance of entire system RAM extends the limited capacity of CPU
registers The CPU continually moves data and
instructions between registers and RAM If a read/write to RAM takes more than one
CPU cycle, then CPU must wait for information
RAM is faster than secondary storage by a factor of 105 or more
![Page 8: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/8.jpg)
Speed cont. Speed is also an issue for secondary
storage Called “access time” or “seek time” Access time is defined as time to
complete one read or write operation Access time for disk or tape storage can
vary depending on location of information, therefore access time is expressed as an average
![Page 9: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/9.jpg)
Access times Primary storage – expressed in
nanoseconds (billionths of a second)
Secondary storage – expressed in milliseconds (thousandths of a second)
![Page 10: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/10.jpg)
Data transfer rate Complete measure of data access
speed consists of access time and the unit of data transfer to/from the storage device Access time plus how much data is
transferred Data transfer unit for primary storage
is based on word size (usually 32 bit)
![Page 11: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/11.jpg)
Data transfer unit Data transfer unit (amount of data
moved at a time) for secondary storage varies depending on the device
Unit is called a “block” Block size is stated in bytes “Sector” is data transfer unit for
magnetic and optical devices Common sector/block size is 512 bytes
![Page 12: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/12.jpg)
Data transfer rate Expressed in terms of
bytes/second Access time combined with data
transfer unit Data transfer rate describes how
much data can be transferred between devices over a period of time
![Page 13: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/13.jpg)
Volatility Volatile – storage device is volatile if it
cannot reliable hold data for long periods of time
Non–volatile – storage device is non-volatile if it can reliably store data for long periods of time
Computer systems need a combination of volatile and non-volatile storage devices
![Page 14: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/14.jpg)
Access method Physical structure of storage
device’s read/write mechanism determines the way(s) data can be accessed Serial access Random access Parallel access
![Page 15: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/15.jpg)
Serial access Stores and retrieves data items in
a linear or sequential order Slowest access method Tape typically used for backup
purposes
![Page 16: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/16.jpg)
Random access Also called a direct access device Can directly access data stored on
the device All primary storage and disk storage
devices are direct access Parallel access – with multiple
read/write heads, can simultaneously access more than one storage location
![Page 17: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/17.jpg)
Portability Data can be made portable by storing it
on a removable storage medium or device.
Portable devices typically have slower access speed than permanently installed devices and those with non-removable media.
![Page 18: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/18.jpg)
Cost and capacity An increase in speed, permanence or
portability generally comes at increased cost if all other factors are held constant.
![Page 19: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/19.jpg)
Storage Device Characteristics
![Page 20: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/20.jpg)
Primary storage devices Random access memory (RAM) is a
generic term for storage device that Microchip implementation using
semiconductors Ability to read and write with equal
speed Random access to stored bytes, words,
or larger data units
![Page 21: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/21.jpg)
SRAM vs. DRAM Static RAM – implemented with
transistors Requires continuous supply of electricity to
preserve data Dynamic RAM – uses transistors and
capacitors Require a fresh infusion of power thousands
of times per second. Each refresh operation is called a refresh
cycle
![Page 22: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/22.jpg)
Read only memory ROM – random access memory
device that can store data permanently or semi-permanently
Typically used to store BIOS (basic input output services)
Instructions stored in ROM is called firmware
![Page 23: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/23.jpg)
Memory packaging
![Page 24: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/24.jpg)
CPU Memory Access Management of RAM is critical to
performance of computer Organization, access, and
management or RAM is done by the operating system
How memory is accessed is large factor in performance of RAM
![Page 25: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/25.jpg)
Physical memory organization Main memory of any computer is a
sequence of contiguous memory cells Addressable memory – highest number
storage byte that can be represented Determined by the number of bits used to
represent an address If 32 bits used to represent and address,
highest address is 232 = 4,294,967,296, or 4 GB Physical memory – actual memory
installed, usually less than addressable memory
![Page 26: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/26.jpg)
Memory addressing & allocation Memory allocation is the assignment or
reservation of memory segments for system software, application programs, and data
Memory allocation is the responsibility of the operating system
Common scheme is to place OS in low memory and applications in high memory This can be demonstrated with C++ program
![Page 27: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/27.jpg)
Memory allocation
![Page 28: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/28.jpg)
Absolute vs. relative addressing Some programming languages (C,
C++) allow instructions that reference explicit memory locations BRANCH to location # STO to location #
Absolute addressing describes memory address operands that refer to actual physical memory locations
![Page 29: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/29.jpg)
Problems with absolute addressing If a program refers to a physical
memory address in the code, then OS loses ability to re-arrange application locations in memory
Instead, programs use relative addressing
![Page 30: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/30.jpg)
Relative addressing Instructions that refer to memory use a
combination of registers to compute addresses
When OS loads application into memory, OS loads starting point of application into one register
Instruction in application that refers to memory location is using an offset (i.e. distance from beginning of application)
OS adds offset to starting point to calculate physical memory location
![Page 31: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/31.jpg)
Segmented memory
![Page 32: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/32.jpg)
Each application has unique starting address
![Page 33: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/33.jpg)
Magnetic storage Uses magnetism to store binary
information onto a storage medium that can store magnetic information
Least expensive medium for secondary storage
Can be portable Retains data without electricity Over longer periods of time will
eventually lose information
![Page 34: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/34.jpg)
Read/write in magnetic device
![Page 35: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/35.jpg)
Magnetic decay and leakage Primary disadvantage is loss of
data over time Magnetic Decay – the tendency of
magnetically charges particles to lose their charge over time
Magnetic Leakage – a decrease in the strength of individual bit charges
![Page 36: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/36.jpg)
Magnetic storage
![Page 37: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/37.jpg)
Organization of tracks and sectors
![Page 38: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/38.jpg)
Optical mass storage devices Advantages:
Higher recording density Longer data life Retain data for decades Not subject to problems of magnetic decay and
leakage
![Page 39: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/39.jpg)
Optical storage Optical storage devices store bit values as
variations in light reflection.
Storage medium is a surface of highly reflective material.
The read mechanism consists of a low-power laser and a photoelectric cell.
![Page 40: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/40.jpg)
Storing binary information
![Page 41: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/41.jpg)
Examples of optical devices
![Page 42: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/42.jpg)
Chapter summary A typical computer system has primary and
secondary storage devices
The critical performance characteristics of primary storage devices are their access speed and the number of bits that can be accessed in a single read or write operation
![Page 43: Chapter 5 Data Storage Technology. Chapter goals Describe the distinguishing characteristics of primary and secondary storage Describe the devices used](https://reader036.vdocuments.us/reader036/viewer/2022062320/56649d7d5503460f94a602d8/html5/thumbnails/43.jpg)
Summary cont. Programs generally are created as through
they occupied contiguous primary storage locations starting at the first location
Magnetic storage storage devices store data bits as magnetic charges
Optical discs store data bits as variations in light reflection