Skip to main navigation Skip to search Skip to main content

Preemptable ticket spinlocks: Improving consolidated performance in the cloud

Research output: Contribution to journalArticlepeer-review

20 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 spinlocks 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 Preemptable Ticket spinlocks improvesVMperformance 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
Pages (from-to)191-200
Number of pages10
JournalACM SIGPLAN Notices
Volume48
Issue number7
DOIs
StatePublished - Aug 2013
Externally publishedYes

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