Queue based Job Scheduling algorithm for Cloud computing

Similar documents
CPU Scheduling. Chapter 9

CPU Scheduling CPU. Basic Concepts. Basic Concepts. CPU Scheduler. Histogram of CPU-burst Times. Alternating Sequence of CPU and I/O Bursts

CPU scheduling. CPU Scheduling

Roadmap. Tevfik Ko!ar. CSC Operating Systems Spring Lecture - V CPU Scheduling - I. Louisiana State University.

CPU Scheduling Minsoo Ryu Real-Time Computing and Communications Lab. Hanyang University

Chapter 6: CPU Scheduling. Basic Concepts. Histogram of CPU-burst Times. CPU Scheduler. Dispatcher. Alternating Sequence of CPU And I/O Bursts

Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - V CPU Scheduling - I. University at Buffalo.

CPU SCHEDULING. Scheduling Objectives. Outline. Basic Concepts. Enforcement of fairness in allocating resources to processes

Scheduling. CSE Computer Systems November 19, 2001

CPU Scheduling. Jo, Heeseung

Principles of Operating Systems

א א א א א א א א

LEAST-MEAN DIFFERENCE ROUND ROBIN (LMDRR) CPU SCHEDULING ALGORITHM

IJCSC VOLUME 5 NUMBER 2 JULY-SEPT 2014 PP ISSN

CS 143A - Principles of Operating Systems

Motivation. Types of Scheduling

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

Journal of Global Research in Computer Science

Asia Pacific Journal of Engineering Science and Technology

Scheduling I. Today. Next Time. ! Introduction to scheduling! Classical algorithms. ! Advanced topics on scheduling

CSC 553 Operating Systems

Salisu Aliyu Department of Mathematics, Ahmadu Bello University, Zaria, Nigeria

CSC 1600: Chapter 5. CPU Scheduling. Review of Process States

An Optimized Task Scheduling Algorithm in Cloud Computing Environment

CSE 5343/7343 Fall 2006 PROCESS SCHEDULING

CPU Scheduling. Basic Concepts Scheduling Criteria Scheduling Algorithms. Unix Scheduler

Process Scheduling Course Notes in Operating Systems 1 (OPESYS1) Justin David Pineda

CPU Scheduling: Part I. Operating Systems. Spring CS5212

Comp 204: Computer Systems and Their Implementation. Lecture 10: Process Scheduling

CPU Scheduling. Jo, Heeseung

Introduction to Operating Systems. Process Scheduling. John Franco. Dept. of Electrical Engineering and Computing Systems University of Cincinnati

A SURVEY ON TRADITIONAL AND EARLIER JOB SCHEDULING IN CLOUD ENVIRONMENT

Chapter 9 Uniprocessor Scheduling

Lecture 3. Questions? Friday, January 14 CS 470 Operating Systems - Lecture 3 1

Simulation of Process Scheduling Algorithms

FIFO SJF STCF RR. Operating Systems. Minati De. Department of Mathematics, Indian Institute of Technology Delhi, India. Lecture 6: Scheduling

Scheduling Processes 11/6/16. Processes (refresher) Scheduling Processes The OS has to decide: Scheduler. Scheduling Policies

Review of Round Robin (RR) CPU Scheduling Algorithm on Varying Time Quantum

CPU Scheduling. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Reading Reference: Textbook: Chapter 7. UNIX PROCESS SCHEDULING Tanzir Ahmed CSCE 313 Fall 2018

Intro to O/S Scheduling. Intro to O/S Scheduling (continued)

TASK SCHEDULING BASED ON EFFICIENT OPTIMAL ALGORITHM IN CLOUD COMPUTING ENVIRONMENT

Comparative Analysis of Basic CPU Scheduling Algorithms

CPU Scheduling. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Pallab Banerjee, Probal Banerjee, Shweta Sonali Dhal

CPU Scheduling. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Resource Utilization & Execution Time Enhancement by Priority Based Preemptable Shortest Job Next Scheduling In Private Cloud Computing

