SlideShare ist ein Scribd-Unternehmen logo
1 von 86
Damian Gordon
 The main functions of the device manager
are:
1. Monitor the status of all devices, including storage
drives, printers and other peripherals
2. Enforce pre-set policies on which process gets
which device for how long
3. Deal with the allocation of devices to processes
4. Deal with the de-allocation of devices to
processes, both at a temporary basis (e.g. when
the process is interrupted) and on a permanent
basis (e.g. when the process is completed).
 Examples of devices:
◦ Keyboard
◦ Mouse
◦ Monitor
◦ Scanner
◦ Camcorder
◦ CD-ROM
◦ USB Ports
◦ WebCam
◦ Microphone
◦ Printer
 There are three main types of devices:
◦ Dedicated Devices
◦ Shared Devices
◦ Virtual Devices
 Dedicated Devices
 Dedicated Devices
◦ These are devices that are assigned to one process
at a time, and the process only releases the device
once it is completed.
◦ This makes sense for devices like plotters, and tape
drives.
◦ The problem with this is that it means only one user
is using it at a time, and it might be inefficient if
the device isn’t being used 100% of the time that it
is being locked by the user.
 Shared Devices
 Shared Devices
◦ These are devices that can be shared between
several processes.
◦ Considering an example like a hard disk, it is
shared, but interleaving between different
processes’ requests.
◦ All conflicts for device need to be resolved but pre-
determined policies to decide which request is
handled first.
 Virtual Devices
Spool 1
Spool 2
 Virtual Devices
◦ These are devices are a combination of Dedicated
and Shared Devices.
◦ So a printer is a dedicated device, but using the
spooling (queues) means it can be shared.
◦ A print job isn’t sent straight to the printer, instead
it goes to the disk (spool) until it is fully prepared
with all the necessary printer sequences and
formatting, then it goes to the printer, ensuring
that the printers (and all I/O devices) are used
efficiently.
 We’ll look at two hard disk configurations:
◦ Mobile-Head Magnetic Disk Storage
◦ Fixed-Head Magnetic Disk Storage
 Mobile-Head Magnetic Disk Storage
◦ Both the reading(/writing) head moves and the disk
spins.
◦ Usually formatted on both sides.
◦ Data is recorded on tracks.
Moving
Read/Write
Head
Moving
Read/Write
Head
 Mobile-Head Magnetic Disk Storage
 Typically there is more than one disk (platter),
and they are arranged in a stack (we also call
this as being part of a disk pack).
 The disks are stacked on a common spindle,
and have Read/Write heads on both sides.
 All of the Read/Write heads are move in
unison.
 Mobile-Head Magnetic Disk Storage
spindle
 Fixed-Head Magnetic Disk Storage
 Works like a CD or DVD, the disk spins and
the reading head stays stationary.
 Usually formatted on both sides.
 Data is recorded on tracks.
Track 1
Track 2
Track 3
Track 4
Multiple Fixed
Read/Write
Heads
Track 1
Track 2
Track 3
Track 4
Multiple Fixed
Read/Write
Heads
 Fixed-Head Magnetic Disk Storage
 This means it’s very fast compared to a
moving Read/Write head, however, it is more
costly to manufacture, and it has less storage
space as the tracks have to be positioned
farther apart.
 These are often used in space flight and
aircraft applications where speed is most
important.
 In either case we may have a disk pack:
 Disk pack:
 Disk pack:
 Disk pack:
 Disk pack:
 Disk pack:
◦ An interesting question occurs about disk packs, is
it more efficient to write a series of records on one
surface of a disk and then the opposite surface of
that disk, followed by the next disk, and the next
one, and so on? Or is better to do fill the other
surface of each surface of each disk, then the next
track, then the next?
 Disk pack (Case 1):
 Disk pack (Case 2):
 Disk pack (Case 2):
 Disk pack (Case 2):
 Disk pack (Case 2):
 Disk pack (Case 2):
 Disk pack (Case 2):
 Disk pack (Case 2):
 Disk pack (Case 2):
C
y
l
i
n
d
e
r
 Disk pack:
◦ It turns out it’s faster to fill the disks a track at a
time (case 2), and this leads up to the concept of a
virtual cylinder of data.
 Disk pack:
