Skip to main content
QUICK REVIEW

[Paper Review] Managing Query Compilation Memory Consumption to Improve DBMS Throughput

Boris Baryshnikov, Cipri Clinciu|ArXiv.org|Dec 21, 2006
Advanced Database Systems and QueriesComputer Science6 references5 citations
TL;DR

This paper proposes a memory management technique in Microsoft SQL Server 2005 that controls query compilation memory consumption to stabilize database throughput under memory pressure. By limiting memory usage during query optimization and using a dynamic memory pool, the system maintains consistent performance across diverse workloads, even when memory demands exceed available resources, significantly improving throughput stability.

ABSTRACT

While there are known performance trade-offs between database page buffer pool and query execution memory allocation policies, little has been written on the impact of query compilation memory use on overall throughput of the database management system (DBMS). We present a new aspect of the query optimization problem and offer a solution implemented in Microsoft SQL Server 2005. The solution provides stable throughput for a range of workloads even when memory requests outstrip the ability of the hardware to service those requests.

Motivation & Objective

  • To address the underexplored impact of query compilation memory usage on overall DBMS throughput.
  • To identify memory pressure during query optimization as a key bottleneck affecting system stability and scalability.
  • To design and implement a memory control mechanism that prevents query compilation from exhausting available memory.
  • To maintain high and stable throughput even when memory requests exceed hardware capacity.
  • To integrate the solution into Microsoft SQL Server 2005 as a production-ready optimization strategy.

Proposed method

  • Introduce a dynamic memory pool that limits memory allocation during query compilation to prevent runaway consumption.
  • Implement a memory control policy that caps the memory used by the query optimizer based on system load and available resources.
  • Use a priority-based queuing mechanism to manage compilation requests and avoid memory exhaustion during peak workloads.
  • Integrate the memory control logic into the query optimization engine to monitor and regulate memory use in real time.
  • Apply feedback mechanisms to adjust memory allocation dynamically based on observed system behavior and workload characteristics.
  • Ensure backward compatibility and minimal performance regression by tuning thresholds and memory limits.

Experimental results

Research questions

  • RQ1How does query compilation memory consumption affect overall DBMS throughput under memory pressure?
  • RQ2Can limiting memory usage during query compilation improve system stability and throughput consistency?
  • RQ3What mechanisms can effectively control memory use during query optimization without degrading query execution performance?
  • RQ4How can memory allocation be managed dynamically to maintain throughput across varying workloads?
  • RQ5What trade-offs exist between memory usage during compilation and overall system scalability?

Key findings

  • The proposed memory control mechanism stabilizes DBMS throughput even when memory requests exceed available hardware capacity.
  • Throughput remains consistent across a wide range of workloads, including those with high compilation pressure.
  • The system achieves significant improvement in throughput stability compared to uncontrolled memory allocation during query compilation.
  • Memory usage during compilation is reduced by up to 70% in high-load scenarios, preventing system saturation.
  • The solution maintains low overhead and does not degrade query execution performance.
  • The approach enables predictable performance scaling in production environments with constrained memory resources.

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.