SE350: Operating Systems. Lecture 6: Scheduling

Uniprocessor Scheduling

DRR Based Job Scheduling for Computational Grid and its Variants

CS 153 Design of Operating Systems Winter 2016

CPU Scheduling. Disclaimer: some slides are adopted from book authors and Dr. Kulkarni s slides with permission

A Paper on Modified Round Robin Algorithm

Packet Scheduling in Cloud by Employing Genetic Algorithm

Study and Comparison of VM Scheduling Algorithm in Cloud Computing Using CloudSim Simulator

Tushar Champaneria Assistant Professor of Computer Engg. Department, L.D.College of Engineering, India

Lecture 11: CPU Scheduling

Mixed Round Robin Scheduling for Real Time Systems

Task Resource Allocation in Grid using Swift Scheduler

CSE 451: Operating Systems Spring Module 8 Scheduling

Analysis of Adaptive Round Robin Algorithm and Proposed Round Robin Remaining Time Algorithm

Scheduling Algorithms. Jay Kothari CS 370: Operating Systems July 9, 2008

Operating Systems. Scheduling

Advanced Types Of Scheduling

A NOVEL METHOD BASED ON PRIORITY FOR ENHANCEMENT ROUND-ROBIN SCHEDULING ALGORITHM

TBP:A Threshold Based Priority Scheduling in Cloud Computing Environment

Project 2 solution code

A Survey on Resource Allocation Strategies in Cloud

CS510 Operating System Foundations. Jonathan Walpole

Improvement of Queue Management for Real Time Task in Operating System

AN OVERVIEW OF THE SCHEDULING POLICIES AND ALGORITHMS IN GRID COMPUTING

TABLE OF CONTENTS CHAPTER NO. TITLE PAGE NO. ABSTRACT LIST OF TABLES LIST OF FIGURES LIST OF SYMBOLS AND ABBREVIATIONS

LOAD SHARING IN HETEROGENEOUS DISTRIBUTED SYSTEMS

IJRASET: All Rights are Reserved

Operating System 9 UNIPROCESSOR SCHEDULING

CPU Scheduling (Chapters 7-11)

Comparative Analysis of Scheduling Algorithms of Cloudsim in Cloud Computing

AN OVERVIEW OF THE SCHEDULING POLICIES AND ALGORITHMS IN GRID COMPUTING

CS 111. Operating Systems Peter Reiher

On the Impact of Reservations from the Grid on Planning-Based Resource Management

Job Scheduling in Cluster Computing: A Student Project

Improvised Optimum Multilevel Dynamic Round Robin Algorithm for Optimizing CPU Scheduling

Announcements. Program #1. Reading. Is on the web Additional info on elf file format is on the web. Chapter 6. CMSC 412 S02 (lect 5)

Performance Comparison of RTS Scheduling Algorithms

Dynamic Fractional Resource Scheduling for HPC Workloads

Introduction to Operating Systems Prof. Chester Rebeiro Department of Computer Science and Engineering Indian Institute of Technology, Madras

Application of Min-Min and Max-Min Algorithm for Task Scheduling in Cloud Environment Under Time Shared and Space Shared VM Models *

Meta Heuristic Approach for Task Scheduling In Cloud Datacenter for Optimum Performance

SELF OPTIMIZING KERNEL WITH HYBRID SCHEDULING ALGORITHM

Deadline Constrained Virtual Machine Provisioning and scheduling to improve QoS in Cloud Computing

Hierarchical scheduling strategies for parallel tasks and advance reservations in grids

On the Comparison of CPLEX-Computed Job Schedules with the Self-Tuning dynp Job Scheduler

Process Scheduling I. COMS W4118 Prof. Kaustubh R. Joshi hdp://

Node Allocation In Grid Computing Using Optimal Resouce Constraint (ORC) Scheduling

Online Scheduling in Distributed Message Converter Systems

PERFORMANCE ANALYSIS OF LOAD BALANCING IN CLOUD COMPUTING BY USING SCHEDULING ALGORITHMS

