Diskscheduling Algorithm Comparison Proposal
Diskscheduling Algorithm Comparison Proposal
by
Md Akib Hasan
K.M. Mahabub Hossain
Sadman Rahman
December 2023
Chittagong University of Engineering & Technology (CUET)
Department of Computer Science & Engineering
Chattogram-4349, Bangladesh
Thesis Proposal
Application for the approval of the B.Sc. Engineering Thesis/Project
Session : 2022-2023
1 Introduction 1
1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Disk Scheduling Criteria . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Disk Scheduling Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.1 First Come First Serve (FCFS) Scheduling . . . . . . . . . . . . . 2
1.3.2 Shortest Seek Time First (SSTF) Scheduling . . . . . . . . . . . . 2
1.3.3 SCAN Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.4 C-SCAN Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.5 LOOK Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.6 C-LOOK Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 Motivation 4
4 Research Questions 5
5 Specific Objectives 5
6 Possible Outcomes 6
7 Impact Identification 6
8 Outline of Methodology 7
8.1 Literature Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
8.2 Sample I/O Request Queue Preparation . . . . . . . . . . . . . . . . . . . 7
8.3 Algorithm Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . 7
8.4 Simulator Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
8.5 Simulated Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
8.6 Data Collection and Analysis . . . . . . . . . . . . . . . . . . . . . . . . . 8
i
8.7 Result Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
8.8 Recommendation Formulation . . . . . . . . . . . . . . . . . . . . . . . . 9
8.9 Documentation and Reporting . . . . . . . . . . . . . . . . . . . . . . . . 9
10 SWOT Analysis 10
10.1 Strengths: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
10.2 Weaknesses: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
10.3 Opportunities: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
10.4 Threats: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
11 Conclusion 12
List of Figures
ii
1 Introduction
1.1 Background
The management of disk performance is an important aspect of an operating system. Since
the speed of processor and main memory have been increased several times than the speed
of the disk, the difference in the speed of processor and the disk, I/O performance of disk
has become an important bottleneck. In any disk system with a moving read/write head, the
seek time between cylinders takes a significant amount of time. This seek time should be
minimized to better access time. [1]
In multiprogramming systems, processes running concurrently may generate requests for
reading and writing disk records. The operating system handles these I/O requests from the
queue and processes them one by one. The algorithm used to choose which I/O request is
going to be fulfilled earliest is called disk scheduling algorithm. The main objectives for any
disk scheduling algorithm are minimizing the response time and maximizing the throughput.
[2]
• Seek Time: The time for the disk arm to move the heads to the cylinder containing the
desired sector.
• Rotational latency: The additional time incurred for the disk to rotate the desired sector
to the disk head.
• Disk bandwidth: Total number of bytes transferred divided by the total time between
the first request for service and the completion of last transfer.
• Transfer Time: The time required for the transfer, this depends on the rotational speed
of the disk.
1
1.3 Disk Scheduling Algorithms
There are several disk-scheduling algorithms such as FCFS, SSTF, SCAN, C-SCAN, LOOK
and C-LOOK algorithms, which helps in scheduling the I/O request.
2
1.3.6 C-LOOK Scheduling
This is just an enhanced version of C-SCAN. In this, the scanning doesn’t go past the last
request in the direction that it is moving. It too jumps to the other end but not all the way to
the end.
One of the main goal of the operating system for the disk drives is to use the hardware effi-
ciently, we can meet this goal using fast access time and large disk bandwidth that depends
on the relative positions of the read-write head and the requested data. Since memory man-
agement allows multiprogramming so that operating system keeps several read/write request
in the memory. In order to service these requests, hardware (disk drive and controller) must
be used efficiently.
To support this in disk drive, the hardware must be available to service the request. If the
hardware is busy, we can’t service the request immediately and the new request will be placed
in the queue of pending requests. Several disk scheduling algorithms are available to service
the pending requests. Among these disk scheduling algorithms, the algorithm that yields less
number of head movement will remain has an efficient algorithm [3].
Scheduling is a crucial function in operating systems, allocating resources before use. Disk,
a vital computer resource, requires efficient scheduling for optimal performance. While pro-
cessor and memory speeds advance rapidly, disk speed lags at 7% growth annually. Disk
scheduling algorithms minimize seek time latency by prioritizing I/O requests. When the
disk is available, requests are promptly serviced; otherwise, they join a pending queue. Var-
ious algorithms determine the order of service, aiming to minimize head movements and
enhance seek time. First Come First Serve (FCFS) is simple but lacks efficiency. Shortest
Seek Time First (SSTF) prioritizes requests with the shortest seek time. The SCAN algo-
rithm, resembling an elevator, processes requests in one direction before changing. LOOK
algorithm, influenced by SCAN, traverses the disk surface in both directions. The researcher
studied different papers on Comparative Analysis of Disk Scheduling Algorithms, conclud-
ing by recommending an improved algorithm based on factors affecting seek time.
3
2.1 Analysis of Previous Research Works
Analyzing previous research is essential to narrow down the research focus, identify gaps,
and inform new investigations. In the realm of ”Disk Scheduling Algorithms,” numerous
comparative analyses have been conducted. Researchers evaluate algorithms based on fac-
tors like I/O request patterns, disk specifications, and seek time assumptions.
1. In one study [4], the Smallest Seek Time First (SSTF) algorithm demonstrated superior
throughput in comparative analyses.
2. Another research effort [4] delved into the total head movement calculations for First
Come First Serve (FCFS), SSTF, SCAN, and C-SCAN algorithms, emphasizing the critical
role of disk scheduling in enhancing input-output performance.
3. A comprehensive study [1] compared various disk scheduling algorithms (FCFS, SSTF,
SCAN, LOOK, C-SCAN, C-LOOK, FSCAN, N-Step SCAN) and concluded that different
algorithms exhibit unique features suited to specific scenarios.
4. An analysis [5] considered different algorithms and discussed variations in the calculation
of disk head movement, particularly in Circular SCAN (C-SCAN) and Circular LOOK (C-
LOOK).
5. A discussion [6] highlighted distinctive features of scheduling algorithms, emphasizing
the trade-offs in approaches like FCFS, SSTF, SCAN, C-SCAN, LOOK, and C-LOOK.
6. A proposal [7] introduced the Hybridized Disk Scheduling Algorithm (HDSA), demon-
strating better performance than conventional algorithms, thereby enhancing disk efficiency.
These diverse studies contribute valuable insights into optimizing disk scheduling algorithms
for enhanced system performance.
3 Motivation
The management of disk performance is critical for operating system efficiency. With pro-
cessor and memory speeds surpassing disk speed, I/O performance has become a bottle-
neck. Minimizing seek time, a significant factor in disk access time, is crucial. In multi-
programming systems, concurrent processes generate disk requests, necessitating effective
disk scheduling algorithms. The choice of algorithm impacts response time and throughput,
4
making it essential to explore and optimize existing disk scheduling criteria and algorithms.
4 Research Questions
Scheduling algorithms for moving-head disks have been studied for many years, but which
algorithm is “better” is still an open question [8]. In operating systems, seek time is very
important. Since all device requests are linked in queues, the seek time is increased causing
the system to slow down. Desk scheduling algorithms are used to calculate the total seek
time of any request. So the research will focus on the following questions:
• What is the total disk head movement of different disk scheduling algorithms?
5 Specific Objectives
• To calculate total disk head movement and average seek time of different queue in
different scheduling algorithms.
• To compare the average seek time of different algorithms and recommend the better
algorithm.
5
6 Possible Outcomes
The proposed research aims to enhance disk scheduling algorithms, addressing seek time
and throughput concerns. Potential outcomes include:
3. Comparative Analyses: The study may yield comparative analyses of existing and pro-
posed disk scheduling algorithms, highlighting their strengths and weaknesses under
various scenarios.
7 Impact Identification
Efficient disk scheduling directly influences overall system performance. The potential im-
pacts of the proposed research include:
• Reduced Latency: Improved disk scheduling algorithms can significantly reduce seek
time and rotational latency, leading to lower I/O request response times and enhanced
overall system responsiveness.
6
• Optimized Resource Utilization: By minimizing head movements and maximizing
disk bandwidth, the research outcomes may contribute to more efficient utilization of
disk resources, aligning with the broader goal of optimal hardware use.
• Guidance for System Design: Recommendations and insights from the research may
guide the design of future operating systems, ensuring they incorporate effective disk
scheduling mechanisms to cope with evolving hardware capabilities.
8 Outline of Methodology
• Formulate the sample I/O request queue based on the identified patterns.
• Execute the algorithms on the sample I/O request queue to obtain Total Head Move-
ment and Average Seek Time.
7
8.4 Simulator Development
Build a simulator to automate the testing and comparison process.
• Integrate functionalities to calculate Total Head Movement and Average Seek Time
automatically.
• Execute the sample I/O request queue on the simulator for each algorithm.
• Record and analyze the simulated Total Head Movement and Average Seek Time.
• Compare simulated results with manually calculated results for accuracy verification.
• Collect and organize data on Total Head Movement and Average Seek Time for each
algorithm.
8
8.8 Recommendation Formulation
Formulate recommendations based on the analysis of compared results.
• Synthesize findings to draw conclusions about the strengths and weaknesses of each
algorithm.
• Prepare a detailed research report documenting the methodology, results, and recom-
mendations.
• Structure the report for clarity, providing insights that can be understood by both tech-
nical and non-technical audiences.
9
9 Required Resources and tools
The implementation tools and resources that we need to build our project are stated below:
• Hardware required
- A powerful computer/Laptop
• Software required
- Operating system(Windows/Linux)
- Jupyter-notebook with python
- Google Collab
- IDE(VS Code, PyCharm)
- Compilers/interpreters (GNU GCC, python)
10 SWOT Analysis
10.1 Strengths:
1. Academic Relevance: Addresses a crucial aspect of operating system management.
10
3. Diverse Sample I/O Request Queue: Enhances robustness of findings.
6. Data Analysis and Visualization: Rigorous analysis for clear performance visualiza-
tion.
10.2 Weaknesses:
1. Simplified Model Assumptions: May overlook real-world complexities.
4. Assumed Uniformity of I/O Requests: Might not capture diverse computing envi-
ronment challenges.
10.3 Opportunities:
1. Practical Implementation: Guides practical use for improved OS performance.
3. Collaboration and Further Research: Extends scope and opens avenues for collab-
oration.
10.4 Threats:
1. Technological Advancements: Rapid tech changes may impact relevance.
11
3. Algorithmic Complexity: Challenges in accurately implementing and simulating
complex algorithms.
5. Competing Priorities: Other commitments may impact project timeline and thor-
oughness.
11 Conclusion
This research on disk scheduling algorithms presents a valuable exploration of critical as-
pects in operating system management. By focusing on key algorithms like FCFS, SSTF,
SCAN, C-SCAN, LOOK, and C-LOOK, the study aims to contribute practical insights for
optimizing I/O performance in disk systems. The research methodology, encompassing lit-
erature review, algorithm implementation, and simulation analysis, offers a structured ap-
proach. While the project shows promise in academic and practical applications, it acknowl-
edges potential limitations and external factors that could impact its outcomes. Overall, the
research is poised to make a meaningful contribution to the efficiency of disk scheduling in
contemporary operating systems.
Bibliography
[1] T. Singh, “A comparative study of disk scheduling algorithms,” vol, vol. 4, pp. 29–32,
2016.
[3] M. M. Kumar and B. R. Rajendra, “An improved approach to maximize the performance
of disk scheduling algorithm by minimizing the head movement and seek time using
12
sort mid current comparison (smcc) algorithm,” Procedia Computer Science, vol. 57,
pp. 222–231, 2015.
[5] D. Singh, “A new optimized real-time disk scheduling algorithm,” International Journal
of Computer Applications, vol. 93, no. 18, pp. 7–12, 2014.
[7] J. Celis, D. Gonzales, E. Lagda, and L. Jr, “A comprehensive review for disk scheduling
algorithms,” International Journal of Computer Science Issues, vol. 11, no. 1, pp. 74–79,
2014.
[8] R. Geist and S. Daniel, “A continuum of disk scheduling algorithms,” ACM Transactions
on Computer Systems (TOCS), vol. 5, no. 1, pp. 77–92, 1987.
13