Evolutionary game for task mapping in resource constrained heterogeneous environments

https://doi.org/10.1016/j.future.2020.03.026Get rights and content

Highlights

  • Task mapping is formulated as multi-objective problem based on evolutionary game theory on networks.

  • Ecosystem’s heterogeneity is accounted by the model parameters.

  • Power, workload imbalance, resource affinity and data offloading costs are optimized.

  • Our model outperforms first-fit (up to 34.6%) and best-fit methods (up to 35.7%).

Abstract

Power-aware computing is becoming popular using heterogeneous ecosystem. For recent execution units, the heterogeneity is exhibited via the hybrid cores, as well as via virtual and physical asymmetric cores. The inherent performance disparity between different types of execution units at their different clock frequencies offers a great resources scheduling challenge. Multiple metrics (such as throughput, latency, energy cost) are used to decide whether the scheduling is an optimal solution or not. However, in heterogeneous ecosystem, tasks distribution aiming at optimizing costs is not trivial. During the task mapping, one of the primary challenges is to dynamically identify and map the inherent advantages/features of the heterogeneous or hybrid architectures for each individual task. In this work we deal with the task mapping problem using a multi-objective formulation based on evolutionary game theory to optimize a suitable payoff function. This payoff accounts for the power, workload imbalance, task resource affinity and data offloading costs (from host to accelerator). Here, we report that in a very restrictive resource usage scenario (supporting both over and under subscription), the proposed formulation based on Evolutionary Games on Network equation (EGN) can outperform the traditional resource allocation heuristics (such as best-fit, first-fit). Using an extensive set of simulations, we show that our proposed model can outperform first-fit algorithm from more than 5% up to 34.6% and best-fit algorithm from 4% up to 35.7%.

Introduction

The recent evolutionary trend in silicon industry has made it possible to develop heterogeneous system architecture (HSA). Presently, there has been a shift of focus from absolute performances to performances per unit energy. The traditional multitasking approach minimizes the loss of execution cycles by running several tasks simultaneously, while HSA-based platform aims at accomplishing several tasks with multiple resource requirements to further improve the overall power cost and performance (such as latency and throughput). In [1], it has been shown that even heterogeneous instruction set architecture (ISA) can outperform both the homogeneous and the single-ISA heterogeneous-based architecture. In general, the heterogeneous systems can offer more performance improvements [2] and also improve energy consumption [3]. Thus heterogeneous computing could be the answer to Exascale challenge (such as power, concurrency and hardware technology) [4]. However, the performance of execution units shows differences based on the size or type of the applications [5]. On the other hand, the proper tuning of applications can dramatically reduce the performance gap between the heterogeneous execution units [6].

In general, multiple users run different types of tasks using the computational resources of a distributed heterogeneous environment (such as Cloud, HPC platforms). The users individually want to optimize their cost, while the commercial service providers want to improve their profit margins. It has already been shown that traditional load balancing algorithms are not enough to arrive at an optimal energy-aware resource allocation configurations [7]. Mapping of tasks in the distributed environment is not trivial, while the optimal mapping (defined as matching and scheduling) of independent tasks onto heterogeneous systems is a NP-complete problem [8]. However, achieving fair resource allocation in the heterogeneous environment is not trivial as well because (i) the allocation must be both equitable and Pareto efficient [9] and (ii) also during the run time, task migration involves a costly transfer of task-related information.

Application of game theory in distributed computing domain is not new because it offers an efficient framework for tackling the task mapping problems. Specifically, game theory is already been used for: (i) efficient resource management (or load balancing) [10], [11], [12], [13], [14], [15], [16], [17], (ii) energy optimization [18], [19], [20]; (iii) price optimization [21], [22], [23].

