LlamaTune: Sample-Efficient DBMS Configuration Tuning
Konstantinos Kanellis, Cong Ding, Brian Kroth, Andreas Müller, Carlo Curino, Shivaram Venkataraman
Abstract
Tuning a database system to achieve optimal performance on a given workload is a long-standing problem in the database community. A number of recent works have leveraged ML-based approaches to guide the sampling of large parameter spaces (hundreds of tuning knobs) in search for high performance configurations. Looking at Microsoft production services operating millions of databases, sample efficiency emerged as a crucial requirement to use tuners on diverse workloads.
This motivates our investigation in LlamaTune, a tuner design that leverages domain knowledge to improve the sample efficiency of existing optimizers. LlamaTune employs an automated dimensionality reduction technique based on randomized projections, a biased-sampling approach to handle special values for certain knobs, and knob values bucketization, to reduce the size of the search space. LlamaTune compares favorably with the state-of-the-art optimizers across a diverse set of workloads. It identifies the best performing configurations with up to 11X fewer workload runs, and reaching up to 21% higher throughput. We also show that benefits from LlamaTune generalize across both BO-based and RL-based optimizers, as well as different DBMS versions. While the journey to perform database tuning at cloud-scale remains long, LlamaTune goes a long way in making automatic DBMS tuning practical at scale.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
23 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- λ-Tune: Harnessing Large Language Models for Automated Database System Tuning cites GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization
- The Holon Approach for Simultaneously Tuning Multiple Components in a Self-Driving Database Management System with Machine Learning via Synthesized Proto-Actions cites CGPTuner: a Contextual Gaussian Process Bandit Approach for the Automatic Tuning of IT Configurations Under Varying Workload Conditions
- The Holon Approach for Simultaneously Tuning Multiple Components in a Self-Driving Database Management System with Machine Learning via Synthesized Proto-Actions cites Facilitating Database Tuning with Hyper-Parameter Optimization: A Comprehensive Experimental Evaluation
- The Holon Approach for Simultaneously Tuning Multiple Components in a Self-Driving Database Management System with Machine Learning via Synthesized Proto-Actions cites An Inquiry into Machine Learning-based Automatic Configuration Tuning Services on Real-World Database Management Systems
- E2ETune: End-to-End Knob Tuning via Fine-tuned Generative Language Model cites CGPTuner: a Contextual Gaussian Process Bandit Approach for the Automatic Tuning of IT Configurations Under Varying Workload Conditions
- E2ETune: End-to-End Knob Tuning via Fine-tuned Generative Language Model cites ResTune: Resource Oriented Tuning Boosted by Meta-Learning for Cloud Databases
- E2ETune: End-to-End Knob Tuning via Fine-tuned Generative Language Model cites GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization
- E2ETune: End-to-End Knob Tuning via Fine-tuned Generative Language Model cites Facilitating Database Tuning with Hyper-Parameter Optimization: A Comprehensive Experimental Evaluation
- E2ETune: End-to-End Knob Tuning via Fine-tuned Generative Language Model cites An Inquiry into Machine Learning-based Automatic Configuration Tuning Services on Real-World Database Management Systems
- GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization cites CGPTuner: a Contextual Gaussian Process Bandit Approach for the Automatic Tuning of IT Configurations Under Varying Workload Conditions
- GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization cites ResTune: Resource Oriented Tuning Boosted by Meta-Learning for Cloud Databases
- GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization cites Facilitating Database Tuning with Hyper-Parameter Optimization: A Comprehensive Experimental Evaluation
- GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimization cites An Inquiry into Machine Learning-based Automatic Configuration Tuning Services on Real-World Database Management Systems
- Facilitating Database Tuning with Hyper-Parameter Optimization: A Comprehensive Experimental Evaluation cites CGPTuner: a Contextual Gaussian Process Bandit Approach for the Automatic Tuning of IT Configurations Under Varying Workload Conditions
- Facilitating Database Tuning with Hyper-Parameter Optimization: A Comprehensive Experimental Evaluation cites ResTune: Resource Oriented Tuning Boosted by Meta-Learning for Cloud Databases
- Facilitating Database Tuning with Hyper-Parameter Optimization: A Comprehensive Experimental Evaluation cites An Inquiry into Machine Learning-based Automatic Configuration Tuning Services on Real-World Database Management Systems
Cited by top-tier papers23
- GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian OptimizationJiale Lao, Yibo Wang, Yufei Li, Jianping Wang et al.VLDB 2024 · 76 citations
- λ-Tune: Harnessing Large Language Models for Automated Database System TuningVictor Giannakouris, Immanuel TrummerSIGMOD 2025 · 20 citations
- E2ETune: End-to-End Knob Tuning via Fine-tuned Generative Language ModelXinmei Huang, Haoyang Li, Jing Zhang, Xinxin Zhao et al.VLDB 2025 · 15 citations
- The Holon Approach for Simultaneously Tuning Multiple Components in a Self-Driving Database Management System with Machine Learning via Synthesized Proto-ActionsWilliam Zhang, Wan Shen Lim, Matthew Butrovich, Andrew PavloVLDB 2024 · 13 citations
- Check Out the Big Brain on BRAD: Simplifying Cloud Data Processing with Learned Automated Data MeshesTim Kraska, Tianyu Li, Samuel Madden, Markos Markakis et al.VLDB 2023 · 13 citations
Builds on6
- Bayesian Optimisation over Multiple Continuous and Categorical InputsBin Xin Ru, Ahsan S. Alvi, Vu Nguyen, Michael A. Osborne et al.ICML 2020 · 119 citations
- ResTune: Resource Oriented Tuning Boosted by Meta-Learning for Cloud DatabasesXinyi Zhang, Hong Wu, Zhuo Chang, Shuowei Jin et al.SIGMOD 2021 · 113 citations
- An Inquiry into Machine Learning-based Automatic Configuration Tuning Services on Real-World Database Management SystemsDana Van Aken, Dongsheng Yang, Sebastien Brillard, Ari Fiorino et al.VLDB 2021 · 108 citations
- Facilitating Database Tuning with Hyper-Parameter Optimization: A Comprehensive Experimental EvaluationXinyi Zhang, Zhuo Chang, Yang Li, Hong Wu et al.VLDB 2022 · 88 citations
- CGPTuner: a Contextual Gaussian Process Bandit Approach for the Automatic Tuning of IT Configurations Under Varying Workload ConditionsStefano Cereda, Stefano Valladares, Paolo Cremonesi, Stefano DoniVLDB 2021 · 74 citations
Related papers
- AgentTune: An Agent-Based Large Language Model Framework for Database Knob TuningYiyan Li, Haoyang Li, Jing Zhang, Renata Borovica-Gajic et al.SIGMOD 2026 · 5 citations
- MCTuner: Spatial Decomposition-Enhanced Database Tuning via LLM-Guided ExplorationZihan Yan, Rui Xi, Mengshu HouSIGMOD 2026 · 3 citations
- Towards Dynamic and Safe Configuration Tuning for Cloud DatabasesXinyi Zhang, Hong Wu, Yang Li, Jian Tan et al.SIGMOD 2022 · 62 citations
- An Efficient Transfer Learning Based Configuration Adviser for Database TuningXinyi Zhang, Hong Wu, Yang Li, Zhengju Tang et al.VLDB 2024 · 25 citations
- Why Database Manuals Are Not Enough: Efficient and Reliable Configuration Tuning for DBMSs via Code-Driven LLM AgentsXinyi Zhang, Tiantian Chen, Zhentao Han, Zhaoyan Hong et al.VLDB 2026 · 5 citations
