AutoCO: An Online Continuous Optimization System for Phase-Changing Database Workloads.

Profile Guided Optimization (PGO) utilizes a program’s runtime behavior to drive optimization, but its effectiveness relies heavily on profile freshness, as stale or unrepresentative profiles can limit or even negate its benefits. Extensive prior work has proposed techniques to mitigate profile staleness in offline PGO . Recent online optimizers go further by profiling the exact production binaries and immediately applying optimizations to running processes via code replacement. However, existing online binary optimizers such as OCOLOS and AOBO are limited to single-shot optimization. They fail to adapt to subsequent behavioral changes, rendering them suboptimal for long-running workloads with evolving runtime behaviors. Therefore, an online optimizer is required to automatically and continually re-profile and re-optimize long-running phase-changing applications. We present AutoCO , the first online binary-level continuous optimization system supporting multiple architectures (x86-64 and AArch64). To enable continuous adaptation to phase changes in target database workloads, AutoCO introduces a closed-loop system comprising four coordinated mechanisms: a phase monitoring mechanism that raises candidate phase-change events and a lifetime-aware trigger gate that suppresses optimization rounds unlikely to amortize their lifecycle costs; an address mapping mechanism that bridges runtime execution states with the original binary to enable iterative optimization; a code generation and injection mechanism that leverages mapped profiles to restructure the binary layout and safely redirects control flow; and an asynchronous resource reclamation mechanism that prevents memory bloat by safely reclaiming resources from obsolete code. This continuous process is supported by a modular design that facilitates portability across diverse ISAs. On MySQL, MongoDB, and PostgreSQL across x86-64 and AArch64, AutoCO achieves substantial initial performance boosts of up to 47.46% (MySQL), 43.17% (MongoDB), and 17.46% (PostgreSQL). Crucially, as workloads evolve, AutoCO continuously re-optimizes phases whose candidate events pass the lifetime-aware gate, yielding an additional adaptive speedup of 3.06%-23.01% over stale optimization.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Architecture and Code Optimization
Published
2026-07-22
DOI
https://doi.org/10.1145/3832323
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

AutoCO: An Online Continuous Optimization System for Phase-Changing Database Workloads.

Jianmei Guo, Zhiwei Ying, YUFENG LI, Bo Huang et al.
ACM Transactions on Architecture and Code Optimization
Parallel Computing and Optimization Techniques
article

AutoCO: An Online Continuous Optimization System for Phase-Changing Database Workloads.

Jianmei Guo, Zhiwei Ying, YUFENG LI, Bo Huang, Yue Tang, Yuehua Chen, Zhenjian Du, Haoyu Liao
article en

Abstract

Profile Guided Optimization (PGO) utilizes a program’s runtime behavior to drive optimization, but its effectiveness relies heavily on profile freshness, as stale or unrepresentative profiles can limit or even negate its benefits. Extensive prior work has proposed techniques to mitigate profile staleness in offline PGO . Recent online optimizers go further by profiling the exact production binaries and immediately applying optimizations to running processes via code replacement. However, existing online binary optimizers such as OCOLOS and AOBO are limited to single-shot optimization. They fail to adapt to subsequent behavioral changes, rendering them suboptimal for long-running workloads with evolving runtime behaviors. Therefore, an online optimizer is required to automatically and continually re-profile and re-optimize long-running phase-changing applications. We present AutoCO , the first online binary-level continuous optimization system supporting multiple architectures (x86-64 and AArch64). To enable continuous adaptation to phase changes in target database workloads, AutoCO introduces a closed-loop system comprising four coordinated mechanisms: a phase monitoring mechanism that raises candidate phase-change events and a lifetime-aware trigger gate that suppresses optimization rounds unlikely to amortize their lifecycle costs; an address mapping mechanism that bridges runtime execution states with the original binary to enable iterative optimization; a code generation and injection mechanism that leverages mapped profiles to restructure the binary layout and safely redirects control flow; and an asynchronous resource reclamation mechanism that prevents memory bloat by safely reclaiming resources from obsolete code. This continuous process is supported by a modular design that facilitates portability across diverse ISAs. On MySQL, MongoDB, and PostgreSQL across x86-64 and AArch64, AutoCO achieves substantial initial performance boosts of up to 47.46% (MySQL), 43.17% (MongoDB), and 17.46% (PostgreSQL). Crucially, as workloads evolve, AutoCO continuously re-optimizes phases whose candidate events pass the lifetime-aware gate, yielding an additional adaptive speedup of 3.06%-23.01% over stale optimization.

ACM Transactions on Architecture and Code Optimization
East China Normal University (CN)
Openalex Percentile: Top 4%
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.