Interestingly, evolutionary game theory (EGT) provides a dynamical point-of-view on the standard game theory. Specifically, EGT deals with the dynamical evolution of strategies in a population, under the influence of mechanisms based on the natural selection [24]. In this context, a sub-optimal choice (known as the Nash equilibrium (NE)1  [25]) can be seen as an emerging phenomenon achievable after a sufficiently long time, thanks to the repeated game interactions among the members of the population. Indeed, according to the outcomes obtained after each game interaction, players are able to change their strategies with more outperforming ones. This mechanism is accounted for by the replicator equation (RE), which is a nonlinear set of an ordinary differential equation (ODE) [24], [25], [26]. The state variable of RE is represented by the distribution of strategies over the population and it is largely applied for studying biological systems [27], social networks [28], [29], [30], as well as control theory [31], telecommunications [32], and neuroscience [33]. Remarkably, finding a NE of a static game is not a trivial process [34]. However, it turns out that an attractive steady state of the RE corresponds to a NE of the underlying static game [25], [26]. Therefore, the fascinating idea of a dynamics which naturally converges toward an attractive steady state can be profitably used for finding a NE of a given game (see for example [35], [36], where this approach has been successfully used for solving a graph matching problem for artificial intelligence purposes).

Recently, an extension of RE accounting for networked populations of players has been introduced in [28], [29], [37], namely the Evolutionary Games on Network equation (EGN). In this paper, we exploit this relation between EGN and NE providing a formulation for a task mapper (or mapper) to place the incoming tasks (submitted during the job submission window, see Fig. 1) on the available resources of a distributed system in order to minimize the overall cost. To this aim, we formulate the allocation problem as an instance of a non-cooperative game [36], [38], where the different tasks (players) are competing with each other to satisfy their own requirements, trying at the same time to minimize the related costs. The total payoff consists of power cost, task’s data offload profile (data movement costs from host to the accelerators such as GPUs, PHIs), task’s resource affinity (to the specific hardware type) and also the workload distribution among the (heterogeneous) processing units. To properly account all the different cost sources, we develop a multi-objective payoff function for the proposed game, based on suitable payoff matrices, which depend on the resource features (such as power consumption unitary cost, offload overhead unitary cost, and so on). Moreover, additional nonlinear artificial costs have been added to the multi-objective payoff function to take into account the resource capacity constraints. Finally, the developed EGN is exploited to find out NE (i.e., a sub-optimal assignment of resources to tasks) of the evolutionary game in an efficient way. To summarize, the main contributions of the paper are:

  • We propose a formulation of the task mapping problem using EGN. In particular, this game is based on a payoff function composed of four conflicting objective functions.

  • The EGN equation is used for finding NE of the game, and hence sub-optimal solutions for the task mapping problem.

  • The effectiveness of the proposed approach is also demonstrated after comparing the EGN equation with well-known heuristics such as the best-fit algorithm (BFA), and the first-fit algorithm (FFA). We have shown that our EGN-based model can outperform FFA 5.1% (when the resource usage limit is set to 50%), 24.1% (resource usage limit is set to 80%), 34.6% (limit is 100%) and 34.1% (over-subscription, limit set to 120%). Similarly, our model performs 4.1% (usage limit is set to 50%), 31.7% (limit increased to 50%), 35.7% (limit is 100%), and 31.3% (limit set to 120%) better compared to the BFA.

Rest of the paper is organized as follows: Section 2 presents the relevant related research works. The general formulation of the task mapping problem is described in Section 3, while Section 4 contains the fundamental elements of evolutionary game theory used in this work. Later, the proposed model is introduced in Section 5 and Section 6 reports the numerical results obtained by simulating the mathematical model together with elaborated discussion. Section 7 presents results on the robustness of the proposed model. Concluding remarks and plausible future developments are mentioned in Section 8.

Section snippets

Related work

In the literature, the game theory-based models are mostly used in workload balancing, price model and also in power cost optimization.

Load balancing: In [10] the authors proposed an approach to balance the network traffic load on each of the communication links between the physical network links and geo-distributed Cloud data centers (DCs). In this work, they propose a periodical bandwidth allocation strategy using game theory while considering the workload conditions of both the Internet and

Problem formulation