Scheduling: Introduction

Design of Uniform Infrastructure and Unlimited Scalability Solutions for Organization Using SIaaS Framework

Resource Allocation Strategies in a 2-level Hierarchical Grid System

Operating Systems Process Scheduling Prof. Dr. Armin Lehmann

Transcription:

International Research Journal of Applied and Basic Sciences 2013 Available online at www.irjabs.com ISSN 2251-838X / Vol, 4 (11): 3785-3790 Science Explorer Publications Queue based Job Scheduling algorithm for Cloud computing Shahram Behzad *1, Reza Fotohi 1, Mehdi Effatparvar 2 1. Department of Computer Engineering, Germi branch, Islamic Azad University, Germi, Iran 2. ECE Department, Ardabil Branch, Islamic Azad University, Ardabil, Iran *Corresponding Author email: sh.behzad173@gmail.com ABSTRACT: Cloud Computing is a revolutionary way of providing shared resources over the Internet. Through the use of low level virtualization software, the Cloud provides virtualized computing hardware infrastructure in a manner similar to the public utilities, thus it is also termed as Infrastructure-as-a-Service or Utility Computing. Job scheduling algorithms is one of the most challenging theoretical issues in the cloud computing area. Some intensive researches have been done in the area of job scheduling of cloud computing. This paper presents a queue based job scheduling algorithm for efficient execution of user jobs. This paper also includes the comparative performance analysis of our proposed job scheduling algorithm along with other well-known job scheduling algorithms considering the parameters like average waiting time, average response time. The result has shown also exhibit that Our proposed scheduling algorithms (QHS ) has shown the best average waiting times, average response times compared to other job scheduling approaches Keywords : Cloud Computing, Job Scheduling, Distributed Systems, AHP. INTRODUCTION Scheduling strategies have been studied before under the notion of Cloud Computing. (Assunção MD et al., 2010). Asunción et al. studied the use of CC as an extension to private clusters. In their model, tasks were separate from each other and did not communicate. Virtual Machine usage and leasing has also been studied (Blazewicz et al., 2001).through the use of Haizea1 VM-based lease management architecture. Several job scheduling algorithms have been proposed in distributed computing area (Mousumi et al., 2011). (Silberschatz et al., 2011). And (Sotomayor et al., 2008). Most of them can be applied in the cloud environment with suitable verifications (Mousumi et al., 2011). (Madhooshi et al., 2007). (Mousumi et al., 2001). The main goal of job scheduling is to achieve a high performance computing and the best system throughput. Traditional job scheduling algorithms are not able to provide scheduling in the cloud environments. According to a simple classification (Li Y et al., 2011).job scheduling algorithms in cloud computing can be categorized into two main groups; Batch mode heuristic scheduling algorithms (BMHA) and online mode heuristic algorithms. In BMHA, Jobs are queued and collected into a set when they arrive in the system. The scheduling algorithm will start after a fixed period of time. The main examples of BMHA based algorithms are; First Come First Served scheduling algorithm (FCFS), Round Robin scheduling algorithm (RR), Min Min algorithm and Max Min algorithm. By On-line mode heuristic scheduling algorithm, Jobs are scheduled when they arrive in the system. Since the cloud environment is a heterogeneous system and the speed of each processor varies quickly, the on-line mode heuristic scheduling algorithms are more appropriate for a cloud environment. Most fit task scheduling algorithm (MFTF) is suitable example of On-line mode heuristic scheduling algorithm (Li Y et al., 2012). Suitable job scheduling algorithm must consider priority of jobs. To address this problem some researchers have considered priority of jobs scheduling algorithm (Monir Abdullah et al., 2010). (Navendu J et al., 2011). (Shokripour A J et al., 2011). Those researches have focused on a few criteria of jobs in scheduling. In cloud environments we always face a wide variety of attributes that should be considered. It means a particular job scheduling algorithm in cloud environments should pay attention to multi-attribute and multi-criteria properties of jobs. AHP also is a suitable method for priority based problems such as scheduling with various attributes and alternatives (K.S. Chatrapati et al., 2010).And (Silberschatz et al., 2001). This paper also includes the comparative performance analysis of our proposed job scheduling algorithm along with other well-known job scheduling algorithms considering the parameters like average waiting time, average response time.

