SlideShare a Scribd company logo
1 of 21
Secondary Storage
:Disk structure
Prepared By: Mr. Sangram A. Patil
Assistant Professor PVPIT,Budhgaon
Secondary Storage
 Secondary storage devices are those devices whose memory is non volatile
 Secondary storage is also called auxiliary storage.
 Secondary storage is less expensive as compared to primary memory like RAMs.
 The speed of the secondary storage is also lesser than that of primary storage.
 Hence, the data which is less frequently accessed is kept in the secondary storage.
 A few examples are magnetic disks, magnetic tapes, removable thumb drives etc.
Magnetic Disk Structure
 In modern computers, most of the secondary storage is in the form of magnetic disks.
 Hence, knowing the structure of a magnetic disk is necessary to understand how the
data in the disk is accessed by the computer.
 Traditional magnetic disks have the following basic structure:
 One or more platters in the form of disks covered with magnetic media.
Hard disk platters are made of rigid metal, while "floppy" disks are made of more
flexible plastic.
 Each platter has two working surfaces.
 Each working surface is divided into a number of concentric rings called tracks.
 The collection of all tracks that are the same distance from the edge of the platter, ( i.e.
all tracks immediately above one another in the following diagram ) is called a cylinder.
 Each track is further divided into sectors, traditionally containing 512 bytes of data
each, although some modern disks occasionally use larger sector sizes.
 The data on a hard drive is read by read-write heads. The standard configuration (
shown below ) uses one head per surface, each on a separate arm, and controlled
by a common arm assembly which moves all heads simultaneously from one
cylinder to another.
 The storage capacity of a traditional disk drive is equal to the number of heads ( i.e.
the number of working surfaces ), times the number of tracks per surface, times the
number of sectors per track, times the number of bytes per sector.
 A particular physical block of data is specified by providing the head-sector-
cylinder number at which it is located.
Magnetic Disk Structure
 In operation the disk rotates at high speed, such as 7200 rpm
 The rate at which data can be transferred from the disk to the computer is
composed of several steps:
1. The positioning time, a.k.a. the seek time or random access time is the time
required to move the heads from one cylinder to another, and for the heads to
settle down after the move.
2. The rotational latency is the amount of time required for the desired sector to
rotate around and come under the read-write head.
3. The transfer rate, which is the time required to move the data electronically from
the disk to the computer
Magnetic Disk Structure
 Disk heads "fly" over the surface on a very thin cushion of air.
 If they should accidentally contact the disk, then a head crash occurs, which may
or may not permanently damage the disk or even destroy it completely.
 For this reason it is normal to park the disk heads when turning a computer off,
which means to move the heads off the disk or to an area of the disk where there is
no data stored.
 Disk drives are connected to the computer via a cable known as the I/O Bus.
 The host controller is at the computer end of the I/O bus, and the disk
controller is built into the disk itself
Disk Scheduling
 Disk transfer speeds are limited primarily by seek times and rotational
latency. When multiple requests are to be processed there is also some inherent
delay in waiting for other requests to be processed.
 Bandwidth is measured by the amount of data transferred divided by the total
amount of time from the first request being made to the last transfer being
completed.
 Both bandwidth and access time can be improved by processing requests in a
good order.
 Disk requests include the disk address, memory address, number of sectors to
transfer, and whether the request is for reading or writing.
1. FCFS Scheduling
 This algorithm performs requests in the same order asked by the system. Let's take
an example where the queue has the following requests with cylinder numbers as
follows:
 98, 183, 37, 122, 14, 124, 65, 67
 Assume the head is initially at cylinder 53. The head moves in the given order in
the queue i.e., 53→98→183→...→67.
 Total no of track movements
=(98-53)+(183-98)+(183-37)+(122-37)+(122-14)+(124-14)+(124-65)+(67-65)
=45+85+146+95+108+110+59+2
=650
2. SSTF Scheduling
 Here the position which is closest to the current head position is chosen first.
Consider the previous example where disk queue looks like,
98, 183, 37, 122, 14, 124, 65, 67
 Assume the head is initially at cylinder 53. The next closest cylinder to 53 is 65,
and then the next nearest one is 67, then 37, 14, so on.
 Shortest Seek Time First scheduling is more efficient, but may lead to starvation if
a constant stream of requests arrives for the same general area of the disk.
2. SSTF Scheduling
 Total read write head movement
=(65-53)+(67-65)+(67-37)+(37-14)+(98-14)+(122-98)+(124-122)+(183-124)
=12+2+30+23+84+24+2+59
=236
3. SCAN Scheduling
 This algorithm is also called the elevator algorithm because of it's behavior. Here,
