oceanbase / oceanbase/oceanbase

[Feature]: Evaluate Profile-Guided Optimization (PGO) and LLVM BOLT

Open
#1,580 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: feature
Dominant language
C++
Stars
10.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Hi!

Recently I did many Profile-Guided Optimization (PGO) benchmarks on multiple projects (including many databases like PostgreSQL, MongoDB, Redis, and many others) - the results are available here, all databases results are located here. So that's why I think it's worth trying to apply PGO to OceanBase.

I can suggest the following things to do:

  • Evaluate PGO's applicability and benchmark results to OceanBase.
  • If PGO helps to achieve better performance - add a note to OceanBase's documentation about that. In this case, users and maintainers will be aware of another optimization opportunity for OceanBase.
  • Provide PGO integration into the build scripts. It can help users and maintainers easily apply PGO for their own workloads.
  • PGO-optimize prebuilt OceanBase binaries (if it's possible to prepare a generic enough test workload).

Here are some PGO integration examples in the existing build scripts in other projects:

Some PGO documentation examples:

After PGO, I can suggest evaluating LLVM BOLT as an additional optimization step after PGO.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin by reviewing OceanBase's existing build scripts and benchmark entry points, then evaluate PGO applicability and results on representative database workloads. If performance improves, define the documentation, build integration, and workload requirements; assess LLVM BOLT only after the PGO evaluation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, databases, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.