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

Intel TSX-NI can cause a significant regression when TAA mitigation is needed

Details

    • Bug
    • Status: In Testing (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 10.6, 10.11, 11.4, 11.8
    • 10.11, 11.4, 11.8
    • Intel processors with the rtm (TSX-NI) instruction set extensions, running anything else than Microsoft Windows, compiled with a recent enough GCC or clang

    Description

      alessandro.vetere provided some performance testing results from a system where a transaction asynchronous abort (TAA) mitigation was enabled.

      It would seem to be necessary to disable the use of hardware memory transactions on affected systems, at least in the function buf_page_optimistic_fix() but possibly across the board. A straightforward change on Linux would be to revise the detection function bool transactional_lock_enabled() so that it would avoid setting have_transactional_memory=true if the file /sys/devices/system/cpu/vulnerabilities/tsx_async_abort is readable and contains anything else than the string Not affected.

      Attachments

        Issue Links

          Activity

            Here is some output from one affected system:

            grep -iE "model name|microcode" /proc/cpuinfo|sort -u
            

            microcode       : 0x2006e05
            model name      : Intel(R) Xeon(R) Gold 6134 CPU @ 3.20GHz
            

            marko Marko Mäkelä added a comment - Here is some output from one affected system: grep -iE "model name|microcode" /proc/cpuinfo|sort -u microcode : 0x2006e05 model name : Intel(R) Xeon(R) Gold 6134 CPU @ 3.20GHz

            People

              Steve Shaw Steve Shaw
              marko Marko Mäkelä
              Votes:
              2 Vote for this issue
              Watchers:
              5 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.