SlideShare a Scribd company logo
1 of 15
CHAPTER11: I/O MANAGEMENT AND DISK SCHEDULING
SUBTOPIC: 11.5 DISK SHCHEDULING
NAZIRAH BINTI MOHAMMED ANWAR B031210271
NUR HUDA ATHIRAH BINTI ABDUL LATIB B031210358
NUR ATIQAH BINTI ABD RASHID B031210185
LIM ZHEW SHENG B031210379
WONG POH LING B031210033
 Disk Scheduling
 Over the last 40 years, the increase in the speed of
processors and main memory has far outstripped that
for disk access.
 Disk are currently at least four orders of magnitude
slower than main memory.
 The performance of disk storage subsystem is of vital
concern, much research has focus on improving that
performance.
INTRODUCTION 

• The actual details of disk I/O operation
depend on the computer system, the
operation system, and the nature of the
I/O channel and disk controller hardware.

• The figure below shows a general timing
diagram of disk I/O transfer:
When the disk drive is operating, the disk is
rotating at constant speed.
To read or write, the head must be positioned at
the desired track and at the beginning of the
desired sector of that track.
Track selection involves moving the head in a
moveable-head system or electronically
selecting one head on a fixed-system.
Seek Time
 -Seek timeis for the disk arm to move the heads to the cylinder
containing the desired sector.
 -It is also measures the amount of time required for the
read/write heads to move between tracks over the surface of the
platters.
 -It turns out that this is a difficult quantity to pin down.
 -Consists of two key components:
 access arm is up to spend.
The time taken to
traverse the tracks
that have to be
crossed once the
a) The
initial
startup
time
 Average Seek Time = sum of the time of all possible seek
all possible seek.
- The time waiting for the disk to rotate the desired
sector to the disk head.
-Time taken to transfer the data.
-The time it takes to transfer a block of
bits, typically a sector, under the read/write head.
EQUATION

Rotational Delay(r)
Transfer Time(T
 Two different I/O operations that illustrate the danger of relying on
average values.
 Consider a disk with an advertised average seek time of 4 ms, rotation
speed of 7500 rpm, and 512-byte sectors with 500 sectors per track.
Suppose that we wish to read a file consisting of 2500 sectors for a total
of 1.28 Mbytes. (Estimate the total time for the transfer).
 1) Assume that the file is stored as compactly as possible on the
disk, (the file occupies all of the sectors on 5 adjacent tracks, 5 tracks x
500 sectors/track = 2500 sectors). Also known as sequential
organization.
 So, the time to read the first track is as follows :
Average seek 4ms
Rotational delay 4 ms
Read 500 sectors 8 ms
16 ms
 Suppose that the remaining tracks can now be read with essentially
no seek time. (I/O operation can keep up with the flow from the
disk). Then, deal with rotational delay for each succeeding track.
 Thus, each successive track is read in 4 + 8 = 12 rmms.To read the
entire file :
 Total time = 16 + (4 x 12) = 64 ms = 0.064 seconds
 2) Calculate the time required to read the same data using
random access rather than sequential access, (accesses to the
sectors are distributed randomly over the disk).
 Average seek 4 ms
Rotational delay 4 ms
Read 1 sectors 0.016 ms
8.016 ms
 For each sector we have :
 Total time = 2500 x 8.016 = 20040 ms = 20.04 seconds
Average seek 4 ms
Rotational delay 4 ms
Read 500 sectors 8 ms
16 ms
 If the sector requests involve selection of tracks at
random, then the performance of the disk I/O system
will be as poor as possible. To improve matters, need to
reduce average time spent on seeks.

 is useful as a benchmark against which to evaluate
other techniques.
RANDOM SCHEDULING
 The simplest form of scheduling, which processes
items from the queue in sequential order.
 The advantage of being fair, because every
request is honored and the requests are honored
in the order received.
 Normally in FIFO disk accesses are in the same
order as the request were originally received.
 With FIFO, only a few processes that require
access and if many of the request are to clustered
file sector, then we can hope for good
performance.
 But, if many processes competing the disk, it may
be profitable to consider a more sophisticated
scheduling policy.
OVERALL
 SHORTEST SERVICE TIME FIRST
 Is to select the disk I/O request that require the least movement of the