◦ So to access a record, the device manager needs;
the cylinder number, the surface number, and the
sector number.
 Optical Disk Storage:
◦ Because of advances in laser technology it is
possible to store data optically rather than
magnetically, and CDs and DVDs are examples of
optical storage.
◦ Unlike magnetic disks, which typically consist of
tracks as a series of concentric circles, optical disks
are usually a single continuous spiral track.
 Magnetic Disks Optical Disks
 Optical Disk Storage:
 Optical Disk Storage:
 Optical Disk Storage:
◦ Another significant difference between magnetic
and optical disks is that magnetic disks spin at a
constant speed, so the tracks on other outer rings
of magnetic disks have to have larger sectors, and
those tracks nearer the centre have small tracks.
◦ Optical disks can change the speed to reading, so
the sector size is the same in the outside or inside.
 Optical Disk Storage:
 Optical Disk Storage:
 Optical Disk Storage:
◦ Another significant difference between magnetic
and optical disks is that magnetic disks spin at a
constant speed, so the tracks on other outer rings
of magnetic disks have to have larger sectors, and
those tracks nearer the centre have small tracks.
◦ Optical disks can change the speed to reading, so
the sector size is the same in the outside or inside.
 Optical Disk Storage:
◦ Three important performance measures are:
 Data Transfer Rate
 Average Access Time
 Cache Size
 Data Transfer Rate
◦ This measures the amount of data that can be
read from the disk.
◦ It is typically measured in megabytes per
second (MB/s).
 Average Access Time
◦ This measures how long (on average) it takes
to move the disk head to a specific place on
the disk.
◦ It is typically measured in milliseconds (ms).
 Cache Size
◦ When reading and writing to disk, sometimes
the user will wish to re-read data they have
just read, if so, having it in the cache saves
reading it again.
◦ It is typically measured in kilobytes (KB).
 Optical Disk Storage:
◦ To write to an optical disk, a high intensity laser
beam burns indentations in the disk called pits.
The pits represent zeros (0s).
◦ The unburned flat areas are called lands, and
represent ones (1s).
 The CPU makes a lot of I/O requests.
 The I/O channels work to co-ordinate the
devices to synchronise the fast speed of the
CPU with the slower speeds of the I/O
devices.
 The I/O control units are attached to several
similar devices and control these devices
based on instructions from the channel.
 RAID is a collection of physical disk
drives that can be viewed as a single
logical unit by the operating system.
 RAID works on the basis that several
small-capacity disk drives are more
efficient than a few large-capacity disk
drives.
 This is because by distributing the data
among several smaller disks, the system
can simultaneously access the requested
data from the multiple drives, resulting
in improved I/O performance.
 A RAID configuration could have five disk
drives connected to a specialized controller.
 The controller houses the software that
coordinates the transfer of data from the
disks in the array to a large-capacity disk
connected to the I/O subsystem.
 This configuration is viewed by the
operating system as a single large capacity
disk, so that no software changes are
needed.
 A RAID configuration could have five disk
drives connected to a specialized controller.
 The controller houses the software that
coordinates the transfer of data from the
disks in the array to a large-capacity disk
connected to the I/O subsystem.
 This configuration is viewed by the
operating system as a single large capacity
disk, so that no software changes are
needed.
 Data is divided into segments called strips,
which are distributed across the disks in
 the array.
 A set of consecutive strips across disks is
called a stripe and the whole process is called
striping.
 The previous figure shows how data strips are
distributed in an array of four disks
Damian Gordon
 There are three main types of devices:
◦ Dedicated Devices
◦ Shared Devices
◦ Virtual Devices
 We’ll look at two hard disk configurations:
◦ Mobile-Head Magnetic Disk Storage
◦ Fixed-Head Magnetic Disk Storage
 Writing to disk:
◦ One surface at a time (Case 1)
◦ One track at a time (Case 2)
 Magnetic Disks Optical Disks
 Magnetic Disks Optical Disks
 Optical Disk Storage:
◦ Three important performance measures are:
 Data Transfer Rate - amount of data that can be
read from the disk.
 Average Access Time - how long (on average) it
takes to move the disk head to a specific place
on the disk.
 Cache Size – measures re-read ability.