Here, we are explaining the task mapping problem for heterogeneous environments that will be tackled by a mathematical model based on evolutionary game theory on graphs (in Section 5). Task mapping (consists both matching and scheduling) [48] is a process to place a set of tasks that meets required computing resource requirements. Such decisions can greatly influence system performance. User tasks can be characterized in more complex ways together with other systems related factors. The user(s)

Background on evolutionary game on networks

Game theory is well-known to model the decision making process by groups of individuals, hereafter called players, where game strategies are available alternatives to be chosen. Often, this decisional process can be repeated over time, thus giving rise to the Evolutionary Game Theory (EGT), which provides dynamical models for describing the evolution of strategies over time, eventually allowing only the fittest ones to survive. This idea is inspired by the biological mechanism known as natural

Modeling the task mapping problem using EGN

During the task mapping, the user tasks compete with each other to get processed by the available finite resources and to minimize their total execution costs. In the following, it will be clear that minimizing those costs corresponds to maximize a payoff function accounting for the opposite sign of costs themselves. The payoff function of a single task depends on the decision of the task itself, as well as the decisions of all the other tasks running inside the system. In this work, we

Experimental results

For showing the efficacy of the proposed model, we have carefully selected the hardware and also three different tasks to build a realistic experimental setup. Numerical methods for solving ODEs can be used to simulate the time evolution of the EGN equation until a steady state is reached [36]. This steady state corresponds to a NE which is considered as the desired (sub)optimal task allocation. In this work, we exploit this key idea to find a solution for the mapping problem. Selecting the

Robustness of the model

To analyze the robustness of the results presented in the previous Section, we performed several numerical experiments by setting wPC=wOL=wAF=wOL=1 and limiting the maximum resource usage to 50% (see the experimental setup of subplot 3 of Fig. 6). Specifically, we generated 10000 initial conditions X(z)(0)={x1(z)(0),,xN(z)(0)}, with z{1,,10000} and xi(z)(0)=[xi,1(z)(0),,xi,M(z)(0)], randomly chosen in the feasible set, (i.e. for each i, j=1Mxi,j(z)(0)=1 and xi,j(z)(0)(0,1) for each j).

Closing remarks and future work

Allocating tasks in the heterogeneous environment is not easy especially when multiple resources, performance or cost-related constraints must be satisfied. In this paper, we have proposed a EGN-based formulation for an efficient task mapping in a heterogeneous environment. Specifically, we have formulated our payoff as a collection of four components which primarily can be tuned according to the system administrator’s preferences/requirements. We have compared our proposed model with widely

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Acknowledgments

Authors wish to thank the editor and the anonymous referees for the helpful and insightful comments, which greatly improved the quality of this paper.

Dario Madeo received the M.S. degree in Computer and Automation Engineering cum laude, and the Ph.D. degree in Information Engineering and Science from the University of Siena, Italy, in 2011 and 2015, respectively. He is currently a postdoctoral research associate at the Department of Information Engineering and Mathematics of the University of Siena, Italy. His research activity is mainly focused on evolutionary games on networks, mathematical modeling, identification and control of dynamical