first the head moves in a direction (say backward) and covers all the requests in the
path. Then it moves in the opposite direction and covers the remaining requests in
the path. This behavior is similar to that of an elevator. Let's take the previous
example,
 98, 183, 37, 122, 14, 124, 65, 67
 Assume the head is initially at cylinder 53. The head moves in backward direction
and accesses 37 and 14. Then it goes in the opposite direction and accesses the
cylinders as they come in the path.
 Total read write head movement
=(53-0)+(183-0)
=236
4. C-SCAN Scheduling
 The Circular-SCAN algorithm improves upon SCAN by treating all requests in a
circular queue fashion - Once the head reaches the end of the disk, it returns to
the other end without processing any requests, and then starts again from the
beginning of the disk:
 Total read write head movement
=(199-53)+(199-0)+(37-0)
=146+199+37
=382
5 LOOK Scheduling
 LOOK scheduling improves upon SCAN by looking ahead at the queue of
pending requests, and not moving the heads any farther towards the end of the
disk than is necessary. The following diagram illustrates the circular form of
LOOK:
 Total read write head movement
=(183-53)+(183-14)
=130+169
=299
C look Scheduling

More Related Content

What's hot

Operating System-Ch8 memory management
Operating System-Ch8 memory managementOperating System-Ch8 memory management
Operating System-Ch8 memory managementSyaiful Ahdan
 
Operating Systems - memory management
Operating Systems - memory managementOperating Systems - memory management
Operating Systems - memory managementMukesh Chinta
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System ImplementationWayne Jones Jnr
 
Chapter 10 Operating Systems silberschatz
Chapter 10 Operating Systems silberschatzChapter 10 Operating Systems silberschatz
Chapter 10 Operating Systems silberschatzGiulianoRanauro
 
Stack organization
Stack organizationStack organization
Stack organizationchauhankapil
 
Parallel Processors (SIMD)
Parallel Processors (SIMD) Parallel Processors (SIMD)
Parallel Processors (SIMD) Ali Raza
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 ReliabilityAli Usman
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43myrajendra
 
Multiprocessor
MultiprocessorMultiprocessor
MultiprocessorA B Shinde
 
Operating Systems: Device Management
Operating Systems: Device ManagementOperating Systems: Device Management
Operating Systems: Device ManagementDamian T. Gordon
 

What's hot (20)

Operating System-Ch8 memory management
Operating System-Ch8 memory managementOperating System-Ch8 memory management
Operating System-Ch8 memory management
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Swapping | Computer Science
Swapping | Computer ScienceSwapping | Computer Science
Swapping | Computer Science
 
Operating Systems - memory management
Operating Systems - memory managementOperating Systems - memory management
Operating Systems - memory management
 
Chapter 11 - File System Implementation
Chapter 11 - File System ImplementationChapter 11 - File System Implementation
Chapter 11 - File System Implementation
 
Memory management
Memory managementMemory management
Memory management
 
Opetating System Memory management
Opetating System Memory managementOpetating System Memory management
Opetating System Memory management
 
Chapter 10 Operating Systems silberschatz
Chapter 10 Operating Systems silberschatzChapter 10 Operating Systems silberschatz
Chapter 10 Operating Systems silberschatz
 
Stack organization
Stack organizationStack organization
Stack organization
 
Parallel Processors (SIMD)
Parallel Processors (SIMD) Parallel Processors (SIMD)
Parallel Processors (SIMD)
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 Reliability
 
Cs8493 unit 1
Cs8493 unit 1Cs8493 unit 1
Cs8493 unit 1
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2
 
5 Process Scheduling
5 Process Scheduling5 Process Scheduling
5 Process Scheduling
 
Operating Systems: Device Management
Operating Systems: Device ManagementOperating Systems: Device Management
Operating Systems: Device Management
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 

Similar to Disk structure (20)

Disk Management
Disk ManagementDisk Management
Disk Management
 
7 disk managment
7 disk managment7 disk managment
7 disk managment
 
Sucet os module_5_notes
Sucet os module_5_notesSucet os module_5_notes
Sucet os module_5_notes
 
Ch12
Ch12Ch12
Ch12
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Disk Scheduling
Disk SchedulingDisk Scheduling
Disk Scheduling
 
Os(18 cs43) module5
Os(18 cs43) module5Os(18 cs43) module5
Os(18 cs43) module5
 
unit-4.pdf
unit-4.pdfunit-4.pdf
unit-4.pdf
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
I/O structure slide by Rajalakshmi SKC
I/O structure slide by Rajalakshmi SKCI/O structure slide by Rajalakshmi SKC
I/O structure slide by Rajalakshmi SKC
 
