Opportunities for Leveraging OS Virtualization in High-End Supercomputing

Opportunities for Leveraging OS Virtualization in High-End Supercomputing

Opportunities for Leveraging OS Virtualization in High-End Supercomputing Kevin T. Pedretti Patrick G. Bridges Sandia National Laboratories∗ University of New Mexico Albuquerque, NM Albuquerque, NM [email protected] [email protected] ABSTRACT formance, making modest virtualization performance over- This paper examines potential motivations for incorporating heads viable. In these cases,the increased flexibility that vir- virtualization support in the system software stacks of high- tualization provides can be used to support a wider range end capability supercomputers. We advocate that this will of applications, to enable exascale co-design research and increase the flexibility of these platforms significantly and development, and provide new capabilities that are not pos- enable new capabilities that are not possible with current sible with the fixed software stacks that high-end capability fixed software stacks. Our results indicate that compute, supercomputers use today. virtual memory, and I/O virtualization overheads are low and can be further mitigated by utilizing well-known tech- The remainder of this paper is organized as follows. Sec- niques such as large paging and VMM bypass. Furthermore, tion 2 discusses previous work dealing with the use of virtu- since the addition of virtualization support does not affect alization in HPC. Section 3 discusses several potential areas the performance of applications using the traditional native where platform virtualization could be useful in high-end environment, there is essentially no disadvantage to its ad- supercomputing. Section 4 presents single node native vs. dition. virtual performance results on a modern Intel platform that show that compute, virtual memory, and I/O virtualization 1. INTRODUCTION overheads are low. Finally, Section 5 summarizes our con- There is an old saying that \every problem in computer sci- clusions. ence can be solved with another level of abstraction." This is commonly used in a facetious way and followed up with something to the effect of, \but performance will be horri- 2. PREVIOUS WORK Early work outlining several motivation for migrating HPC ble." Platform virtualization, where an extra level of ab- workloads to virtual machines was presented in [9]. These straction is inserted between physical hardware and the OS, include ease of management (e.g., live migration, checkpoint- indeed solves many challenging problems, but in a high per- restart), the ability to run custom tailored OS images (e.g., formance computing (HPC) context the performance over- a lightweight kernel), and exposing normally privileged op- head has generally been perceived as being too high to be erations to unprivileged users (e.g., to load a kernel module useful. Vendors have, however, steadily reduced hardware in a guest). virtualization overheads, as shown later in this paper and and elsewhere [11], suggesting that this conventional wis- Much subsequent work on virtualization in HPC has focused dom { that virtualization is too slow for HPC { is no longer on exposing high performance I/O to virtual machines. Vir- valid. tual machine bypass [12], for example, has been shown to provide essentially native communication performance in vir- As we illustrate in this paper, there are a number of com- tualized HPC environments. This work was later extended pelling use cases for virtualization in HPC that are not nec- to support migrating VMM-bypassed virtual machines us- essarily dependent on achieving the absolute highest per- ing Xen and Infiniband [10], as well as PGAS applications ∗Sandia National Laboratories is a multi-program labora- running in Xen virtual machines [19]. This work lays the tory managed and operated by Sandia Corporation, a wholly foundation for providing guest operating systems with near owned subsidiary of Lockheed Martin Corporation, for the native I/O performance, while at the same time support- U.S. Department of Energy's National Nuclear Security Ad- ministration under contract DE-AC04-94AL85000. ing VM migration. There is still work to be done to create robust implementations of these prototypes. Proactive VM migration has also been examined to improve the resiliency of HPC applications to hardware faults [14, 20]. The core idea is to migrate away from nodes that have been observed to have deteriorating health. If this improves the mean-time-to-failure, the reactive checkpoint frequency can be reduced, which in turn reduces global I/O require- ments. Xen's live migration is found to have relatively low overhead { 1 to 16 seconds in their testing. To reduce virtualization overheads, microprocessor vendors have recently introduced hardware to accelerate virtual mem- User Application ory virtualization. AMD, for example, has implemented a (Running in Virtualized 2-D nested page table caching scheme [1]. This approach Environment) mitigates the potentially O(n2) memory accesses required for each guest virtual address to host physical address trans- lation, where n is the number of page table levels (n = 4 for Guest User Application x86-64). Intel has a similar nested paging approach called Operating System (Running Natively) Extended Page Tables (EPT), which we evaluate in Sec- (RedHat, Catamount, Windows) tion 4. A subsequent letter observes that the nested page User Space table structure does not have to match the page table struc- Kernel Space ture exposed to the guest, and this may provide opportuni- ties for further optimization [8]. Kitten Palacios Lightweight Kernel Virtual Machine Operating System Monitor Finally, recent work on HPC virtualization has explored the use of public clouds, such as Amazon's EC2 (Elastic Cloud) service [4, 7] for medium-scale HPC workloads. For example, Hardware Amazon recently began targeting HPC workloads, and now offers a high performance compute instance with 10 Gigabit Ethernet and two NVIDIA \Fermi" GPUs per node. Over time, many expect this type of service to provide a large Figure 1: Block diagram of Kitten and Palacios ar- fraction of low to mid-range HPC cycles. chitecture. 3. HIGH-END HPC VIRTUALIZATION USE CASES capability. This work leverages the Palacios VMM being While much work on HPC virtualization has focused pri- developed at Northwestern University and the University marily on mid-level capacity HPC workloads, there are a of New Mexico to create a solution that is custom tailored number of potential areas where virtualization could be use- for highly-scalable HPC, and has been described in detail ful in high-end (capability) supercomputing. In this section, elsewhere [11]. we discuss some of these possibilities. 3.1 Enhancing Lightweight OS Flexibility 3.2 Tool for Exascale OS Research We originally began exploring virtualization in capability One of the most challenging tasks for system software re- HPC systems to mitigate one of the major weaknesses of searchers today is obtaining access to large-scale test sys- lightweight kernel (LWK) operating systems { limited OS tems. On Cray XT systems, for example, testing OS-level functionality. Current supercomputers provide a fixed soft- system software requires dedicated system time since the ware environment that is typically limited in its functionality machine must be rebooted. System administrators and deci- for performance and scalability reasons [5, 17]. Examples in- sion makers are therefore understandably reluctant to grant clude the Red Storm system at Sandia and the BlueGene/L this type of access. If virtualization support was included system at Lawrence Livermore, which both use custom LWK in the production software stacks of these machines, re- operating systems, and Cray XT systems in general, which searchers could load their prototype software in a virtual use a limited functionality Linux distribution called Cray machine environment and avoid the need for dedicated sys- Linux Environment (CLE). If an application requires more tem time. This would provide continuous access to large- functionality than is available, it must be reworked to elim- scale resources and rapid (virtual) reboot iterations for de- inate the dependencies or not be able to make use of the bugging issues that often only appear at scale. system. An alternative approach is to provide a mechanism allowing Augmenting the native host lightweight kernel with a virtual users to reboot the compute nodes that they are allocated, machine monitor (VMM), as shown in Figure 1, provides as is available on IBM BlueGene systems. The downsides to an elegant way to address this problem. In cases where the this approach are that it requires special hardware support, lightweight kernel does not natively provide desired OS func- can take a long time, and results in more resource fragmen- tionality, a VMM capability enables users to dynamically tation than systems with unconstrained node allocation. \boot" a more full-featured guest operating system on top of the native LWK. From the LWK's perspective, the guest OS In addition, the approach can also be extended to support looks much the same as a native LWK application. This ap- exascale hardware and software co-design efforts. In partic- proach also supports efforts to\deconstruct the OS", as some ular, the virtual machine abstraction provides a convenient have advocated for exascale software environments [18], sup- way to prototype new hardware/software interfaces and ca- porting application-specific operating systems and runtime pabilities, such as global shared memory and advanced syn- environments to be launched in virtual machines. chronization

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 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