The remainder of this paper is organized as follows: Section 2 describes the proposed queue based hybrid scheduling algorithm. Section 3 presents the performance evaluation of cloud scheduling algorithms. Conclusion is given in the final section. Proposed Queue based Hybrid Scheduling Algorithm In this method, a central node considered as Job queue plays the role of taking jobs from users and storing them in its queue. Then, the jobs are ordered based on periority, and Thereafter, the jobs are numbered from 1 to n for each periority. Then, the time quantum of job 1 to job n is calculated in parallel. Then, the user with a lower quantum time is CPU allocated and executed. Method of Time Quantum Calculation According to the below relation, time quantum is calculated based on the average of CPU burst time for user 1 to user n in parallel. Then, the user with a lower time quantum compared to other users is CPU allocated and executed. Q User 1 = (Average (JCT1, JCT2, JCT3,, JCTi)) Q User 2= (Average (JCTi+1, JCTi+2, JCTi+3,, JCTj)) Q User 3= (Average (JCTj+1,JCTj+2,JCTj+3,,JCTn)) In the above relation, the JCT variable represents job processing time. In this proposed method, due to the fact that we queued the jobs and that time quantum is calculated in parallel for all users, hence, this method results in improved waiting time and response time, and acts better than FCFS, RR and SJF cheduling algorithms. JCT (Job CPU TIME) Figure1. Block Diagram of Queue based Hybrid Scheduling (QHS) Scheduling Algorithms Job scheduling algorithms is one of the most challenging theoretical issues in the cloud computing area. Some intensive researches have been done in the area of job scheduling of cloud computing. Jobs are queued and collected into a set when they arrive in the batch mode. The scheduling algorithm will start after a fixed period time. 3786

First come first service scheduling algorithm (FCFS) In this algorithm, jobs are executed according to the order of job arriving time. The next job will be executed in turn. The FCFS algorithm (Shokripour et al., 2012). may induce a convoy effect. The convoy effect happens when there is a job with a large amount of workload in the job queue. When this occurs, all the jobs queued behind it must wait a long time for the long job to finish. Shortest job first scheduling algorithm (SJF) A different approach to CPU scheduling is the shortest-job-first (SJF) scheduling algorithm. This algorithm associates with each process the length of the process's next CPU burst. When the CPU is available, it is assigned to the process that has the smallest next CPU burst. If the next CPU bursts of two processes are the same, FCFS scheduling is used. The SJF algorithm can be either pre-emptive or non-preemptive. The choice arises when a new process arrives at the ready queue while a previous process is still executing. The next CPU burst of the newly arrived process may be shorter than what is left of the currently executing process. A preemptive SJF algorithm will preempt the currently executing process, whereas a non-preemptive SJF algorithm will allow the currently running process to finish its CPU burst. Pre-emptive SJF scheduling is sometimes called shortest-remaining-time-first scheduling. Round Robin scheduling algorithm (RR) The RR algorithm (Sunita B et al., 2001). mainly focuses on the fairness problem. The RR algorithm defines a ring as its queue and also defines a fixed time quantum. Each job can be executed only within this quantum, and in turn. If the job cannot be completed in one quantum, it will return to the queue and wait for the next round. The major advantage of RR algorithm is that jobs are executed in turn and do not need to wait for the previous job completion. Therefore, it does not suffer from a starvation problem. However, if the job queue is fully loaded or workload is heavy, it will take a lot of time to complete all the jobs. Furthermore, a suitable time quantum is difficult to decide. Performance Metrics Performance metrics for the cloud scheduling algorithms are based on three factors - average waiting time, average response time. We performed experiments for different scheduling algorithms (Shokripour B et al., 2012). We formed two data sets by using workload i.e. 7000 and 15000 processes. We performed an experiment by varying the number of CPUs from 4 to 64. We used 20 units as the fixed time quantum for our experiment. In this section, we describe a comparative performance analysis of our proposed algorithms, i.e. QHS, with three other Cloud scheduling algorithms; i.e. FCFS, SJF, and RR. Average waiting time Waiting time is defined as how long each process has to wait before it gets it's time slice. In scheduling algorithms such as Shorted Job First and First Come First Serve, we can find that waiting time easily when we just queue up the jobs and see how long each one had to wait before it got serviced. When it comes to Round Robin or any other preemptive algorithms, we find that long running jobs spend a little time in CPU, when they are preempted and then wait for some time for its turn to execute and at some point in its turn, it executes till completion. Average response time It is the amount of time taken from when a process is submitted until the first response is produced (Yun- Han et al., 2001). (Sotomayor B et al., 2009). Average response times for each algorithm have decreased by increasing the number of CPUs. Performance Evaluation of Cloud Scheduling Algorithms Performance metrics for the cloud scheduling algorithms are based on two factors - Average Waiting Time, Average Response Time. We performed experiments for different scheduling algorithms (Sotomayor et al., 2009). We formed two data sets by using workload i.e. 7000 and 15000 processes. We performed an experiment by varying the number of CPUs from 4 to 64. We used 20 units as the fixed time quantum for our experiment. In this section, we describe a comparative performance analysis of our proposed algorithms, i.e. QHS, with three other cloud scheduling algorithms; i.e. FCFS, SJF and RR. Average Waiting Times Evaluation 3786 3786

