Chapter 4 Device Management (Updated)
Chapter 4 Device Management (Updated)
Device Management
Chapter 4 Overview
• The Device Manager
• Types of Devices
• Storage Media: Sequential Access and Direct
Access
• Components of the I/O Subsystem
• Communication Among Devices
小飞守角制作
Device Management Functions
• Track status of each device (such as
tape drives, disk drives, printers,
plotters, and terminals).
• Use preset policies to determine which
process will get a device and for how
long.
• Allocate the devices.
• Deallocate the devices at 2 levels:
• At process level when I/O command has been
executed & device is temporarily released
• At job level when job is finished & device is
permanently released. 小飞守角制作
System
Devices
• Differences among system’s peripheral devices
are a function of characteristics of devices, and
how well they’re managed by the Device
Manager.
• Most important differences among devices
• Speeds
• Degree of sharability.
• By minimizing variances among devices, a
system’s overall efficiency can be dramatically
improved.
Dedicated devices (Non-sharable
devices)
• Devices are assigned to only one job at a
time; they serve that job for the entire
time it’s active or until it releases them.
Some devices, such as tape drives,
printers, and plotters.
• The disadvantage of dedicated devices is
that they must be allocated to a single
user for the duration of a job’s execution,
which can be quite inefficient, especially
when the device isn’t used 100 percent of
the time.
• And some devices can be shared or
Shared devices
• It can be assigned to several
processes. For instance, a disk, or any
other direct access storage device
(often shortened to DASD), can be
shared by several processes at the
same time by interleaving their
requests, but this interleaving must be
carefully controlled by the Device
Manager.
• All conflicts—such as when Process A
and Process B each need to read from
the same disk—must be resolved
based on predetermined policies to
decide which request will be handled
Sequential Access Storage Media
• Magnetic tape used for secondary storage on
early computer systems; now used for routine
archiving & storing back-up data.
• Records are stored serially, one after other.
• Each record can be identified by its position on
the tape.
• To access a single record, tape is mounted &
“fast-forwarded” from its beginning until locate
desired position.
Magnetic Tapes
• Data is recorded on 8 parallel tracks
that run length of tape.
• Ninth track holds parity bit used for
routine error checking.
• Number of characters that can be
recorded per inch is determined by
density of tape
• Density
BPI🡺 Bits Per Inch. Capacity
Length
1600 BPI 2400 ft 40 MB
6250 BPI 2400 ft 170 MB.
8 data bits which make one byte (or character)
and the 9th bit for parity.
Density Length Capacity
1600 BPI 2400 ft 40 MB
6250 BPI 2400 ft 170 MB.
• Disadvantages
• Overhead and software routines are needed for
blocking, deblocking, and record keeping.
• Buffer space may be wasted if you need only one
logical record but must read an entire block to get
it.
Magnetic Tape Access Times Vary
Widely
• Benchmarks Access time
• Sequential access 3
Variability makes
milliseconds
magnetic tape a poor
medium for routine
secondary storage
except for files with very
high sequential activity.
Direct Access Storage Devices
(Random Access Storage Devices)
DASDs-- any devices that can directly read or
write to a specific place on a disk.
• High cost.
Time 5 7 16 35 40 47 55 60
Cylinder 87 35 1873 245 2653 890 200 478
5 4 183
2 162 8
8 240
8
69 176
0
27 3
Total Head Movements =
8 8721
(ii) SSTF (Shortest Seek Time
First)
Suppose a 2.5 “ SATA hard disk drive has 3000 cylinders,
numbered 0-2999.The drive is currently serving an I/O request at
cylinder 151. The queue of pending requests is as follows:
Time 5 7 16 35 40 47 55 60
Cylinder 87 35 1873 245 2653 890 200 478
Disk 2
Channel 1
Tape 1
CPU
Tape 2
Channel 2 Tape 4
Control Unit 4
Disk 4
Disk 5
I/O Subsystem : I/O Channel
• I/O Channel -- keeps up with I/O requests
from CPU and pass them down the line to
appropriate control unit.
• Synchronize fast speed of CPU with slow
speed of the I/O device.
• Make it possible to overlap I/O operations with
processor operations so the CPU and I/O can
process concurrently.
• Use channel programs that specifies action
to be performed by devices & controls
transmission of data between main memory &
control units.
I/O Subsystem : I/O Control Unit
• I/O control unit interprets signal sent by
channel.
• One signal for each function.
I/O Instructions