SlideShare una empresa de Scribd logo
1 de 25
PRESENTED BY:- NEERAJ BAGHEL
SONAM SINGH
R.B.S ENGINEERING
TECHNICAL CAMPUS
Disk Scheduling
2
Topics Of Discussion
• Introduction
• FCFS scheduling
• SSTF scheduling
• SCAN scheduling
• C-SCAN scheduling
• LOOK and C-LOOK scheduling
3
PURPOSE
• The purpose of this material is to provide one
with help on disk scheduling algorithm.
Hopefully with this,one will be able to get a
stronger graps of disk scheduling algorithm do.
4
Disk Scheduling
• The operating system is responsible for using
hardware efficiently — for the disk drives, this means
having a fast access time and disk bandwidth.
• Access time has two major components:
– Seek time is the time for the disk are to move the heads to
the cylinder containing the desired sector.
– Rotational latency is the additional time waiting for the disk
to rotate the desired sector to the disk head.
• Minimize seek time ≈ seek distance.
• Disk bandwidth is the total number of bytes
transferred, divided by the total time between the first
request for service and the completion of last transfer.
5
Disk Scheduling
• There are many sources of disk I/O request:
– Os
– System processes
– Users processes
• I/O request includes input/output mode, disk address,
memory address, number of sectors to transfer.
• OS maintains queue of requests, per disk or device.
• Idle disk can immediately work on I/O request, busy
disk means work must queue:
– Optimization algorithms only make sense when a queue
exists.
6
Components of Disk I/O Transfer
7
Disk Scheduling Algorithms
• Note that drive controllers have small buffers and can
manage a queue of I/O requests (of varying “depth”).
• Several algorithms exist to schedule the servicing of
disk I/O requests.
• The analysis is true for one or many platters.
• We illustrate them with a I/O request queue
(cylinders are between 0-199):
queue = 98, 183, 37, 122, 14, 124, 65, 67
head starts at 53
8
Types Of Disk Scheduling Algorithm
• First Come First Serve
• Shortest Seek Time First
• Elevator(SCAN)
• Circular Scan(C-Scan)
• Look
• C-Look
9
First Come First Serve (FCFS(
• Handle I/O requests sequentially.
• Fair to all processes.
• Approaches random scheduling in
performance if there are many
processes/requests.
• Suffers from global zigzag effect.
10
First Come First Serve (FCFS(
Illustration shows total head movement of 640 cylinders.
11
Shortest Seek Time First (SSTF(
• Selects the request with the minimum seek time
from the current head position.
• Also called Shortest Seek Distance First
(SSDF) – It’s easier to compute distances.
• It’s biased in favor of the middle cylinders
requests.
• SSTF scheduling is a form of SJF scheduling;
may cause starvation of some requests.
12
Shortest Seek Time First (SSTF(
Illustration shows total head movement of 236 cylinders.
13
Scan
• The disk arm starts at one end of the disk, and
moves toward the other end, servicing requests
until it gets to the other end of the disk, where
the head movement is reversed and servicing
continues.
• It moves in both directions until both ends.
• Tends to stay more at the ends so more fair to
the extreme cylinder requests.
14
Scan
Illustration shows total head movement of 208 cylinders.
15
Look
• The disk arm starts at the first I/O request on
the disk, and moves toward the last I/O request
on the other end, servicing requests until it gets
to the other extreme I/O request on the disk,
where the head movement is reversed and
servicing continues.
• It moves in both directions until both last I/O
requests; more inclined to serve the middle
cylinder requests.
16
C-Scan
• The head moves from one end of the disk to the
other, servicing requests as it goes. When it
reaches the other end, however, it immediately
returns to the beginning of the disk, without
servicing any requests on the return trip.
• Treats the cylinders as a circular list that wraps
around from the last cylinder to the first one.
• Provides a more uniform wait time than SCAN;
it treats all cylinders in the same manner.
17
C-Scan
18
C-Look
• Look version of C-Scan.
• Arm only goes as far as the last request in each
direction, then reverses direction immediately,
without first going all the way to the end of the
disk.
• In general, Circular versions are more fair but
pay with a larger total seek time.
• Scan versions have a larger total seek time than
the corresponding Look versions.
19
C-Look
20 A. Frank - P. Weisberg
Elevator Algorithms
C-LookC-Scan
Scan Look
Go until the
last request
Go until the
last cylinder
Service in only
one direction
Service both
directions
Direction
Go until
• Algorithms based on the common elevator principle.
• Four combinations of Elevator algorithms:
–Service in both directions or in only one direction.
–Go until last cylinder or until last I/O request.
21
Another Example
A. Frank - P. Weisberg
LOOK C-LOOK
22
Other Disk Scheduling Policies
• Pickup
– A combination of FCFS and Look.
– Goes to next I/O request by FCFS but services all
existing requests on the way to it.
• Priority
– Goal is not to optimize disk use but to meet other
objectives.
– Short batch jobs may have higher priority.
– Provide good interactive response time.
23
Selecting a Disk-Scheduling Algorithm
• Performance depends on the number and types
of requests.
• Requests for disk service can be influenced by
the file-allocation method.
• The disk-scheduling algorithm should be
written as a separate module of the operating
system, allowing it to be replaced with a
different algorithm if necessary.
24
Selecting a Disk-Scheduling Algorithm
• With low load on the disk, It’s FCFS anyway.
• SSTF is common and has a natural appeal – good for
medium disk load.
• SCAN and C-SCAN perform better for systems that
place a heavy load on the disk; Less starvation.
• Performance depends on number and types of requests.
• Requests for disk service can be influenced by the file-
allocation method and metadata layout.
• Either SSTF or LOOK (as part of an Elevator package)
is a reasonable choice for the default algorithm.
25
Thank You

Más contenido relacionado

La actualidad más candente

Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage StructureVimalanathan D
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43myrajendra
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process ConceptsMukesh Chinta
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSvampugani
 
Process management os concept
Process management os conceptProcess management os concept
Process management os conceptpriyadeosarkar91
 
Process management in os
Process management in osProcess management in os
Process management in osMiong Lazaro
 
Overview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesOverview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesMeghaj Mallick
 
Os Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual MemoryOs Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual Memorysgpraju
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentationusmankiyani1
 
Symbol table in compiler Design
Symbol table in compiler DesignSymbol table in compiler Design
Symbol table in compiler DesignKuppusamy P
 

La actualidad más candente (20)

Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage Structure
 
Process synchronization
Process synchronizationProcess synchronization
Process synchronization
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
 
Memory management
Memory managementMemory management
Memory management
 
Process state in OS
Process state in OSProcess state in OS
Process state in OS
 
Compilers
CompilersCompilers
Compilers
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Deadlock ppt
Deadlock ppt Deadlock ppt
Deadlock ppt
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Process management os concept
Process management os conceptProcess management os concept
Process management os concept
 
Process management in os
Process management in osProcess management in os
Process management in os
 
Disk structure
Disk structureDisk structure
Disk structure
 
Overview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesOverview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed Databases
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Os Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual MemoryOs Swapping, Paging, Segmentation and Virtual Memory
Os Swapping, Paging, Segmentation and Virtual Memory
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 
Symbol table in compiler Design
Symbol table in compiler DesignSymbol table in compiler Design
Symbol table in compiler Design
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
File allocation methods (1)
File allocation methods (1)File allocation methods (1)
File allocation methods (1)
 

Similar a Disk scheduling

Disk Scheduling Algorithms
Disk Scheduling AlgorithmsDisk Scheduling Algorithms
Disk Scheduling AlgorithmsAdarsh Kr Sinha
 
Disk scheduling geekssay.com
Disk scheduling geekssay.comDisk scheduling geekssay.com
Disk scheduling geekssay.comHemant Gautam
 
Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52myrajendra
 
Disk scheduling
Disk schedulingDisk scheduling
Disk schedulingniralim40
 
Disk Management through the Computer Management
Disk Management through the Computer ManagementDisk Management through the Computer Management
Disk Management through the Computer ManagementAnshGoyal32
 
disk sechduling
disk sechdulingdisk sechduling
disk sechdulinggopi7
 
Explained Disk Scheduling Algo ...
Explained Disk Scheduling Algo ...Explained Disk Scheduling Algo ...
Explained Disk Scheduling Algo ...Adarsh Kr Sinha
 
secondary storage structure :disk arm scheduling in OS
secondary storage structure :disk arm scheduling in OSsecondary storage structure :disk arm scheduling in OS
secondary storage structure :disk arm scheduling in OSPrincePrajapati22
 
Disk scheduling algo os
Disk scheduling algo osDisk scheduling algo os
Disk scheduling algo osRahul Narang
 
Mass storage systems presentation operating systems
Mass storage systems presentation operating systemsMass storage systems presentation operating systems
Mass storage systems presentation operating systemsnight1ng4ale
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49myrajendra
 

Similar a Disk scheduling (20)

Disk Scheduling Algorithms
Disk Scheduling AlgorithmsDisk Scheduling Algorithms
Disk Scheduling Algorithms
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Disk scheduling geekssay.com
Disk scheduling geekssay.comDisk scheduling geekssay.com
Disk scheduling geekssay.com
 
Disk scheduling algorithm.52
Disk scheduling algorithm.52Disk scheduling algorithm.52
Disk scheduling algorithm.52
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Ch9 mass storage systems
Ch9   mass storage systemsCh9   mass storage systems
Ch9 mass storage systems
 
Disk Management through the Computer Management
Disk Management through the Computer ManagementDisk Management through the Computer Management
Disk Management through the Computer Management
 
disk sechduling
disk sechdulingdisk sechduling
disk sechduling
 
Disk Management
Disk ManagementDisk Management
Disk Management
 
Disk Scheduling.pptx
Disk Scheduling.pptxDisk Scheduling.pptx
Disk Scheduling.pptx
 
Explained Disk Scheduling Algo ...
Explained Disk Scheduling Algo ...Explained Disk Scheduling Algo ...
Explained Disk Scheduling Algo ...
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
secondary storage structure :disk arm scheduling in OS
secondary storage structure :disk arm scheduling in OSsecondary storage structure :disk arm scheduling in OS
secondary storage structure :disk arm scheduling in OS
 
Disk scheduling algo os
Disk scheduling algo osDisk scheduling algo os
Disk scheduling algo os
 
18CSC205J-UNIT-5.pptx
18CSC205J-UNIT-5.pptx18CSC205J-UNIT-5.pptx
18CSC205J-UNIT-5.pptx
 
Operating system
Operating systemOperating system
Operating system
 
Device Management
Device ManagementDevice Management
Device Management
 
7 disk managment
7 disk managment7 disk managment
7 disk managment
 
Mass storage systems presentation operating systems
Mass storage systems presentation operating systemsMass storage systems presentation operating systems
Mass storage systems presentation operating systems
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49
 

Más de NEERAJ BAGHEL

Generating super resolution images using transformers
Generating super resolution images using transformersGenerating super resolution images using transformers
Generating super resolution images using transformersNEERAJ BAGHEL
 
Mtech Fourth progress presentation
Mtech Fourth progress presentationMtech Fourth progress presentation
Mtech Fourth progress presentationNEERAJ BAGHEL
 
M.tech Third progress Presentation
M.tech Third progress PresentationM.tech Third progress Presentation
M.tech Third progress PresentationNEERAJ BAGHEL
 
Hierarchical structure adaptive
Hierarchical structure adaptiveHierarchical structure adaptive
Hierarchical structure adaptiveNEERAJ BAGHEL
 
Mtech Second progresspresentation ON VIDEO SUMMARIZATION
Mtech Second progresspresentation ON VIDEO SUMMARIZATIONMtech Second progresspresentation ON VIDEO SUMMARIZATION
Mtech Second progresspresentation ON VIDEO SUMMARIZATIONNEERAJ BAGHEL
 
Unsupervised object-level video summarization with online motion auto-encoder
Unsupervised object-level video summarization with online motion auto-encoderUnsupervised object-level video summarization with online motion auto-encoder
Unsupervised object-level video summarization with online motion auto-encoderNEERAJ BAGHEL
 
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATION
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATIONMtech First progress PRESENTATION ON VIDEO SUMMARIZATION
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATIONNEERAJ BAGHEL
 
Host rank:Exploiting the Hierarchical Structure for Link Analysis
Host rank:Exploiting the Hierarchical Structure for Link AnalysisHost rank:Exploiting the Hierarchical Structure for Link Analysis
Host rank:Exploiting the Hierarchical Structure for Link AnalysisNEERAJ BAGHEL
 
TVSum: Summarizing Web Videos Using Titles
TVSum: Summarizing Web Videos Using TitlesTVSum: Summarizing Web Videos Using Titles
TVSum: Summarizing Web Videos Using TitlesNEERAJ BAGHEL
 
Query focused video summarization
Query focused video summarizationQuery focused video summarization
Query focused video summarizationNEERAJ BAGHEL
 
Traffic behavior of local area network based on
Traffic behavior of local area network based onTraffic behavior of local area network based on
Traffic behavior of local area network based onNEERAJ BAGHEL
 
A Framework For Dynamic Hand Gesture Recognition Using Key Frames Extraction
A Framework For Dynamic Hand Gesture Recognition Using Key Frames ExtractionA Framework For Dynamic Hand Gesture Recognition Using Key Frames Extraction
A Framework For Dynamic Hand Gesture Recognition Using Key Frames ExtractionNEERAJ BAGHEL
 
Fingerprint recognition
Fingerprint recognitionFingerprint recognition
Fingerprint recognitionNEERAJ BAGHEL
 
SMOWSER (A VOICE BASED BROWSER)
SMOWSER (A VOICE BASED BROWSER)SMOWSER (A VOICE BASED BROWSER)
SMOWSER (A VOICE BASED BROWSER)NEERAJ BAGHEL
 

Más de NEERAJ BAGHEL (16)

Generating super resolution images using transformers
Generating super resolution images using transformersGenerating super resolution images using transformers
Generating super resolution images using transformers
 
Mtech Fourth progress presentation
Mtech Fourth progress presentationMtech Fourth progress presentation
Mtech Fourth progress presentation
 
M.tech Third progress Presentation
M.tech Third progress PresentationM.tech Third progress Presentation
M.tech Third progress Presentation
 
Latex intro
Latex introLatex intro
Latex intro
 
Hierarchical structure adaptive
Hierarchical structure adaptiveHierarchical structure adaptive
Hierarchical structure adaptive
 
Mtech Second progresspresentation ON VIDEO SUMMARIZATION
Mtech Second progresspresentation ON VIDEO SUMMARIZATIONMtech Second progresspresentation ON VIDEO SUMMARIZATION
Mtech Second progresspresentation ON VIDEO SUMMARIZATION
 
Unsupervised object-level video summarization with online motion auto-encoder
Unsupervised object-level video summarization with online motion auto-encoderUnsupervised object-level video summarization with online motion auto-encoder
Unsupervised object-level video summarization with online motion auto-encoder
 
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATION
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATIONMtech First progress PRESENTATION ON VIDEO SUMMARIZATION
Mtech First progress PRESENTATION ON VIDEO SUMMARIZATION
 
Host rank:Exploiting the Hierarchical Structure for Link Analysis
Host rank:Exploiting the Hierarchical Structure for Link AnalysisHost rank:Exploiting the Hierarchical Structure for Link Analysis
Host rank:Exploiting the Hierarchical Structure for Link Analysis
 
TVSum: Summarizing Web Videos Using Titles
TVSum: Summarizing Web Videos Using TitlesTVSum: Summarizing Web Videos Using Titles
TVSum: Summarizing Web Videos Using Titles
 
Query focused video summarization
Query focused video summarizationQuery focused video summarization
Query focused video summarization
 
Traffic behavior of local area network based on
Traffic behavior of local area network based onTraffic behavior of local area network based on
Traffic behavior of local area network based on
 
A Framework For Dynamic Hand Gesture Recognition Using Key Frames Extraction
A Framework For Dynamic Hand Gesture Recognition Using Key Frames ExtractionA Framework For Dynamic Hand Gesture Recognition Using Key Frames Extraction
A Framework For Dynamic Hand Gesture Recognition Using Key Frames Extraction
 
Fingerprint recognition
Fingerprint recognitionFingerprint recognition
Fingerprint recognition
 
SMOWSER (A VOICE BASED BROWSER)
SMOWSER (A VOICE BASED BROWSER)SMOWSER (A VOICE BASED BROWSER)
SMOWSER (A VOICE BASED BROWSER)
 
Itvv project ppt
Itvv project pptItvv project ppt
Itvv project ppt
 

Último

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 

Último (20)

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 

Disk scheduling

  • 1. PRESENTED BY:- NEERAJ BAGHEL SONAM SINGH R.B.S ENGINEERING TECHNICAL CAMPUS Disk Scheduling
  • 2. 2 Topics Of Discussion • Introduction • FCFS scheduling • SSTF scheduling • SCAN scheduling • C-SCAN scheduling • LOOK and C-LOOK scheduling
  • 3. 3 PURPOSE • The purpose of this material is to provide one with help on disk scheduling algorithm. Hopefully with this,one will be able to get a stronger graps of disk scheduling algorithm do.
  • 4. 4 Disk Scheduling • The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk bandwidth. • Access time has two major components: – Seek time is the time for the disk are to move the heads to the cylinder containing the desired sector. – Rotational latency is the additional time waiting for the disk to rotate the desired sector to the disk head. • Minimize seek time ≈ seek distance. • Disk bandwidth is the total number of bytes transferred, divided by the total time between the first request for service and the completion of last transfer.
  • 5. 5 Disk Scheduling • There are many sources of disk I/O request: – Os – System processes – Users processes • I/O request includes input/output mode, disk address, memory address, number of sectors to transfer. • OS maintains queue of requests, per disk or device. • Idle disk can immediately work on I/O request, busy disk means work must queue: – Optimization algorithms only make sense when a queue exists.
  • 6. 6 Components of Disk I/O Transfer
  • 7. 7 Disk Scheduling Algorithms • Note that drive controllers have small buffers and can manage a queue of I/O requests (of varying “depth”). • Several algorithms exist to schedule the servicing of disk I/O requests. • The analysis is true for one or many platters. • We illustrate them with a I/O request queue (cylinders are between 0-199): queue = 98, 183, 37, 122, 14, 124, 65, 67 head starts at 53
  • 8. 8 Types Of Disk Scheduling Algorithm • First Come First Serve • Shortest Seek Time First • Elevator(SCAN) • Circular Scan(C-Scan) • Look • C-Look
  • 9. 9 First Come First Serve (FCFS( • Handle I/O requests sequentially. • Fair to all processes. • Approaches random scheduling in performance if there are many processes/requests. • Suffers from global zigzag effect.
  • 10. 10 First Come First Serve (FCFS( Illustration shows total head movement of 640 cylinders.
  • 11. 11 Shortest Seek Time First (SSTF( • Selects the request with the minimum seek time from the current head position. • Also called Shortest Seek Distance First (SSDF) – It’s easier to compute distances. • It’s biased in favor of the middle cylinders requests. • SSTF scheduling is a form of SJF scheduling; may cause starvation of some requests.
  • 12. 12 Shortest Seek Time First (SSTF( Illustration shows total head movement of 236 cylinders.
  • 13. 13 Scan • The disk arm starts at one end of the disk, and moves toward the other end, servicing requests until it gets to the other end of the disk, where the head movement is reversed and servicing continues. • It moves in both directions until both ends. • Tends to stay more at the ends so more fair to the extreme cylinder requests.
  • 14. 14 Scan Illustration shows total head movement of 208 cylinders.
  • 15. 15 Look • The disk arm starts at the first I/O request on the disk, and moves toward the last I/O request on the other end, servicing requests until it gets to the other extreme I/O request on the disk, where the head movement is reversed and servicing continues. • It moves in both directions until both last I/O requests; more inclined to serve the middle cylinder requests.
  • 16. 16 C-Scan • The head moves from one end of the disk to the other, servicing requests as it goes. When it reaches the other end, however, it immediately returns to the beginning of the disk, without servicing any requests on the return trip. • Treats the cylinders as a circular list that wraps around from the last cylinder to the first one. • Provides a more uniform wait time than SCAN; it treats all cylinders in the same manner.
  • 18. 18 C-Look • Look version of C-Scan. • Arm only goes as far as the last request in each direction, then reverses direction immediately, without first going all the way to the end of the disk. • In general, Circular versions are more fair but pay with a larger total seek time. • Scan versions have a larger total seek time than the corresponding Look versions.
  • 20. 20 A. Frank - P. Weisberg Elevator Algorithms C-LookC-Scan Scan Look Go until the last request Go until the last cylinder Service in only one direction Service both directions Direction Go until • Algorithms based on the common elevator principle. • Four combinations of Elevator algorithms: –Service in both directions or in only one direction. –Go until last cylinder or until last I/O request.
  • 21. 21 Another Example A. Frank - P. Weisberg LOOK C-LOOK
  • 22. 22 Other Disk Scheduling Policies • Pickup – A combination of FCFS and Look. – Goes to next I/O request by FCFS but services all existing requests on the way to it. • Priority – Goal is not to optimize disk use but to meet other objectives. – Short batch jobs may have higher priority. – Provide good interactive response time.
  • 23. 23 Selecting a Disk-Scheduling Algorithm • Performance depends on the number and types of requests. • Requests for disk service can be influenced by the file-allocation method. • The disk-scheduling algorithm should be written as a separate module of the operating system, allowing it to be replaced with a different algorithm if necessary.
  • 24. 24 Selecting a Disk-Scheduling Algorithm • With low load on the disk, It’s FCFS anyway. • SSTF is common and has a natural appeal – good for medium disk load. • SCAN and C-SCAN perform better for systems that place a heavy load on the disk; Less starvation. • Performance depends on number and types of requests. • Requests for disk service can be influenced by the file- allocation method and metadata layout. • Either SSTF or LOOK (as part of an Elevator package) is a reasonable choice for the default algorithm.