CH10.pdf
CH10.pdfCH10.pdf
CH10.pdf
 
Viknesh
VikneshViknesh
Viknesh
 
Cs8493 unit 4
Cs8493 unit 4Cs8493 unit 4
Cs8493 unit 4
 
Os
OsOs
Os
 
Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage Structure
 
OSCh14
OSCh14OSCh14
OSCh14
 
OS_Ch14
OS_Ch14OS_Ch14
OS_Ch14
 
Ch14 OS
Ch14 OSCh14 OS
Ch14 OS
 
Ch10
Ch10Ch10
Ch10
 
Mass storagestructure pre-final-formatting
Mass storagestructure pre-final-formattingMass storagestructure pre-final-formatting
Mass storagestructure pre-final-formatting
 

More from sangrampatil81

Directory implementation and allocation methods
Directory implementation and allocation methodsDirectory implementation and allocation methods
Directory implementation and allocation methodssangrampatil81
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithmssangrampatil81
 
Methods for handling deadlock
Methods for handling deadlockMethods for handling deadlock
Methods for handling deadlocksangrampatil81
 
Classical problems of process synchronization
Classical problems of process synchronizationClassical problems of process synchronization
Classical problems of process synchronizationsangrampatil81
 
Services and system calls
Services and system callsServices and system calls
Services and system callssangrampatil81
 
Operating system structure
Operating system structureOperating system structure
Operating system structuresangrampatil81
 
Operating system deign and implementation
Operating system deign and implementationOperating system deign and implementation
Operating system deign and implementationsangrampatil81
 
Pointer to array and structure
Pointer to array and structurePointer to array and structure
Pointer to array and structuresangrampatil81
 
Pointer arithmetic in c
Pointer arithmetic in c Pointer arithmetic in c
Pointer arithmetic in c sangrampatil81
 

More from sangrampatil81 (20)

Deadlock
DeadlockDeadlock
Deadlock
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
virtual memory
virtual memoryvirtual memory
virtual memory
 
IO hardware
IO hardwareIO hardware
IO hardware
 
File system structure
File system structureFile system structure
File system structure
 
File management
File managementFile management
File management
 
Directory structure
Directory structureDirectory structure
Directory structure
 
Directory implementation and allocation methods
Directory implementation and allocation methodsDirectory implementation and allocation methods
Directory implementation and allocation methods
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
Methods for handling deadlock
Methods for handling deadlockMethods for handling deadlock
Methods for handling deadlock
 
Semaphore
SemaphoreSemaphore
Semaphore
 
Monitors
MonitorsMonitors
Monitors
 
Classical problems of process synchronization
Classical problems of process synchronizationClassical problems of process synchronization
Classical problems of process synchronization
 
System programs
System programsSystem programs
System programs
 
System programs
System programsSystem programs
System programs
 
Services and system calls
Services and system callsServices and system calls
Services and system calls
 
Operating system structure
Operating system structureOperating system structure
Operating system structure
 
Operating system deign and implementation
Operating system deign and implementationOperating system deign and implementation
Operating system deign and implementation
 
Pointer to array and structure
Pointer to array and structurePointer to array and structure
Pointer to array and structure
 
Pointer arithmetic in c
Pointer arithmetic in c Pointer arithmetic in c
Pointer arithmetic in c
 

Recently uploaded

Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxnada99848
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 

Recently uploaded (20)

Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptx
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 