disk arm from its current position.
 Always choose to incur the minimum seek time.
 But still cannot make sure the average seek time will be minimum too.
 However, this should provide better performance than FIFO.
 Arm move in two directions.
 Random tie-breaking algorithm maybe used to resolve cases of equal
distances.
System based on priority (PRI), the control of the
scheduling is outside the control of disk management
software.
Often short batch jobs and interactive jobs are given
higher priority than longer jobs that require longer
computation.
However, longer jobs may have to wait excessively
long times.
So that, this type of policy tends to be poor for
Database Systems.
P
R
I
O
R
I
T
Y
 a.k.a elevator algorithm because it operates like the elevator
 able to prevent starvation
 the arm move in one direction only
 satisfying request en route until there are no more requests available
 the service direction reversed, the scan proceed in opposite direction
 SCAN policy is biased against the area most recently traversed
 Thus, does not exploit locality as well as SSTF
 SCAN policy favours jobs whose request are for tracks nearest to both
innermost and outermost track
 Also, favours the latest-arriving jobs
 a.k.a circular SCAN
 restrict scanning to one direction only
 when the last track has been visited in one direction, the arm is returned
to the opposite end of the disk and the scan begins again
 reduces delay experienced by new requests
C-SCAN
 to avoid ‘arm stickiness’ where the arm does not move for a considerable
amount period of time
 happens due to a process repeatedly request for a track, thus monopolizing
the entire device
 in N-step-SCAN, the disk request queue is segmented into subqueue of
length N
 subqueues are processed one at a time, using SCAN
 new requests must be added to some other queue
 for FSCAN uses two subqueues
 all requests are in one queue while scan begins
 the second subqueue is empty
 all new request are put into the second subqueue
 thus, new requests will be proceed only when the old requests are done

More Related Content

What's hot (20)

Disk Scheduling Algorithms
Disk Scheduling AlgorithmsDisk Scheduling Algorithms
Disk Scheduling Algorithms
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Operating System
Operating SystemOperating System
Operating System
 
Disk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemDisk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating System
 
Viknesh
VikneshViknesh
Viknesh
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49
 
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
 
CS215 - Lec 6 record index
CS215 - Lec 6  record indexCS215 - Lec 6  record index
CS215 - Lec 6 record index
 
I/O buffering & disk scheduling
I/O buffering & disk schedulingI/O buffering & disk scheduling
I/O buffering & disk scheduling
 
7 disk managment
7 disk managment7 disk managment
7 disk managment
 
Incremental backups
Incremental backupsIncremental backups
Incremental backups
 
Module5 secondary storage
Module5 secondary storageModule5 secondary storage
Module5 secondary storage
 
Os
OsOs
Os
 
Mass storage structure
Mass storage structureMass storage structure
Mass storage structure
 
cs8493 - operating systems unit 4
cs8493 - operating systems unit 4cs8493 - operating systems unit 4
cs8493 - operating systems unit 4
 
Pandi
PandiPandi
Pandi
 
Ch10
Ch10Ch10
Ch10
 
disk scheduling
disk schedulingdisk scheduling
disk scheduling
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
Disk structure
Disk structureDisk structure
Disk structure
 

Viewers also liked

ctividad7 softwareeducativo vivas_aguilarligiaguadalupeA
ctividad7 softwareeducativo vivas_aguilarligiaguadalupeActividad7 softwareeducativo vivas_aguilarligiaguadalupeA
ctividad7 softwareeducativo vivas_aguilarligiaguadalupeAEric Leonardo Aguilar Mendoza
 
