Skip to main content
QUICK REVIEW

[Paper Review] Silentium! Run-Analyse-Eradicate the Noise out of the DB/OS Stack

Wolfgang Mauerer, Ralf Ramsauer|arXiv (Cornell University)|Jan 1, 2021
Advanced Data Storage TechnologiesComputer Science3 citations
TL;DR

This paper proposes a systematic approach to eliminate performance noise in multi-tenant in-memory databases by successively removing interference from the DB/OS stack, achieving sub-millisecond latency determinism comparable to bare-metal performance without degrading competing tenants’ workloads. The key result shows that expert OS configuration can achieve near-bare-metal performance, making custom OSes less essential for certain workloads.

ABSTRACT

When multiple tenants compete for resources, database performance tends to suffer. Yet there are several scenarios where guaranteed sub-millisecond latencies are crucial, such as in real-time scenarios, IoT, or when operating in safety-critical environments. In this paper, we study how to make query latencies deterministic in the face of noise (whether caused by other tenants or unrelated operating systems tasks). We perform controlled experiments with an in-memory database in a multi-tenant setting, where we successively eradicate noisy interference from within the system software stack, to the point where the engine runs close to bare-metal on the underlying hardware. We show that we can achieve query latencies comparable to the database engine running as the sole tenant, but without noticeably impacting the workload of competing tenants. We discuss these results in the context of ongoing efforts to build custom operating systems for database workloads, and point out that for certain use cases, the margin for improvement is rather narrow. In fact, for scenarios like ours, existing operating systems might just be good enough, provided that they are expertly configured. We then critically discuss these findings in the light of a broader family of database systems (e.g., including disk-based), and the technological disruption of the advances in modern hardware.

Motivation & Objective

  • Address the challenge of performance variability in multi-tenant in-memory databases caused by resource contention and system noise.
  • Investigate whether existing operating systems can achieve near-bare-metal performance through expert configuration, reducing the need for custom OS development.
  • Evaluate the impact of noise from competing tenants and OS tasks on query latency in real-time and safety-critical workloads.
  • Determine the practical limits of performance improvement through stack-level optimization in modern hardware environments.

Proposed method

  • Conduct controlled experiments using an in-memory database in a multi-tenant environment to isolate and measure performance interference.
  • Systematically eliminate noise sources from the OS and database stack, starting from application-level tuning and progressing to low-level hardware and kernel optimizations.
  • Apply workload-aware configuration of OS components such as CPU scheduling, memory management, and interrupt handling to reduce jitter and latency spikes.
  • Measure query latency before and after each optimization step to quantify the impact of removing each noise source.
  • Compare final performance to a single-tenant bare-metal deployment to assess how close the multi-tenant configuration comes to optimal performance.
  • Evaluate the trade-off between performance gains and impact on competing tenants’ workloads to ensure non-intrusive operation.

Experimental results

Research questions

  • RQ1To what extent can performance noise in multi-tenant in-memory databases be eliminated through systematic stack-level optimization?
  • RQ2How close can a standard OS come to bare-metal performance when expertly configured for deterministic database workloads?
  • RQ3What is the performance impact on competing tenants when noise is removed from the DB/OS stack?
  • RQ4In what scenarios is building a custom OS for databases still necessary, or is expert configuration of existing OSes sufficient?

Key findings

  • By systematically removing noise from the DB/OS stack, the authors achieve query latencies comparable to those of a database running as the sole tenant on bare-metal hardware.
  • The performance improvement is substantial—latency jitter is drastically reduced—without significantly degrading the performance of competing tenants.
  • The results suggest that for real-time and safety-critical workloads, existing operating systems can be sufficient if expertly tuned, reducing the need for custom OS development.
  • The performance gap between a well-configured standard OS and bare-metal deployment is narrow, indicating diminishing returns from further OS specialization in such scenarios.
  • The study highlights that hardware advancements and modern OS capabilities have narrowed the performance advantage of custom database operating systems for certain workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.