Operating Systems: Device Management
Operating Systems: Device Management
Operating Systems: Device Management

Weitere ähnliche Inhalte

Was ist angesagt?

Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
Piyush Rochwani
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
tittuajay
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
Ravindra Raju Kolahalam
 

Was ist angesagt? (20)

Types of operating system
Types of operating systemTypes of operating system
Types of operating system
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
Memory management
Memory managementMemory management
Memory management
 
operating system lecture notes
operating system lecture notesoperating system lecture notes
operating system lecture notes
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
 
Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1Operating System - Types Of Operating System Unit-1
Operating System - Types Of Operating System Unit-1
 
Operating system
Operating systemOperating system
Operating system
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Types Of Operating Systems
Types Of Operating SystemsTypes Of Operating Systems
Types Of Operating Systems
 
Memory management
Memory managementMemory management
Memory management
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Os ppt
Os pptOs ppt
Os ppt
 
Operating system and its types
Operating system and its types Operating system and its types
Operating system and its types
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
I/O Management
I/O ManagementI/O Management
I/O Management
 
Demand paging
Demand pagingDemand paging
Demand paging
 
Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Scheduling Definition, objectives and types
Scheduling Definition, objectives and types
 
Storage management
Storage managementStorage management
Storage management
 
Magnetic Disk
Magnetic Disk Magnetic Disk
Magnetic Disk
 

Andere mochten auch (9)

Swap-space Management
Swap-space ManagementSwap-space Management
Swap-space Management
 
Windows 2000
Windows 2000Windows 2000
Windows 2000
 
Operating Systems: Linux in Detail
Operating Systems: Linux in DetailOperating Systems: Linux in Detail
Operating Systems: Linux in Detail
 
Operating Systems: Versions of Linux
Operating Systems: Versions of LinuxOperating Systems: Versions of Linux
Operating Systems: Versions of Linux
 
Operating Systems: File Management
Operating Systems: File ManagementOperating Systems: File Management
Operating Systems: File Management
 
Operating Systems: A History of MacOS
Operating Systems: A History of MacOSOperating Systems: A History of MacOS
Operating Systems: A History of MacOS
 
Operating Systems: Virtual Memory
Operating Systems: Virtual MemoryOperating Systems: Virtual Memory
Operating Systems: Virtual Memory
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
 
The Scrum Model
The Scrum ModelThe Scrum Model
The Scrum Model
 

Ähnlich wie Operating Systems: Device Management

Storage devices
Storage devicesStorage devices
Storage devices
Tinku12345
 
Ch14 OS
Ch14 OSCh14 OS
Ch14 OS
C.U
 
BAIT1003 Chapter 5
BAIT1003 Chapter 5BAIT1003 Chapter 5
BAIT1003 Chapter 5
limsh
 
Externalmemory 141218043503-conversion-gate02
Externalmemory 141218043503-conversion-gate02Externalmemory 141218043503-conversion-gate02
Externalmemory 141218043503-conversion-gate02
waseem aslam
 

Ähnlich wie Operating Systems: Device Management (20)

Os - device management
Os - device managementOs - device management
Os - device management
 
Types of secondary storage devices ppt
Types of secondary storage devices pptTypes of secondary storage devices ppt
Types of secondary storage devices ppt
 
Storage System and Backup Media
Storage System and Backup MediaStorage System and Backup Media
Storage System and Backup Media
 
Storage devices
Storage devicesStorage devices
Storage devices
 
Storage Management
Storage ManagementStorage Management
Storage Management
 
Ch14 OS
Ch14 OSCh14 OS
Ch14 OS
 
OSCh14
OSCh14OSCh14
OSCh14
 
OS_Ch14
OS_Ch14OS_Ch14
OS_Ch14
 
BAIT1003 Chapter 5
BAIT1003 Chapter 5BAIT1003 Chapter 5
BAIT1003 Chapter 5
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
External memory - Computer Architecture
External memory - Computer ArchitectureExternal memory - Computer Architecture
External memory - Computer Architecture
 
Externalmemory 141218043503-conversion-gate02
Externalmemory 141218043503-conversion-gate02Externalmemory 141218043503-conversion-gate02
Externalmemory 141218043503-conversion-gate02
 