Lorenc Gordani, Lecture on the European Institutions and Council of the EU (i...
Lorenc Gordani, Lecture on the European Institutions and Council of the EU (i...Lorenc Gordani, Lecture on the European Institutions and Council of the EU (i...
Lorenc Gordani, Lecture on the European Institutions and Council of the EU (i...Lorenc Gordani
 
Hermanamientos y participantes en el Concurso Nacional de tapas y pinchos de ...
Hermanamientos y participantes en el Concurso Nacional de tapas y pinchos de ...Hermanamientos y participantes en el Concurso Nacional de tapas y pinchos de ...
Hermanamientos y participantes en el Concurso Nacional de tapas y pinchos de ...Ocio y Rutas Valladolid
 
La belleza de los arboles(de eva)
La belleza de los arboles(de eva)La belleza de los arboles(de eva)
La belleza de los arboles(de eva)Garbriela_224
 
ViM People - Internal Support
ViM People - Internal SupportViM People - Internal Support
ViM People - Internal SupportViMPeople
 
Module 2 Lesson 2
Module 2 Lesson 2Module 2 Lesson 2
Module 2 Lesson 2claytors
 
互联网产品经理向传统产品经理借鉴什么 阿光
互联网产品经理向传统产品经理借鉴什么 阿光互联网产品经理向传统产品经理借鉴什么 阿光
互联网产品经理向传统产品经理借鉴什么 阿光yixieshi
 
Hari raya aidilfitri
Hari raya aidilfitriHari raya aidilfitri
Hari raya aidilfitriAin Azmi
 
黑瓦與老樹
黑瓦與老樹黑瓦與老樹
黑瓦與老樹輝 哲
 
My home.ca (1)
My home.ca (1)My home.ca (1)
My home.ca (1)aditya420
 
Réemploi des matériaux de construction: le guide Opalis
Réemploi des matériaux de construction: le guide OpalisRéemploi des matériaux de construction: le guide Opalis
Réemploi des matériaux de construction: le guide Opalisecobuild.brussels
 
W bmap1
W bmap1W bmap1
W bmap1Borcha
 
InvestinBelgium2011
InvestinBelgium2011InvestinBelgium2011
InvestinBelgium2011bdeelen
 
организация внеурочной деятельности
организация внеурочной деятельностиорганизация внеурочной деятельности
организация внеурочной деятельностиgustenjova
 

Viewers also liked (20)

Falsafah bahagia
Falsafah bahagiaFalsafah bahagia
Falsafah bahagia
 
Online education
Online educationOnline education
Online education
 
Carolina tarrio
Carolina tarrioCarolina tarrio
Carolina tarrio
 
ctividad7 softwareeducativo vivas_aguilarligiaguadalupeA
ctividad7 softwareeducativo vivas_aguilarligiaguadalupeActividad7 softwareeducativo vivas_aguilarligiaguadalupeA
ctividad7 softwareeducativo vivas_aguilarligiaguadalupeA
 
Trailer analysis
Trailer analysisTrailer analysis
Trailer analysis
 
το ψέμα, μπαμπαρούτση ιω.
το ψέμα, μπαμπαρούτση ιω.το ψέμα, μπαμπαρούτση ιω.
το ψέμα, μπαμπαρούτση ιω.
 
Tibet
TibetTibet
Tibet
 
Lorenc Gordani, Lecture on the European Institutions and Council of the EU (i...
Lorenc Gordani, Lecture on the European Institutions and Council of the EU (i...Lorenc Gordani, Lecture on the European Institutions and Council of the EU (i...
Lorenc Gordani, Lecture on the European Institutions and Council of the EU (i...
 
Hermanamientos y participantes en el Concurso Nacional de tapas y pinchos de ...
Hermanamientos y participantes en el Concurso Nacional de tapas y pinchos de ...Hermanamientos y participantes en el Concurso Nacional de tapas y pinchos de ...
Hermanamientos y participantes en el Concurso Nacional de tapas y pinchos de ...
 
La belleza de los arboles(de eva)
La belleza de los arboles(de eva)La belleza de los arboles(de eva)
La belleza de los arboles(de eva)
 
ViM People - Internal Support
ViM People - Internal SupportViM People - Internal Support
ViM People - Internal Support
 
Module 2 Lesson 2
Module 2 Lesson 2Module 2 Lesson 2
Module 2 Lesson 2
 
互联网产品经理向传统产品经理借鉴什么 阿光
互联网产品经理向传统产品经理借鉴什么 阿光互联网产品经理向传统产品经理借鉴什么 阿光
互联网产品经理向传统产品经理借鉴什么 阿光
 
Hari raya aidilfitri
Hari raya aidilfitriHari raya aidilfitri
Hari raya aidilfitri
 
黑瓦與老樹
黑瓦與老樹黑瓦與老樹
黑瓦與老樹
 
My home.ca (1)
My home.ca (1)My home.ca (1)
My home.ca (1)
 
Réemploi des matériaux de construction: le guide Opalis
Réemploi des matériaux de construction: le guide OpalisRéemploi des matériaux de construction: le guide Opalis
Réemploi des matériaux de construction: le guide Opalis
 
W bmap1
W bmap1W bmap1
W bmap1
 
InvestinBelgium2011
InvestinBelgium2011InvestinBelgium2011
InvestinBelgium2011
 
организация внеурочной деятельности
организация внеурочной деятельностиорганизация внеурочной деятельности
организация внеурочной деятельности
 

Similar to Operating system (20)

Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Cs8493 unit 4
Cs8493 unit 4Cs8493 unit 4
Cs8493 unit 4
 
CH10.pdf
CH10.pdfCH10.pdf
CH10.pdf
 
Disk scheduling algorithms
Disk scheduling algorithms Disk scheduling algorithms
Disk scheduling algorithms
 
Disk Scheduling
Disk SchedulingDisk Scheduling
Disk Scheduling
 
Ch9 mass storage systems
Ch9   mass storage systemsCh9   mass storage systems
Ch9 mass storage systems
 
operating system
operating systemoperating system
operating system
 
Kavi
KaviKavi
Kavi
 
Kavi
KaviKavi
Kavi
 
Ch12
Ch12Ch12
Ch12
 
disk sechduling
disk sechdulingdisk sechduling
disk sechduling
 
Nachos 2
Nachos 2Nachos 2
Nachos 2
 
Nachos 2
Nachos 2Nachos 2
Nachos 2
 
Disk Scheduling Algorithms
Disk Scheduling AlgorithmsDisk Scheduling Algorithms
Disk Scheduling Algorithms
 
Disk Management
Disk ManagementDisk Management
Disk Management
 
18CSC205J-UNIT-5.pptx
18CSC205J-UNIT-5.pptx18CSC205J-UNIT-5.pptx
18CSC205J-UNIT-5.pptx
 
Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage Structure
 
9_Storage_Devices.pptx
9_Storage_Devices.pptx9_Storage_Devices.pptx
9_Storage_Devices.pptx
 
Disk Management.ppt
Disk Management.pptDisk Management.ppt
Disk Management.ppt
 
ch12-gh1.pptx
ch12-gh1.pptxch12-gh1.pptx
ch12-gh1.pptx
 

Recently uploaded

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Recently uploaded (20)

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 

Operating system

  • 1. CHAPTER11: I/O MANAGEMENT AND DISK SCHEDULING SUBTOPIC: 11.5 DISK SHCHEDULING NAZIRAH BINTI MOHAMMED ANWAR B031210271 NUR HUDA ATHIRAH BINTI ABDUL LATIB B031210358 NUR ATIQAH BINTI ABD RASHID B031210185 LIM ZHEW SHENG B031210379 WONG POH LING B031210033
  • 2.  Disk Scheduling  Over the last 40 years, the increase in the speed of processors and main memory has far outstripped that for disk access.  Disk are currently at least four orders of magnitude slower than main memory.  The performance of disk storage subsystem is of vital concern, much research has focus on improving that performance. INTRODUCTION 
  • 3.  • The actual details of disk I/O operation depend on the computer system, the operation system, and the nature of the I/O channel and disk controller hardware.  • The figure below shows a general timing diagram of disk I/O transfer:
  • 4.
  • 5. When the disk drive is operating, the disk is rotating at constant speed. To read or write, the head must be positioned at the desired track and at the beginning of the desired sector of that track. Track selection involves moving the head in a moveable-head system or electronically selecting one head on a fixed-system.
  • 6. Seek Time  -Seek timeis for the disk arm to move the heads to the cylinder containing the desired sector.  -It is also measures the amount of time required for the read/write heads to move between tracks over the surface of the platters.  -It turns out that this is a difficult quantity to pin down.  -Consists of two key components:  access arm is up to spend. The time taken to traverse the tracks that have to be crossed once the a) The initial startup time
  • 7.  Average Seek Time = sum of the time of all possible seek all possible seek. - The time waiting for the disk to rotate the desired sector to the disk head. -Time taken to transfer the data. -The time it takes to transfer a block of bits, typically a sector, under the read/write head. EQUATION  Rotational Delay(r) Transfer Time(T
  • 8.  Two different I/O operations that illustrate the danger of relying on average values.  Consider a disk with an advertised average seek time of 4 ms, rotation speed of 7500 rpm, and 512-byte sectors with 500 sectors per track. Suppose that we wish to read a file consisting of 2500 sectors for a total of 1.28 Mbytes. (Estimate the total time for the transfer).  1) Assume that the file is stored as compactly as possible on the disk, (the file occupies all of the sectors on 5 adjacent tracks, 5 tracks x 500 sectors/track = 2500 sectors). Also known as sequential organization.  So, the time to read the first track is as follows : Average seek 4ms Rotational delay 4 ms Read 500 sectors 8 ms 16 ms
  • 9.  Suppose that the remaining tracks can now be read with essentially no seek time. (I/O operation can keep up with the flow from the disk). Then, deal with rotational delay for each succeeding track.  Thus, each successive track is read in 4 + 8 = 12 rmms.To read the entire file :  Total time = 16 + (4 x 12) = 64 ms = 0.064 seconds  2) Calculate the time required to read the same data using random access rather than sequential access, (accesses to the sectors are distributed randomly over the disk).  Average seek 4 ms Rotational delay 4 ms Read 1 sectors 0.016 ms 8.016 ms  For each sector we have :  Total time = 2500 x 8.016 = 20040 ms = 20.04 seconds Average seek 4 ms Rotational delay 4 ms Read 500 sectors 8 ms 16 ms
  • 10.  If the sector requests involve selection of tracks at random, then the performance of the disk I/O system will be as poor as possible. To improve matters, need to reduce average time spent on seeks.   is useful as a benchmark against which to evaluate other techniques. RANDOM SCHEDULING
  • 11.  The simplest form of scheduling, which processes items from the queue in sequential order.  The advantage of being fair, because every request is honored and the requests are honored in the order received.  Normally in FIFO disk accesses are in the same order as the request were originally received.  With FIFO, only a few processes that require access and if many of the request are to clustered file sector, then we can hope for good performance.  But, if many processes competing the disk, it may be profitable to consider a more sophisticated scheduling policy.
  • 13.  SHORTEST SERVICE TIME FIRST  Is to select the disk I/O request that require the least movement of the disk arm from its current position.  Always choose to incur the minimum seek time.  But still cannot make sure the average seek time will be minimum too.  However, this should provide better performance than FIFO.  Arm move in two directions.  Random tie-breaking algorithm maybe used to resolve cases of equal distances. System based on priority (PRI), the control of the scheduling is outside the control of disk management software. Often short batch jobs and interactive jobs are given higher priority than longer jobs that require longer computation. However, longer jobs may have to wait excessively long times. So that, this type of policy tends to be poor for Database Systems. P R I O R I T Y
  • 14.  a.k.a elevator algorithm because it operates like the elevator  able to prevent starvation  the arm move in one direction only  satisfying request en route until there are no more requests available  the service direction reversed, the scan proceed in opposite direction  SCAN policy is biased against the area most recently traversed  Thus, does not exploit locality as well as SSTF  SCAN policy favours jobs whose request are for tracks nearest to both innermost and outermost track  Also, favours the latest-arriving jobs  a.k.a circular SCAN  restrict scanning to one direction only  when the last track has been visited in one direction, the arm is returned to the opposite end of the disk and the scan begins again  reduces delay experienced by new requests C-SCAN
  • 15.  to avoid ‘arm stickiness’ where the arm does not move for a considerable amount period of time  happens due to a process repeatedly request for a track, thus monopolizing the entire device  in N-step-SCAN, the disk request queue is segmented into subqueue of length N  subqueues are processed one at a time, using SCAN  new requests must be added to some other queue  for FSCAN uses two subqueues  all requests are in one queue while scan begins  the second subqueue is empty  all new request are put into the second subqueue  thus, new requests will be proceed only when the old requests are done