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

buf_dblwr unnecessarily uses memory-intensive srv_stats counters

    XMLWordPrintable

Details

    Description

      After the code refactoring that was performed in MDEV-23855, we can replace the use of srv_stats counters in buf_dbwlr with regular variables that are protected by buf_dblwr.mutex.

      The counters in srv_stats use std::atomic and multiple cache lines per counter. This is an overkill in a case where a critical section already exists in the code. A regular variable will work just fine, with much smaller memory bus impact.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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