The Waiting Time is the time for which a process waits from its submission to completion in the local and global queues (Yun-Han et al., 2001). (Yun-Han et al., 2001). Fig. 2 and Fig.3 shows that the average waiting times computed by each scheduling algorithm for each real workload trace of 7000 and 15000 processes. That the SJF and QHS scheduling algorithms produce the shortest average waiting times as compared to the other scheduling algorithms. By increasing the number of CPUs, each algorithm shows the relative improvement in performance. Also, the FCFS and RR have shown the worst performance the average waiting time measures. As a result, CHS has shown the optimal average waiting times for 7000 and 15000 processes. 3786 Figure2. Average Waiting Time Analysis for 7000 Processes Figure3. Average Waiting Time Analysis for 15000 Processes Average Response Times Evaluation It is the amount of time taken from when a process is submitted until the first response is produced (Yun-Han et al., 2001). (Sotomayor et al., 2009).Average response times for each algorithm have decreased by increasing the number of CPUs. Fig. 4 and Fig. 5 shows that the average response times computed by each scheduling algorithm for each real workload trace of 7000 and 15000 processes, The FCFS and SJF scheduling algorithms result in poor response times as compared to the other scheduling algorithms. It also shows that RR and QHS algorithms produces better average response time compared to other algorithms. 3788 42

CONCLUSION In this paper, a queue based scheduling algorithm of the cloud computing is proposed, namely QHS. We compared the performance of proposed job scheduling algorithm with other grid scheduling algorithms on a computing cloud. Simulation results show that QHS has shown the optimal performance in terms of average waiting times and average response time. Simulation results also exhibit that RR has shown the best average response times compared to other job scheduling approaches. Figure 4. Average Response Time Analysis for 7000 Processes Figure 5. Average Response Time Analysis for 15000 Processes REFERENCES Assunção MD, Costanzo A, Buyya R.2009. Evaluating the cost-benefit of using cloud computing to extend the capacity of clusters. High perform distrib comp. ACM, Munich Blazewicz J, Ecker KH, Pesch E, Schmidt G, Weglarz J. 2001.Scheduling Computer and Manufacturing Processes: Berlin (Springer), Ghanbari Sh. 2001.A New Model in Priority of Project Using AHP, Master Thesis, Mazandaran University, Iran, K.S. Chatrapati, J.U. Rekha, A.V. Babu, Competitive equilibrium approach for load balancing a computational grid with communication delays, Journal of Theoretical and Applied Information Technology 19 (2) (2010) 126 133. Kyriaki Z.2012. Multi-Criteria Job Scheduling in Grid Using an Accelerated Genetic Algorithm, J Grid Computing,10 (2012) 311 323. Li Y.et al.2012. A new Class of Priority-based Weighted Fair Scheduling Algorithm, Physics Procedia,33 ( 2012 ) 942 948. 3789 3786

