Analysis of Application Sensitivity to System Performance Variability in a Dynamic Task Based Runtime

Analysis of Application Sensitivity to System Performance Variability in a Dynamic Task Based Runtime

Analysis of Application Sensitivity to System Performance Variability in a Dynamic Task Based Runtime Galen Shipmany Kevin Pedretti Ramanan Sankaran Patrick McCormick Stephen Olivier Oak Ridge National Laboratory Los Alamos National Laboratory Kurt B. Ferreira Oak Ridge, TN, USA Los Alamos, NM, USA Sandia National Laboratories Albuquerque, NM, USA Sean Treichler Michael Bauer Alex Aiken NVIDIA Stanford University Santa Clara, CA Stanford, CA, USA ABSTRACT tem thereby providing a level of isolation of system services Application scalability can be significantly impacted by node from the application. Management of resource contention level performance variability in HPC. While previous studies at the application level is handled by the application de- have demonstrated the impact of one source of variability, veloper. Many application developers opt for a static par- OS noise, in message passing runtimes, none have explored titioning of resources mirroring domain decomposition due the impact on dynamically scheduled runtimes. In this pa- to its simplicity. However, this approach leaves many HPC per we examine the impact that OS noise has on the Le- applications vulnerable to the effects of OS noise, especially gion runtime. Our work shows that 2:5% net performance at scale. variability at the node level can result in 25% application The growing effects of OS noise has been one of the con- slowdown for MPI+OpenACC based runtimes compared to tributing factors in the development of dynamic runtime 2% slowdown for Legion. We then identify the mechanisms systems such as Charm++ [1], the Open Community Run- that contribute to better noise absorption in Legion, quan- time [2], Uintah [3], StarSs [4] and Legion [5]. Dynamic run- tifying their impact. Furthermore, we assess the impact of time systems have the potential to react to the performance OS noise at the granularity of communication, task schedul- variability introduced by resource contention and mitigate ing, and application level tasks within Legion demonstrating its effects. While prior work has examined the impact of that where noise is injected can significantly effect scalabil- OS noise within static runtime environments, no prior work ity. The implications of this study on OS and runtime ar- has examined the effects of OS noise on dynamic runtime chitecture is then discussed. systems. Our work explores these effects and demonstrates the ways that a dynamic runtime system such as Legion can mitigate the effects of OS noise in comparison to traditional 1. INTRODUCTION static systems such as MPI and OpenACC. We investigate Modern high performance computing systems and appli- these effects within the context of S3D, a production-grade cations are composed of a variety of system and user level turbulent combustion simulation. This paper makes the fol- services, all of which are subject to varying degrees of perfor- lowing novel contributions: mance variability. In particular, system level services such 1. A comparison of the impact of OS noise on both static as parallel file systems, I/O forwarding layers, and system and dynamic runtime systems using a real-world ap- monitoring daemons can compete with application threads plication for node level and system wide resources. Similarly, at the 2. An analysis of the mechanisms that help absorb OS application level, multi-physics packages and coupled ana- noise in a dynamic runtime lytics can create contention for resources. Emerging power 3. Identification of dynamic runtime tasks that are more management services such as power capping at the node and susceptible to OS noise CPU/GPU level can introduce similar performance variabil- ity in the form of application and system level threads com- Section 2 gives a brief overview of the Legion runtime sys- peting for execution under a fixed power budget. All of these tem. Section 3 describes each version of the S3D application sources of variability can significantly harm the performance used in this study. Our evaluation and results are then pre- and scalability of production applications. sented in Section 4 and we conclude with implications of our Traditionally the management of resource contention has work for future systems in Section 5. been an operating system (OS) level function and in HPC the general approach has been to minimize OS level ser- vice interrupts also known as OS noise. In practice, this is 2. THE LEGION RUNTIME SYSTEM done by containing OS level services through core special- Legion [5, 6, 7] is a dynamic task-based runtime system ization or by function shipping OS services to a remote sys- which relies on a dynamic program analysis to both discover parallelism and map applications on target machines. Le- a GPU's framebuffer, or remote-DMA-accessible memory on gion programs are structured as a hierarchical tree of tasks, another node), with edges indicating memories accessible with tasks permitted to launch arbitrary numbers of sub- to a given processor or pairs of memories between which tasks. All data in Legion is stored within logical regions, a efficient copies can be performed. relational abstraction that decouples data specification from The client's control over the system is maximized by hav- both its layout and placement in the memory hierarchy. Im- ing the performance of operations mapped to the machine portantly, all tasks are required to name the set of logical model be as predictable as possible. Thus, Realm focuses on regions that they will access during their execution. The Le- providing an efficient mechanism for execution and not in- gion runtime performs a dynamic dependence analysis based terfering with the mapping decisions made by the client. It on the logical region usage of different tasks to implicitly ex- also tries to reduce, or at least isolate, performance variabil- tract parallelism from Legion programs. From this analysis, ity in the the underlying operating system and hardware. the Legion runtime constructs an explicit asynchronous task The most obvious way in which Realm does this is in the graph to be executed by the lower-level Realm runtime (see way it sets the CPU affinity masks of threads. Realm uses Section 2.1). To hide the latency of this analysis, Legion a large number of threads internally: relies on a deferred execution model [8], in which the run- • A persistent thread is created for each \CPU" proces- time is performing its dynamic analysis well in advance of sor exposed in the machine graph. (The number to the actual application execution. This allows Legion to dis- expose is configurable at runtime startup.) All tasks cover task parallelism, execute tasks out-of-order, and hide mapped onto that processor by the client will be ex- operation latencies while still preserving sequential program ecuted in this thread. With good mapping decisions, semantics. these threads should be constantly busy. The dynamic analysis performed by Legion is important • A persistent thread is created for each \GPU" proces- for two reasons. First, automatic extraction of parallelism sor that runs application tasks mapped to that proces- eases the burden on programmers. Second, it makes it pos- sor. The typical activity of a task mapped to a GPU sible to dynamically adapt how a Legion program is mapped processor is to perform CUDA kernel launches, and onto a target architecture. To map a Legion application onto these threads spend most of their time waiting for the a particular machine, every task is assigned a processor on CUDA operations to complete. which to run, and a physical instance must be created (or • Persistent threads are also created for \utility" proces- reused) in some memory for each logical region requested by sors, which are used by the Legion runtime for its dy- a task. These decisions are referred to as the mapping of a namic analysis. This analysis work is bursty, so while Legion program. In Legion, all of these mapping decisions is it common to expose several utility processors, they are exposed directly to the application programmer through are often idle. a mapping interface. A crucial aspect of the Legion mapping • Background DMA threads are created for each NUMA interface is that it allows the construction of mapper objects domain and each GPU to perform copies that have (also called mappers) to handle dynamic queries from the been requested by the Realm client. These threads runtime about how to map tasks and logical regions. By are often very busy, but entirely memory-bound. making this interface dynamic, mappers can introspect the • Finally, several background progress threads are cre- state of the application and the underlying hardware when ated to deal with sending and receiving inter-node mes- making mapping decisions. For example, mappers can ob- sages via the GASNet API[9]. serve which processors are executing tasks faster or slower (possibly depending on OS noise) and schedule tasks onto Realm uses sched_setaffinity on Linux-based systems more lightly loaded processors. A mapper can continually to control which CPU cores may be used by each thread. For monitor the changing state of the machine, and decide the each \CPU" processor thread, an available CPU core is cho- best course of action as anomalous behavior occurs through- sen and the thread's affinity mask is set to include only that out a run. core. The core is also removed from every other thread's affinity mask, eliminating processor interference due to any 2.1 Realm other Realm threads. On machines that support Hyper- Threading[10], the second core is removed from the affinity Realm[8] is a low-level runtime that provides a portable mask of all threads. Once all \CPU" processor threads have interface for execution of asynchronous task graphs on sys- been assigned their cores, all other Realm threads share the tems with heterogeneous computational resources and com- remaining cores, including any enabled by Hyper-Threading, plicated memory hierarchies.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    9 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us