Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-39094

Performance Change: MariaDB 12 shows reduced throughput vs 11 on cached write workloads

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 12.2.2
    • None
    • Server
    • None

    Description

      Initial performance change detection testing shows that MariaDB 12 exhibits lower throughput than MariaDB 11 during long-running cached write workloads. The behavior appears to be related to redo log processing.

      This was observed using TAF with identical configurations and environments across both versions.

      To confirm that the regression was tied specifically to the synchronous commit path, OLTP_RW tests were repeated with innodb_flush_log_at_trx_commit=2. Under commit=2, MariaDB 12 not only removed the regression but exceeded MariaDB 11 performance. This demonstrates that the slowdown in MariaDB 12 is not due to SQL execution, optimizer behavior, or general engine overhead. The regression is specifically tied to the commit=1 durability path, where MariaDB 12 performs more redo and checkpoint work per transaction than MariaDB 11.

      -------------------------------------------------------------------------------------------------------------+

      Metric MariaDB 11 MariaDB 12 MariaDB 12
        (commit=1) (commit=1) (commit=2)

      --------------------------------------------------------- -----------------------------------------------------+

      TPS 1805 1076 2265
      Ag Latency (ms) 70.9 118.9 56.5
      95th (ms) 397 434 297
      QPS 36k 21k 45k
      Behavior Healthy Regressed Healthy
      ---------------------------------------------------------------------------------------------------------------+

      Perf Data: https://drive.google.com/file/d/1Neo30XuIYBhl5tE4LfxQvvHzPLzh8xzj/view?usp=drive_link

      Perf data was generated by running 128 threads for 50 minute, and taking a 35 second slice around the 45 min mark of the iteration.

      I’m happy to work with someone in PLC to help confirm and isolate the issue.

      Attachments

        1. maria.cnf
          3 kB
          Rahul Raj
        2. mariadb_cache.cnf
          1 kB
          Jonathan Jeb Miller
        3. mariadb_rw.properties
          5 kB
          Jonathan Jeb Miller
        4. OLTP_RW_20260312_071844.chartplus_testinfo.html
          14 kB
          Jonathan Jeb Miller
        5. OLTP_RW_20260324_132021.chartplus_testinfo.html
          20 kB
          Jonathan Jeb Miller
        6. OLTP_RW_no_log_11.4_vs_12.2_vs_12.3.html
          16 kB
          Jonathan Jeb Miller
        7. screenshot-1.png
          75 kB
          Jonathan Jeb Miller
        8. screenshot-2.png
          79 kB
          Jonathan Jeb Miller

        Activity

          People

            rahulraj Rahul Raj
            jeb Jonathan Jeb Miller
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.