A generalized model for investigating scheduling schemes in computational clusters
Full text
A Generalized Model for Investigating Scheduling Schemes in Computational Clusters Tien V. Do a,c,∗,Binh T. Vu b, Xuan T. Tran a,c , Anh P. Nguyen a aDepartment of Networked Systems and Services, Budapest University of Technology and Economics, H-1117, Magyar tud´osok k¨or´utja 2., Budapest, Hungary. bInter-University Centre for Telecommunications and Informatics, Budapest University of Technology and Economics, 4028 Debrecen, Kassai ´ut 26., Hungary cVietnam International Research Institute of Sciences, Ho Hoan Kiem 1428, Hanoi, Vietnam Abstract In this paper, we present a generalized model for the performance evaluation of scheduling compute-intensive jobs with unknown service times in computational clusters. We propose the application of parameters defined in the SPECpower ssj2008 benchmark of the Standard Performance Evaluation Corporation to construct a performance evaluation model. In addition, we also define a method to rank physical servers based on either the high performance priority or the energy efficiency priority, and measures to characterize the performance of computational clusters. We investigate three schemes (separate queue, class queue and common queue) for buffering jobs in a computational cluster that is built from Commercial Off- The-Shelf (COTS) servers. Numerical results show that the buffering schemes do not have impact on performance measures related to the energy consumption of the investigated cluster. However, the buffering schemes play an important role in the quality of service parameters such the waiting time and the response time experienced by arriving jobs. Furthermore, Dynamic Voltage and Frequency Scaling should be carefully applied if one wants to reduce the energy consumption of computational clusters. Keywords: heterogeneous cluster model, buffering scheme, separate queue, class queue, common queue, ranking of servers T. V. Do et al. A Generalized Model for Investigating Scheduling Schemes in Computational Clusters. Simulation Modell. Practice and Theory, DOI:10.1016/j.simpat.2013.05.003, 2013 Accepted for publ. in Simulation Modell. Practice and Theory
1 Introduction The advance of high-speed networking and powerful computers together with the rapid decline of hardware costs led to the widespread application of distributed systems to offer services [1,2]. In such computational grid systems, job scheduling is multi-criteria in nature and is a vital task in state-of-the-art resource allocation studies. The rapid increase in the complexity of computational clusters and the number of users has a significant impact on the energy consumption, which is to be taken into account in the operation of grid systems. In the literature job allocation algorithms are proposed to schedule arriving jobs in computational clusters. These algorithms are applied dominantly at two levels: grid- and cluster-level. Scheduling policies covering and combining both of these levels are listed in [3–5] and references therein. In addition, some algorithms are implemented with regard to the knowledge about characteristics of jobs. These may belong to either clairvoyant [6,7] or non-clairvoyant algorithms [8,9]. Nowadays, optimizing energy consumption has become as crucial as improving performance [10,11]. Several power management (PM) practices can be applied: the on-off technique completely shuts down the idle components (e.g., disk, CPU), while Dynamic Voltage and Frequency Scaling (DVFS) [12] lowers the operating voltage/frequency of CPU to reduce the energy consumption. It is worth mentioning that PM is supported in modern COTS servers. Furthermore, the energy consumption of computational clusters can be reduced if the operator of computational clusters systematically exploits the resource heterogeneity of distributed systems with many different types of processors of different power characteristics and performance capacities. This was the main motivation of the investigations performed by Zikos and Karatza [13], where three policies applicable for cluster-level scheduling were compared: SQEE (Shortest Queue based policy with Energy Efficiency priority), SQHP (Shortest Queue based policy with High Performance priority), and PBP-SQ (Performance-Based Probabilistic - Shortest Queue). Their simulation results indicated that SQEE is the best from the aspect of energy consumption, SQHP outperforms the other two schemes at the price of higher energy consumption, and PBP-SQ proved to be the worst among the three schemes. Note that we ∗Corresponding author. Tel.: +36 14632070. Email address: [email protected] (Tien V. Do). 2
have also examined the configuration studied by Zikos and Karatza [13] and can confirm the conclusions of [13]. In addition, Terzopoulos and Karatza [3], Gkoutioudi and Karatza [14] also investigated the scheduling in real-time grid systems. In this paper, we follow the same approach applied in the study by Zikos and Karatza [13], where compute-intensive jobs with unknown service times are to be scheduled in a cluster with heterogeneous servers. Jobs are executed by servers in a cluster. Compared to previous works [13,3,14], this paper provides a generalized model based on parameters defined by Standard Performance Evaluation Corporation. We also define a method to rank physical servers based on either high performance priority or energy efficiency priority, and measures to characterize the performance of computational clusters. We investigate three schemes (Separate Queue, Class Queue and Common Queue) for buffering jobs in a computational cluster that is built from Commercial Off-The-Shelf (COTS) servers. These proposals allow a systematic way to investigate the performance of computational clusters. Simulation results show that the buffering schemes do not have impact on performance measures related to the energy consumption of the investigated cluster, but are significant factors regarding the waiting time and the response time experienced by arriving jobs. In addition, we also investigate a saving on the energy consumption when a specific server is switched off if there is no job allocated to the specific server and when a specific server applies DVFS if a job is allocated to the server. Results show that DVFS should be carefully applied if one wants to reduce the energy consumption of computational clusters. The rest of the paper is organized as follows. In Section 2, a generalized model along with methods to rank physical servers is proposed. Simulation results are presented in Section 3. Finally, Section 4 concludes the paper. 2 A Generalized Model and Scheduling Algorithms We consider a computational cluster, which serves compute-intensive jobs. Following [13], we assume that jobs •can be executed on any server, •are attended to by the First Come First Served (FCFS) service policy, •are non-preemptible, which means they cannot be suspended until completion, •have service times unknown to the local scheduler. 3
Jobs are to be executed by physical servers according to a specific scheduling algorithm. In what follows, we describe scheduling algorithms that allocate arriving jobs to a computational cluster. To make the presentation comprehensible, the classification of servers is provided in Section 2.1. Then, the description of scheduling algorithms is given in Section 2.2. 2.1 Ranking of Servers In a computational cluster, each physical server belongs to a specific server type. Let Sdenote the set of server types and K=|S|be the number of server types. Server type s,s∈S, is characterized by parameters Cs,Pac,s and Pid,s, where Csis the ssj ops value (the number of operations finished during the measurement interval divided by the number of seconds defined for this interval, showing the throughput –workload operations per second– for this period at 100% target load) and Pac,s denotes the average active power measured according to the SPECpower ssj2008 benchmark of the Standard Performance Evaluation Corporation (SPEC) at 100% target load (99.7% actual load). We assume that when a server is busy, it functions at the full load with the power consumption of Pac,s. When a server is idle, the server stops CPU main internal clocks via software and Pid,s is the power consumption of a server in idle state. We introduce two functions as follows. rp(s) = Cs max i∈SCi , s ∈S, (1) re(s) = Cs Pac,s max i∈S Ci Pac,i s∈S. (2) It is worth emphasizing that Cs/Pac,s,s∈S, is the performance to power ratio of class s. Let Spand Sedenote the ordered sets of server types that are ranked using function (1) and (2), respectively. In ranking Sp(the high performance priority ranking) and Se(the energy efficiency priority ranking), •server types are ranked from 1 to |S|=Kbased on the computed values rp(s) and re(s), s∈S, respectively; •number one is assigned to server type arg max srp(s) and arg max sre(s), respectively; 4
•rank K, assigned to server type arg min srp(s) and arg min sre(s), respectively. For ranking Sp, if there are two server types with the same ssj ops value, the server type of higher average active power gets a higher index. We organize physical servers based on their type. Physical servers of the same type form a class. The classes are ordered according to either ranking Sp (when the high performance priority is chosen) or ranking Se(when the energy efficiency priority is preferred). Physical servers are indexed by pair (i, j), (i= 1 ...,K;j= 1,...,M(i)). Note that server (1, j), j= 1,...,M(1), has the highest priority and server (K, j), j= 1,...,M(K), has the lowest priority. 2.2 Scheduling The task of scheduling algorithms is to allocate arriving jobs to physical servers. Scheduling algorithms can take into account several factors such as the performance, the power consumption, the number of waiting jobs. Furthermore, the organization of waiting space for jobs that are not immediately served upon their arrival is an important question. In [13], the authors assumed that an arriving job will wait in a specific physical server after the scheduling decision, which is quite straightforward from the aspect of implementation. In this paper, we call this queueing solution as a separate queue scheme which is illustrated in Figure 1. Furthermore, we also investigate two further schemes for buffering jobs. •Separate Queue Scheme: an arriving job will wait in a specific physical server after the scheduling decision presented in Algorithm 1. As one observes, the scheduling algorithm chooses the server with the shortest queue. If there are more idle servers or servers of the same queue length, a server is selected based on the priority of its server type. •Class Queue Scheme: there is a common buffer associated to each class (Figure 2). Jobs scheduled to a specific class wait in the buffer of a specific class when all servers in the specific class are busy. When a job departs from any physical server in the specific class, the first waiting job in the buffer of the specific class will be immediately routed to that server. This procedure is also performed when an arriving job that is routed to the buffer finds an empty server in the specific class. Algorithm 2 routes an arriving job based on criteria: idle servers, the priority and the shortest queue length of classes. •Common Queue Scheme: there is one buffer for storing jobs. On a job arrival, if the LS finds all servers busy, the job will be stored in the common queue and will wait for an idle server. A job is immediately served if Algorithm 3 5
finds an idle server upon its arrival. LS . . . . . . . . . . . . . . . . . . . . . } Class 1 . . . . . . . . . . . . . . . . . . . . . . . . } Class 2 . . . . . . . . . . . . . . . . . . . . . } Class K Server queues Fig. 1. Separate Queue LS . . . . . . . . . } Class 1 . . . . . . . . . . . . } Class 2 . . . . . . . . . } Class K Class queues Fig. 2. Class Queue LS . . . } Class 1 . . . . . . . . . } Class 2 . . . } Class K Common queue Fig. 3. Common Queue 6
Algorithm 1 The scheduling algorithm for Separate Queue best server ←(1,1) for i= 1 →Kdo for j= 1 →M(i)do if server (i, j) is FREE then ⊲free server found in class i best server ←(i, j) GOTO SCHEDULE else if queue length of server (i, j)<queue length of server best server then best server ←(i, j) end if end if end for end for SCHEDULE: ROUTE job to queue of server best server Algorithm 2 The routing algorithm for Class Queue best class ←1 for i= 1 →Kdo for j= 1 →M(i)do if server (i, j) is FREE then ⊲free server found in class i best class ←i GOTO SCHEDULE else if queue length of class i < queue length of class best class then best class ←i end if end if end for end for SCHEDULE: ROUTE job to queue of class best class 7
Algorithm 3 The routing algorithm for Common Queue for i= 1 →Kdo for j= 1 →M(i)do if server (i, j) is FREE then ⊲free server found in class i free server ←(i, j) GOTO SCHEDULE end if end for end for SCHEDULE: if found free server then ROUTE job to queue of class free server else ROUTE job to Common Queue end if 8
It is worth emphasizing that the practical implementation of the Separate Queue Scheme is the easiest. That is, waiting jobs can be placed inside each physical server. For example, jobs and parameters can be allocated in the local disk of each physical server. To implement the Separate Queue Scheme, the Class Queue Scheme and the Common Queue Scheme we propose a practical method as follows. •A file server is operated in a cluster. Files are accessed using Server Message Block/the Common Internet File System (SMB/CIFS) protocol[15] or Network File System (NFS) protocol [16]. •Each queue is allocated a separate spool area/directory in the file server. The spool areas are accessible by the Local Scheduler (LS) and the respective servers. •The LS maintains the communication with the physical servers in the cluster with the help of a Grid Computing Framework that allows loading and executing tasks. The LS also has the knowledge on the information of the occupancy of each queue and the states of physical servers in the cluster. Based on the knowledge, the communication mechanism and the common spool areas, waiting jobs can be easily allocated to servers depending on the applied buffering approaches. The allocation can be performed quickly in the fast local network of the cluster, which minimally affects the performance of the cluster. 2.3 Performance Measures and Energy Metrics Let wlbe the waiting time in queue of job lbefore service and slbe the service time that takes the server to process job l. The mean waiting time WT(n) and mean service time of ncompleted jobs are calculated as follows: WT(n) = 1 n n X l=1 wl and ST(n) = 1 n n X l=1 sl. Response time rlof job lis the time period between the arrival instant and the departure instant of job l. We have rl=wl+sl. The average response time RT(n) of njobs that finished service is RT(n) = 1 n n X l=1 rl. 9
1300 1400 1500 1600 1700 50% 60% 70% 80% 90% AAE(W.s/job) U Separate-Queue Class-Queue Common-Queue (a) EE policy applied 1300 1400 1500 1600 1700 50% 60% 70% 80% 90% AAE(W.s/job) U Separate-Queue Class-Queue Common-Queue (b) HP policy applied Fig. 10. AEswitch−off vs. system load In Figures 9 and 10, the energy consumption per job is compared when idle servers are not switched off and are switched off, respectively. It can be observed that the energy consumption is independent of the scheduling schemes. When idle servers are not switched off (Figure 9), the average operating energies of both policies have the greatest difference noticeable at medium system load, where EE consumes 1769.27 W.s/job and HP 1989.82 W.s/job. The energy consumption per job converges to 1550 W.s/job as the load increases. When idle servers are switched off (Figure 10), the HP and EE policies show opposing tendencies: surprisingly, with HP priority, the energy consumption per job decreases as system load grows, while AEswitched−off increases with EE priority. The phenomenon can be explained by the trade-off between performance and energy saving. At medium system load, most job requests are executed on servers operating with lower energy cost, thus the energy dedicated to the execution of jobs is significantly smaller (1399 W.s/job vs. 1649 W.s/job). As demand for jobs grows, the use of high performance servers becomes inevitable, since the policies are based on shortest queue. In consequence, the difference in AE between SQEE and SQHP decreases at high system load (1510 W.s/job vs 1535 W.s/job at 90% of utilization). The impact of saving energy by switching off servers is illustrated in Figure 11. It is observed that the saving decreased as the load is increased. 3.2.3 DVFS To investigate the impact of DVFS, we create a scenario (applying Common Queue buffering scheme) where processors reduce their frequency and voltage compared to the full power (at %100 target load). In this scenario, the ssj ops value (corresponds to 70% of the full capacity) and the power consumption of the servers applying DVFS when they execute jobs are as follows: 16
1000 1100 1300 1600 2000 50% 60% 70% 80% 90% Mean system energy consumption(W.s/job) U No switch-off Switch-off (a) EE policy applied 1000 1200 1400 1600 1800 2000 50% 60% 70% 80% 90% Mean system energy consumption(W.s/job) U No switch-off Switch-off (b) HP policy applied Fig. 11. Mean energy consumption vs. system load •Acer AW2000h-Aw170h F2 (Intel Xeon E5-2670): ssj ops is 4517449 and the power is 1169W. •Acer AW2000h-AW170h F2 (Intel Xeon E5-2660): ssj ops is 3706521 and the power is 881W. •PowerEdge R820 (Intel Xeon E5-4650L): ssj ops is 1961157 and the power is 317W. In Figures 12 and 13, we plot the average response time and the average energy consumption per job vs load for the DVFS scenario and the scenario (denoted as “no DVFS”) with the full processing capacity. It is worth emphasizing that at the same load value the number of arriving jobs is less in the DVFS scenario than in the scenario at the full processing capacity (note that DVFS and “no DVFS” also switch off idle servers). The impact of DVFS is quite drastic: the increase in the average response time is much higher than the reduction in the average energy consumption per job. 1 1.2 1.5 1.8 2.2 2.6 50% 60% 70% 80% 90% Response Time (s) U DVFS+Switch-off No DVFS (a) EE policy and Common Queue applied 1 1.2 1.5 1.8 2.2 2.6 50% 60% 70% 80% 90% Response Time (s) U DVFS+Switch-off No DVFS (b) HP policy and Common Queue applied Fig. 12. Average response time vs. system load In Figures 14, 15 and 16, we plot results when DVFS and “no DVFS” handle the same number of jobs by keeping the same arrival rate. As anticipated, the price of DVFS is the degradation in the quality of service compared to a case when processors function at their full processing capacity, which is 17
800 1000 1200 1400 1600 1800 50% 60% 70% 80% 90% Mean Energy Consumption(W.s/job) U DVFS+Switch-off No DVFS (a) EE policy and Common Queue applied 800 1000 1200 1400 1600 1800 50% 60% 70% 80% 90% Mean Energy Consumption(W.s/job) U DVFS+Switch-off No DVFS (b) HP policy and Common Queue applied Fig. 13. Mean energy consumption vs. system load clearly observable in Figure 14. However, the energy consumption of DVFS is higher than the non-DVFS when EE policy and Common Queue are applied. The impact of DVFS on the energy consumption is only observed for the HP policy and Common Queue buffering (see Figure 16). The results illustrate that DVFS should be carefully tuned if one wants to apply DVFS to reduce the energy consumption of computational clusters. 0.8 1.1 1.5 1.8 2.2 2.5 9.0 10.8 Response Time (s) λ DVFS+Switch-off No DVFS (a) EE policy and Common Queue applied 0.8 1.1 1.5 1.8 2.2 2.5 9.0 10.8 Response Time (s) λ DVFS+Switch-off No DVFS (b) HP policy and Common Queue applied Fig. 14. Average response time vs. λ 0 0.2 0.4 0.6 0.8 1 0 5 10 15 20 CDF of RT x (seconds) No DVFS,lambda = 9.0 DVFS+Switch-off,lambda = 9.0 No DVFS,lambda = 10.8 DVFS+Switch-off,lambda = 10.8 (a) EE policy and Common Queue applied 0 0.2 0.4 0.6 0.8 1 0 5 10 15 20 CDF of RT x (seconds) No DVFS,lambda = 9.0 DVFS+Switch-off,lambda = 9.0 No DVFS,lambda = 10.8 DVFS+Switch-off,lambda = 10.8 (b) HP policy and Common Queue applied Fig. 15. CDF of response times 18
1200 1400 1600 1800 2000 9.0 10.8 Mean Energy Consumption(W.s/job) λ DVFS+Switch-off No DVFS (a) EE policy and Common Queue applied 1200 1400 1600 1800 2000 9.0 10.8 Mean Energy Consumption(W.s/job) λ DVFS+Switch-off No DVFS (b) HP policy and Common Queue applied Fig. 16. Mean energy consumption vs. λ 4 Conclusion In this paper we presented a generalized model for the performance evaluation of scheduling compute-intensive jobs with unknown service times in computational clusters. We gave an implementation of this model on three schemes (Separate Queue, Class Queue and Common Queue), differing in the way incoming jobs are buffered, and on two job-scheduling policies (SQEE, SQHP), prioritizing either energy efficiency or high performance. We defined a ranking methodology of physical servers, which is used to schedule jobs. Numerical results show that the buffering schemes do not affect the energy consumption of the investigated clusters. However, they have a significant impact on the mean response time and mean waiting time of incoming jobs. Furthermore, the Common Queue and Class Queue schemes markedly outperform the Separate Queue scheme. Therefore, a good buffering scheme can result in improved overall cluster performance without increased power consumption and energy cost. Furthermore, Dynamic Voltage and Frequency Scaling should be carefully applied for the purpose of reducing the energy consumption of computational clusters. Acknowledgement The publication was supported by the T´ AMOP-4.2.2.C-11/1/KONV-2012- 0001 project. The project has been supported by the European Union, cofinanced by the European Social Fund. 19
References [1] I. Foster, “The anatomy of the grid: enabling scalable virtual organizations,” The International Journal of High Performance Computing Applications, vol. 15, no. 3, pp. 200–222, 2001. [2] B. Yagoubi and Y. Slimani, “Dynamic load balancing strategy for grid computing,” Transactions on Engineering, Computing and Technology, vol. 13, pp. 260–265, 2006. [3] G. Terzopoulos and H. D. Karatza, “Performance evaluation of a real-time grid system using power-saving capable processors,” The Journal of Supercomputing, vol. 61, no. 3, pp. 1135–1153, 2012. [4] A. Tchernykh, J. M. Ram´ırez, A. Avetisyan, N. Kuzjurin, D. Grushin, and S. Zhuk, “Two level job-scheduling strategies for a computational grid,” in Proceedings of the 6th international conference on Parallel Processing and Applied Mathematics, PPAM’05, (Berlin, Heidelberg), pp. 774–781, Springer- Verlag, 2006. [5] S. Zikos and H. D. Karatza, “Resource allocation strategies in a 2-level hierarchical grid system,” Simulation Symposium, Annual, vol. 0, pp. 157–164, 2008. [6] S. Zikos and H. D. Karatza, “A clairvoyant site allocation policy based on service demands of jobs in a computational grid,” Simulation Modelling Practice and Theory, vol. 19, no. 6, pp. 1465–1478, 2011. [7] S. Zikos and H. D. Karatza, “The impact of service demand variability on resource allocation strategies in a grid system,” ACM Trans. Model. Comput. Simul., vol. 20, pp. 19:1–19:29, Nov. 2010. [8] Y. He, W. Hsu, and C. Leiserson, “Provably efficient online non-clairvoyant adaptive scheduling,” in Parallel and Distributed Processing Symposium, 2007. IPDPS 2007. IEEE International, pp. 1 –10, march 2007. [9] S. Zikos and H. D. Karatza, “Communication cost effective scheduling policies of nonclairvoyant jobs with load balancing in a grid,” Journal of Systems and Software, vol. 82, no. 12, pp. 2103–2116, 2009. [10] T. V. Do and C. Rotter, “Comparison of scheduling schemes for on-demand iaas requests,” Journal of Systems and Software, vol. 85, no. 6, pp. 1400–1408, 2012. [11] L. Benini, A. Bogliolo, and G. De Micheli, “A survey of design techniques for system-level dynamic power management,” Very Large Scale Integration (VLSI) Systems, IEEE Transactions on, vol. 8, pp. 299 –316, june 2000. [12] M. Weiser, B. Welch, A. Demers, and S. Shenker, “Scheduling for reduced CPU energy,” in Proceedings of the 1st USENIX conference on Operating Systems Design and Implementation, OSDI ’94, (Berkeley, CA, USA), USENIX Association, 1994. 20
[13] S. Zikos and H. D. Karatza, “Performance and energy aware cluster-level scheduling of compute-intensive jobs with unknown service times,” Simulation Modelling Practice and Theory, vol. 19, no. 1, pp. 239–250, 2011. [14] K. Gkoutioudi and H. D. Karatza, “Multi-criteria job scheduling in grid using an accelerated genetic algorithm,” J. Grid Comput., vol. 10, no. 2, pp. 311–323, 2012. [15] C. Hertel, Implementing CIFS - The Common Internet File System. Prentice Hall, 2003. [16] B. Callaghan, B. Pawlowski, and P. Staubach, “NFS Version 3 Protocol Specification.” RFC 1813 (Informational), June 1995. [17] P. Fishwick, “Simulation toolkit.” http://www.cs.sunysb.edu/~algorith/ implement/simpack/implement.shtml. [18] SPEC, “Acer AW2000h-Aw170h f2 (intel xeon e5-2670) machine.” http:// www.spec.org/power_ssj2008/results/res2013q1/power_ ssj2008-20121212-00590.html, February 2013. [19] SPEC, “Acer AW2000h-Aw170h f2(intel xeon e5-2660) machine.” http://www. spec.org/power_ssj2008/results/res2012q4/power_ ssj2008-20120918-00546.html, October 2012. [20] SPEC, “PowerEdge r820 (intel xeon e5-4650l) machine.” http://www.spec.org/power_ssj2008/ results/res2012q4/power_ssj2008-20121113-00586.html, November 2012. [21] Standard Performance Evaluation Corporation. http://www.spec.org/. [22] SPEC, “ssj ops.” http://www.spec.org/power/docs/SPECpower_ ssj2008-Result_File_Fields.html#Ops. 21