Disk structure

  • 1. Secondary Storage :Disk structure Prepared By: Mr. Sangram A. Patil Assistant Professor PVPIT,Budhgaon
  • 2. Secondary Storage  Secondary storage devices are those devices whose memory is non volatile  Secondary storage is also called auxiliary storage.  Secondary storage is less expensive as compared to primary memory like RAMs.  The speed of the secondary storage is also lesser than that of primary storage.  Hence, the data which is less frequently accessed is kept in the secondary storage.  A few examples are magnetic disks, magnetic tapes, removable thumb drives etc.
  • 3. Magnetic Disk Structure  In modern computers, most of the secondary storage is in the form of magnetic disks.  Hence, knowing the structure of a magnetic disk is necessary to understand how the data in the disk is accessed by the computer.  Traditional magnetic disks have the following basic structure:  One or more platters in the form of disks covered with magnetic media. Hard disk platters are made of rigid metal, while "floppy" disks are made of more flexible plastic.  Each platter has two working surfaces.  Each working surface is divided into a number of concentric rings called tracks.  The collection of all tracks that are the same distance from the edge of the platter, ( i.e. all tracks immediately above one another in the following diagram ) is called a cylinder.
  • 4.
  • 5.  Each track is further divided into sectors, traditionally containing 512 bytes of data each, although some modern disks occasionally use larger sector sizes.  The data on a hard drive is read by read-write heads. The standard configuration ( shown below ) uses one head per surface, each on a separate arm, and controlled by a common arm assembly which moves all heads simultaneously from one cylinder to another.  The storage capacity of a traditional disk drive is equal to the number of heads ( i.e. the number of working surfaces ), times the number of tracks per surface, times the number of sectors per track, times the number of bytes per sector.  A particular physical block of data is specified by providing the head-sector- cylinder number at which it is located.
  • 6. Magnetic Disk Structure  In operation the disk rotates at high speed, such as 7200 rpm  The rate at which data can be transferred from the disk to the computer is composed of several steps: 1. The positioning time, a.k.a. the seek time or random access time is the time required to move the heads from one cylinder to another, and for the heads to settle down after the move. 2. The rotational latency is the amount of time required for the desired sector to rotate around and come under the read-write head. 3. The transfer rate, which is the time required to move the data electronically from the disk to the computer
  • 7. Magnetic Disk Structure  Disk heads "fly" over the surface on a very thin cushion of air.  If they should accidentally contact the disk, then a head crash occurs, which may or may not permanently damage the disk or even destroy it completely.  For this reason it is normal to park the disk heads when turning a computer off, which means to move the heads off the disk or to an area of the disk where there is no data stored.  Disk drives are connected to the computer via a cable known as the I/O Bus.  The host controller is at the computer end of the I/O bus, and the disk controller is built into the disk itself
  • 8. Disk Scheduling  Disk transfer speeds are limited primarily by seek times and rotational latency. When multiple requests are to be processed there is also some inherent delay in waiting for other requests to be processed.  Bandwidth is measured by the amount of data transferred divided by the total amount of time from the first request being made to the last transfer being completed.  Both bandwidth and access time can be improved by processing requests in a good order.  Disk requests include the disk address, memory address, number of sectors to transfer, and whether the request is for reading or writing.
  • 9. 1. FCFS Scheduling  This algorithm performs requests in the same order asked by the system. Let's take an example where the queue has the following requests with cylinder numbers as follows:  98, 183, 37, 122, 14, 124, 65, 67  Assume the head is initially at cylinder 53. The head moves in the given order in the queue i.e., 53→98→183→...→67.
  • 10.  Total no of track movements =(98-53)+(183-98)+(183-37)+(122-37)+(122-14)+(124-14)+(124-65)+(67-65) =45+85+146+95+108+110+59+2 =650
  • 11. 2. SSTF Scheduling  Here the position which is closest to the current head position is chosen first. Consider the previous example where disk queue looks like, 98, 183, 37, 122, 14, 124, 65, 67  Assume the head is initially at cylinder 53. The next closest cylinder to 53 is 65, and then the next nearest one is 67, then 37, 14, so on.  Shortest Seek Time First scheduling is more efficient, but may lead to starvation if a constant stream of requests arrives for the same general area of the disk.
  • 13.  Total read write head movement =(65-53)+(67-65)+(67-37)+(37-14)+(98-14)+(122-98)+(124-122)+(183-124) =12+2+30+23+84+24+2+59 =236
  • 14. 3. SCAN Scheduling  This algorithm is also called the elevator algorithm because of it's behavior. Here, first the head moves in a direction (say backward) and covers all the requests in the path. Then it moves in the opposite direction and covers the remaining requests in the path. This behavior is similar to that of an elevator. Let's take the previous example,  98, 183, 37, 122, 14, 124, 65, 67  Assume the head is initially at cylinder 53. The head moves in backward direction and accesses 37 and 14. Then it goes in the opposite direction and accesses the cylinders as they come in the path.
  • 15.
  • 16.  Total read write head movement =(53-0)+(183-0) =236
  • 17. 4. C-SCAN Scheduling  The Circular-SCAN algorithm improves upon SCAN by treating all requests in a circular queue fashion - Once the head reaches the end of the disk, it returns to the other end without processing any requests, and then starts again from the beginning of the disk:
  • 18.  Total read write head movement =(199-53)+(199-0)+(37-0) =146+199+37 =382
  • 19. 5 LOOK Scheduling  LOOK scheduling improves upon SCAN by looking ahead at the queue of pending requests, and not moving the heads any farther towards the end of the disk than is necessary. The following diagram illustrates the circular form of LOOK:
  • 20.  Total read write head movement =(183-53)+(183-14) =130+169 =299