Media Storage
Media StorageMedia Storage
Media Storage
 
Storage devices
Storage devicesStorage devices
Storage devices
 
secondry storage ahsan warraich
secondry storage ahsan warraichsecondry storage ahsan warraich
secondry storage ahsan warraich
 
Secondary Storage
Secondary StorageSecondary Storage
Secondary Storage
 
S tora ge devices
S tora ge devicesS tora ge devices
S tora ge devices
 
COMPONENTS OF COMPUTER SYSTEM UNIT
COMPONENTS OF COMPUTER SYSTEM UNIT  COMPONENTS OF COMPUTER SYSTEM UNIT
COMPONENTS OF COMPUTER SYSTEM UNIT
 
Floppy disk
Floppy diskFloppy disk
Floppy disk
 
Storage Media and File Organisation.pptx
Storage Media and File Organisation.pptxStorage Media and File Organisation.pptx
Storage Media and File Organisation.pptx
 

Mehr von Damian T. Gordon

Mehr von Damian T. Gordon (20)

Universal Design for Learning, Co-Designing with Students.
Universal Design for Learning, Co-Designing with Students.Universal Design for Learning, Co-Designing with Students.
Universal Design for Learning, Co-Designing with Students.
 
Introduction to Microservices
Introduction to MicroservicesIntroduction to Microservices
Introduction to Microservices
 
REST and RESTful Services
REST and RESTful ServicesREST and RESTful Services
REST and RESTful Services
 
Serverless Computing
Serverless ComputingServerless Computing
Serverless Computing
 
Cloud Identity Management
Cloud Identity ManagementCloud Identity Management
Cloud Identity Management
 
Containers and Docker
Containers and DockerContainers and Docker
Containers and Docker
 
Introduction to Cloud Computing
Introduction to Cloud ComputingIntroduction to Cloud Computing
Introduction to Cloud Computing
 
Introduction to ChatGPT
Introduction to ChatGPTIntroduction to ChatGPT
Introduction to ChatGPT
 
How to Argue Logically
How to Argue LogicallyHow to Argue Logically
How to Argue Logically
 
Evaluating Teaching: SECTIONS
Evaluating Teaching: SECTIONSEvaluating Teaching: SECTIONS
Evaluating Teaching: SECTIONS
 
Evaluating Teaching: MERLOT
Evaluating Teaching: MERLOTEvaluating Teaching: MERLOT
Evaluating Teaching: MERLOT
 
Evaluating Teaching: Anstey and Watson Rubric
Evaluating Teaching: Anstey and Watson RubricEvaluating Teaching: Anstey and Watson Rubric
Evaluating Teaching: Anstey and Watson Rubric
 
Evaluating Teaching: LORI
Evaluating Teaching: LORIEvaluating Teaching: LORI
Evaluating Teaching: LORI
 
Designing Teaching: Pause Procedure
Designing Teaching: Pause ProcedureDesigning Teaching: Pause Procedure
Designing Teaching: Pause Procedure
 
Designing Teaching: ADDIE
Designing Teaching: ADDIEDesigning Teaching: ADDIE
Designing Teaching: ADDIE
 
Designing Teaching: ASSURE
Designing Teaching: ASSUREDesigning Teaching: ASSURE
Designing Teaching: ASSURE
 
Designing Teaching: Laurilliard's Learning Types
Designing Teaching: Laurilliard's Learning TypesDesigning Teaching: Laurilliard's Learning Types
Designing Teaching: Laurilliard's Learning Types
 
Designing Teaching: Gagne's Nine Events of Instruction
Designing Teaching: Gagne's Nine Events of InstructionDesigning Teaching: Gagne's Nine Events of Instruction
Designing Teaching: Gagne's Nine Events of Instruction
 
Designing Teaching: Elaboration Theory
Designing Teaching: Elaboration TheoryDesigning Teaching: Elaboration Theory
Designing Teaching: Elaboration Theory
 
Universally Designed Learning Spaces: Some Considerations
Universally Designed Learning Spaces: Some ConsiderationsUniversally Designed Learning Spaces: Some Considerations
Universally Designed Learning Spaces: Some Considerations
 

