Preemptable Ticket spinlocks: Improving consolidated performance in the cloud

Jiannan Ouyang, John R. Lange

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

23 Scopus citations

Abstract

When executing inside a virtual machine environment, OS level synchronization primitives are faced with significant challenges due to the scheduling behavior of the underlying virtual machine monitor. Operations that are ensured to last only a short amount of time on real hardware, are capable of taking considerably longer when running virtualized. This change in assumptions has significant impact when an OS is executing inside a critical region that is protected by a spinlock. The interaction between OS level spin-locks and VMM scheduling is known as the Lock Holder Preemption problem and has a significant impact on overall VM performance. However, with the use of ticket locks instead of generic spinlocks, virtual environments must also contend with waiters being preempted before they are able to acquire the lock. This has the effect of blocking access to a lock, even if the lock itself is available. We identify this scenario as the Lock Waiter Preemption problem. In order to solve both problems we introduce Preemptable Ticket spinlocks, a new locking primitive that is designed to enable a VM to always make forward progress by relaxing the ordering guarantees offered by ticket locks. We show that the use of Pre-emptable Ticket spinlocks improves VM performance by 5.32X on average, when running on a non paravirtual VMM, and by 7.91X when running on a VMM that supports a paravirtual locking interface, when executing a set of microbenchmarks as well as a realistic e-commerce benchmark.

Original languageEnglish
Title of host publicationVEE 2013 - Proceedings of the ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments
Pages191-200
Number of pages10
DOIs
StatePublished - 2013
Externally publishedYes
Event9th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments, VEE 2013 - Houston, TX, United States
Duration: Mar 16 2013Mar 17 2013

Publication series

NameVEE 2013 - Proceedings of the ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments

Conference

Conference9th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments, VEE 2013
Country/TerritoryUnited States
CityHouston, TX
Period03/16/1303/17/13

Keywords

  • Lock holder preemption
  • Paravirtualization
  • Virtual machines

Fingerprint

Dive into the research topics of 'Preemptable Ticket spinlocks: Improving consolidated performance in the cloud'. Together they form a unique fingerprint.

Cite this