Supporting soft real-time tasks in the xen hypervisor

  • Authors:
  • Min Lee;A. S. Krishnakumar;P. Krishnan;Navjot Singh;Shalini Yajnik

  • Affiliations:
  • Georgia Institute of Technology, Atlanta, GA, USA;Avaya Labs, Basking RIdge, NJ, USA;Avaya Labs, Basking Ridge, NJ, USA;Avaya Labs, Basking Ridge, NJ, USA;Avaya Labs, Basking Ridge, NJ, USA

  • Venue:
  • Proceedings of the 6th ACM SIGPLAN/SIGOPS international conference on Virtual execution environments
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Virtualization technology enables server consolidation and has given an impetus to low-cost green data centers. However, current hypervisors do not provide adequate support for real-time applications, and this has limited the adoption of virtualization in some domains. Soft real-time applications, such as media-based ones, are impeded by components of virtualization including low-performance virtualization I/O, increased scheduling latency, and shared-cache contention. The virtual machine scheduler is central to all these issues. The goal in this paper is to adapt the virtual machine scheduler to be more soft-real-time friendly. We improve two aspects of the VMM scheduler -- managing scheduling latency as a first-class resource and managing shared caches. We use enterprise IP telephony as an illustrative soft real-time workload and design a scheduler S that incorporates the knowledge of soft real-time applications in all aspects of the scheduler to support responsiveness. For this we first define a laxity value that can be interpreted as the target scheduling latency that the workload desires. The load balancer is also designed to minimize the latency for real-time tasks. For cache management, we take cache-affinity into account for real time tasks and load-balance accordingly to prevent cache thrashing. We measured cache misses and demonstrated that cache management is essential for soft real time tasks. Although our scheduler S employs a different design philosophy, interestingly enough it can be implemented with simple modifications to the Xen hypervisor's credit scheduler. Our experiments demonstrate that the Xen scheduler with our modifications can support soft real-time guests well, without penalizing non-real-time domains.