References (60)

  • VenkatA. et al.

    Harnessing ISA diversity: Design of a heterogeneous-ISA chip multiprocessor

  • KumarR. et al.

    Single-ISA heterogeneous multi-core architectures for multithreaded workload performance

  • KesturS. et al.

    Blas comparison on fpga, cpu and gpu

  • SchulteM.J. et al.

    Achieving exascale capabilities through heterogeneous computing

    IEEE Micro

    (2015)
  • FowersJ. et al.

    A performance and energy comparison of FPGAs, GPUs, and multicores for sliding-window applications

  • LeeV.W. et al.

    Debunking the 100X GPU vs. CPU myth: an evaluation of throughput computing on CPU and GPU

    ACM SIGARCH Comput. Archit. News

    (2010)
  • IbarraO.H. et al.

    Heuristic algorithms for scheduling independent tasks on nonidentical processors

    J. ACM

    (1977)
  • RenY. et al.

    Cielo: An evolutionary game theoretic framework for virtual machine placement in clouds

  • A. Ghodsi, M. Zaharia, B. Hindman, A. Konwinski, S. Shenker, I. Stoica, Dominant resource fairness: Fair allocation of...
  • WeiG. et al.

    A game-theoretic method of fair resource allocation for cloud computing services

    J. Supercomput.

    (2010)
  • TengF. et al.

    A new game theoretical resource allocation algorithm for cloud computing

  • SubrataR. et al.

    Game-theoretic approach for load balancing in computational grids

    IEEE Trans. Parallel Distrib. Syst.

    (2008)
  • ChaseJ.S. et al.

    Managing energy and server resources in hosting centers

    ACM SIGOPS Oper. Syst. Rev.

    (2001)
  • ZahediS.M. et al.

    Computational sprinting: Architecture, dynamics, and strategies

    ACM Trans. Comput. Syst.

    (2017)
  • KhanS.U. et al.

    A cooperative game theoretical technique for joint optimization of energy consumption and response time in computational grids

    IEEE Trans. Parallel Distrib. Syst.

    (2009)
  • WeiW. et al.

    Imperfect information dynamic stackelberg game based resource allocation using hidden Markov for cloud computing

    IEEE Trans. Serv. Comput.

    (2016)
  • ArdagnaD. et al.

    A game theoretic formulation of the service provisioning problem in cloud systems

  • GhoshP. et al.

    A game theory based pricing strategy for job allocation in mobile grids

  • SmithJ.M.

    Evolution and the theory of games

  • WeibullJ.W.

    Evolutionary Game Theory

    (1997)
  • Cited by (0)

    Dario Madeo received the M.S. degree in Computer and Automation Engineering cum laude, and the Ph.D. degree in Information Engineering and Science from the University of Siena, Italy, in 2011 and 2015, respectively. He is currently a postdoctoral research associate at the Department of Information Engineering and Mathematics of the University of Siena, Italy. His research activity is mainly focused on evolutionary games on networks, mathematical modeling, identification and control of dynamical complex systems, nonlinear time series analysis and brain dynamics. He is also interested in the mathematical modeling and computer simulation of nanoparticle systems.

    Somnath Mazumdar is a Postdoctoral Researcher and his research interests focuses on heterogeneous HPC computing, computer architectures, performance analysis. He holds a Ph.D. in Computing Systems from University of Siena, Italy, as well as a MS in Distributed Computing from Polytech Nice Sophia Antipolis, France. Somnath also has worked on multiple EU/International research projects.

    Chiara Mocenni received the Laurea degree in mathematics in 1992 and the Ph.D. degree in physical chemistry in 1998 from the University of Siena, Italy. She is presently Associate Professor at the Department of Information Engineering and Mathematics (DIISM), University of Siena, where she teaches Complex Dynamic Systems and Game Theory. She joined the Systems and Control Group of DIISM in 1998 as Research Associate. From 2000 until its deactivation in 2012, she served on the Board of Directors of the Center for the Study of Complex Systems of the University of Siena. She coordinates a research group on Complex Systems. Her main research interests are mathematical modeling and identification of nonlinear dynamical systems, spatiotemporal nonlinear time series analysis, modeling of environmental and physiological systems, evolutionary games on networks.

    Roberto Zingone received the MS degree in Computer and Automation Engineering from the University of Siena, Italy, in 2012. He has over 4 years of experience as a senior enterprise IT analyst and consultant for one of the largest and oldest banks in Italy. He is currently a research associate at the Department of Information Engineering and Mathematics of the University of Siena, Italy. His research activity mainly focuses on complex systems, evolutionary games on networks and nonlinear time series analysis, with applications to brain dynamics and neurological disorders and optimization of distributed computing.

    All the authors contributed equally. Somnath Mazumdar started the work while he was Ph.D. student at Università degli Studi di Siena.

    View full text