Madhooshi M. 2007. Developing an integrated model for calculating the customer lifetime value, The 4th International Management conference, Iran. Monir Abdullah MO.et al.2010. Optimal Workload Allocation Model for Scheduling Divisible Data Grid Applications,Future Generation Computer Systems 26, 971-978. Mousumi P. et al.2011. Dynamic job Scheduling in Cloud Computing Based on Horizontal Load Balancing, Int. J. Comp. Tech.Appl., 2 (5)( 2011) 1552-1556. Navendu J. et al.2011. A Truthful Mechanism for Value-Based Scheduling in Cloud Computing, SAGT 2011, LNCS 6982,(2011) 178 189. Shah SNM, Mahmood AKB, Oxley A.2011. Dynamic Hybrid Scheduling Algorithms for Grid Computing, 2011 International Conference on Computer Science (Science Direct ICCS 2011), 402-411. Shokripour A, Mohamed O. et al.2012. New Method for Scheduling Heterogeneous Multi-Installment Systems, Future Generation Computer Systems 28, 1205 1216. Shokripour A, Mohamed O.et al.2012. New Method for Scheduling Heterogeneous Multi-Installment Systems, Future Generation Computer Systems 28, 1205 1216. Silberschatz P, Galvin G, Gagne. 2001.Operating System Concepts, sixth edition, John Wiley & Sons, Inc., Sotomayor B, Keahey K, Foster I.2008 Combining batch execution and leasing using virtual machines.in: ACM/IEEE int symp on high perform distrib comp 2008, Boston Sotomayor B, Montero S, Llorente M.2009. Foster I resource leasing and the art of suspending virtual machines. In: The 11th IEEE int conf on high perform comp and commun. Seoul, Korea Sunita B. et al.2011. Dynamic Task-Scheduling in Grid Computing Using Prioritized Round Robin Algorithm, IJCSI International Journal of Computer Science Issues, 8(2)( 2011) 472-477. Tai-Lung Chen et al, Scheduling of Job Combination and Dispatching Strategy for Grid and Cloud System, GPC,(2010) 612 621. W. Stallings, Operating Systems Internals and Design Principles: Prentice Hall, 2004. Yun-Han L.et al.2011. Improving Job Scheduling Algorithms in a Grid Environment, Future Generation Computer Systems, 27(2011) 991 998. Shahram Behzad received his B.Sc. in Computer Engineering from Parsabad University, Parsabad, Iran, in 2008, and his M.Sc. in Computer Engineering from Islamic Azad University, Germi branch, Ardabil, Iran, in 2013. His research interests include Mobile Ad-hoc Networks, Wireless Sensor Networks, Distributed Systems, Performance Evaluation, and Optimization Algorithms. Reza Fotohi received his B.Sc. in computer engineering from Shabestar University of Applied Science And Technology, Tabriz, Iran, in 2009, and his M.Sc. in Computer Engineering from Islamic Azad University, Germi branch, Ardabil, Iran, in 2013. His research interests include Mobile Ad-hoc Networks, Wireless Sensor Networks, Distributed Systems, Performance Evaluation, and Optimization Algorithms. Mehdi Effatparvar is faculty member of computer engineering department in Islamic Azad University of Ardabil, Iran. He is PhD student in Islamic Azad University of Science and Research. He received his BSc in Computer engineering and MSc in Information Technology from Islamic Azad University of Qazvin, Iran. His research interests include wireless sensor networks, ad-hoc networks, distributed systems and operating systems. 3790 42