Kürzlich hochgeladen

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Kürzlich hochgeladen (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 

Operating Systems: Device Management

  • 2.
  • 3.  The main functions of the device manager are: 1. Monitor the status of all devices, including storage drives, printers and other peripherals 2. Enforce pre-set policies on which process gets which device for how long 3. Deal with the allocation of devices to processes 4. Deal with the de-allocation of devices to processes, both at a temporary basis (e.g. when the process is interrupted) and on a permanent basis (e.g. when the process is completed).
  • 4.  Examples of devices: ◦ Keyboard ◦ Mouse ◦ Monitor ◦ Scanner ◦ Camcorder ◦ CD-ROM ◦ USB Ports ◦ WebCam ◦ Microphone ◦ Printer
  • 5.  There are three main types of devices: ◦ Dedicated Devices ◦ Shared Devices ◦ Virtual Devices
  • 7.  Dedicated Devices ◦ These are devices that are assigned to one process at a time, and the process only releases the device once it is completed. ◦ This makes sense for devices like plotters, and tape drives. ◦ The problem with this is that it means only one user is using it at a time, and it might be inefficient if the device isn’t being used 100% of the time that it is being locked by the user.
  • 9.  Shared Devices ◦ These are devices that can be shared between several processes. ◦ Considering an example like a hard disk, it is shared, but interleaving between different processes’ requests. ◦ All conflicts for device need to be resolved but pre- determined policies to decide which request is handled first.
  • 11.  Virtual Devices ◦ These are devices are a combination of Dedicated and Shared Devices. ◦ So a printer is a dedicated device, but using the spooling (queues) means it can be shared. ◦ A print job isn’t sent straight to the printer, instead it goes to the disk (spool) until it is fully prepared with all the necessary printer sequences and formatting, then it goes to the printer, ensuring that the printers (and all I/O devices) are used efficiently.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.  We’ll look at two hard disk configurations: ◦ Mobile-Head Magnetic Disk Storage ◦ Fixed-Head Magnetic Disk Storage
  • 22.  Mobile-Head Magnetic Disk Storage ◦ Both the reading(/writing) head moves and the disk spins. ◦ Usually formatted on both sides. ◦ Data is recorded on tracks.
  • 25.
  • 26.  Mobile-Head Magnetic Disk Storage  Typically there is more than one disk (platter), and they are arranged in a stack (we also call this as being part of a disk pack).  The disks are stacked on a common spindle, and have Read/Write heads on both sides.  All of the Read/Write heads are move in unison.
  • 27.  Mobile-Head Magnetic Disk Storage spindle
  • 28.  Fixed-Head Magnetic Disk Storage  Works like a CD or DVD, the disk spins and the reading head stays stationary.  Usually formatted on both sides.  Data is recorded on tracks.
  • 29. Track 1 Track 2 Track 3 Track 4 Multiple Fixed Read/Write Heads
  • 30. Track 1 Track 2 Track 3 Track 4 Multiple Fixed Read/Write Heads
  • 31.  Fixed-Head Magnetic Disk Storage  This means it’s very fast compared to a moving Read/Write head, however, it is more costly to manufacture, and it has less storage space as the tracks have to be positioned farther apart.  These are often used in space flight and aircraft applications where speed is most important.
  • 32.  In either case we may have a disk pack:
  • 37.  Disk pack: ◦ An interesting question occurs about disk packs, is it more efficient to write a series of records on one surface of a disk and then the opposite surface of that disk, followed by the next disk, and the next one, and so on? Or is better to do fill the other surface of each surface of each disk, then the next track, then the next?
  • 38.  Disk pack (Case 1):
  • 39.  Disk pack (Case 2):
  • 40.  Disk pack (Case 2):
  • 41.  Disk pack (Case 2):
  • 42.  Disk pack (Case 2):
  • 43.  Disk pack (Case 2):
  • 44.  Disk pack (Case 2):
  • 45.  Disk pack (Case 2):
  • 46.  Disk pack (Case 2): C y l i n d e r
  • 47.  Disk pack: ◦ It turns out it’s faster to fill the disks a track at a time (case 2), and this leads up to the concept of a virtual cylinder of data.
  • 48.  Disk pack: ◦ So to access a record, the device manager needs; the cylinder number, the surface number, and the sector number.
  • 49.
  • 50.  Optical Disk Storage: ◦ Because of advances in laser technology it is possible to store data optically rather than magnetically, and CDs and DVDs are examples of optical storage. ◦ Unlike magnetic disks, which typically consist of tracks as a series of concentric circles, optical disks are usually a single continuous spiral track.
  • 51.  Magnetic Disks Optical Disks
  • 52.  Optical Disk Storage:
  • 53.  Optical Disk Storage:
  • 54.  Optical Disk Storage: ◦ Another significant difference between magnetic and optical disks is that magnetic disks spin at a constant speed, so the tracks on other outer rings of magnetic disks have to have larger sectors, and those tracks nearer the centre have small tracks. ◦ Optical disks can change the speed to reading, so the sector size is the same in the outside or inside.
  • 55.  Optical Disk Storage:
  • 56.  Optical Disk Storage:
  • 57.  Optical Disk Storage: ◦ Another significant difference between magnetic and optical disks is that magnetic disks spin at a constant speed, so the tracks on other outer rings of magnetic disks have to have larger sectors, and those tracks nearer the centre have small tracks. ◦ Optical disks can change the speed to reading, so the sector size is the same in the outside or inside.
  • 58.  Optical Disk Storage: ◦ Three important performance measures are:  Data Transfer Rate  Average Access Time  Cache Size
  • 59.  Data Transfer Rate ◦ This measures the amount of data that can be read from the disk. ◦ It is typically measured in megabytes per second (MB/s).
  • 60.  Average Access Time ◦ This measures how long (on average) it takes to move the disk head to a specific place on the disk. ◦ It is typically measured in milliseconds (ms).
  • 61.  Cache Size ◦ When reading and writing to disk, sometimes the user will wish to re-read data they have just read, if so, having it in the cache saves reading it again. ◦ It is typically measured in kilobytes (KB).
  • 62.  Optical Disk Storage: ◦ To write to an optical disk, a high intensity laser beam burns indentations in the disk called pits. The pits represent zeros (0s). ◦ The unburned flat areas are called lands, and represent ones (1s).
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.  The CPU makes a lot of I/O requests.  The I/O channels work to co-ordinate the devices to synchronise the fast speed of the CPU with the slower speeds of the I/O devices.  The I/O control units are attached to several similar devices and control these devices based on instructions from the channel.
  • 69.
  • 70.  RAID is a collection of physical disk drives that can be viewed as a single logical unit by the operating system.
  • 71.  RAID works on the basis that several small-capacity disk drives are more efficient than a few large-capacity disk drives.  This is because by distributing the data among several smaller disks, the system can simultaneously access the requested data from the multiple drives, resulting in improved I/O performance.
  • 72.
  • 73.  A RAID configuration could have five disk drives connected to a specialized controller.  The controller houses the software that coordinates the transfer of data from the disks in the array to a large-capacity disk connected to the I/O subsystem.  This configuration is viewed by the operating system as a single large capacity disk, so that no software changes are needed.
  • 74.  A RAID configuration could have five disk drives connected to a specialized controller.  The controller houses the software that coordinates the transfer of data from the disks in the array to a large-capacity disk connected to the I/O subsystem.  This configuration is viewed by the operating system as a single large capacity disk, so that no software changes are needed.
  • 75.
  • 76.  Data is divided into segments called strips, which are distributed across the disks in  the array.  A set of consecutive strips across disks is called a stripe and the whole process is called striping.  The previous figure shows how data strips are distributed in an array of four disks
  • 78.  There are three main types of devices: ◦ Dedicated Devices ◦ Shared Devices ◦ Virtual Devices
  • 79.  We’ll look at two hard disk configurations: ◦ Mobile-Head Magnetic Disk Storage ◦ Fixed-Head Magnetic Disk Storage
  • 80.  Writing to disk: ◦ One surface at a time (Case 1) ◦ One track at a time (Case 2)
  • 81.  Magnetic Disks Optical Disks
  • 82.  Magnetic Disks Optical Disks
  • 83.  Optical Disk Storage: ◦ Three important performance measures are:  Data Transfer Rate - amount of data that can be read from the disk.  Average Access Time - how long (on average) it takes to move the disk head to a specific place on the disk.  Cache Size – measures re-read ability.