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

            marko Marko Mäkelä created issue -
            marko Marko Mäkelä made changes -
            Field Original Value New Value
            alessandro.vetere Alessandro Vetere made changes -
            marko Marko Mäkelä made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            marko Marko Mäkelä made changes -
            Status In Progress [ 3 ] In Testing [ 10301 ]
            marko Marko Mäkelä made changes -
            Assignee Marko Mäkelä [ marko ] Steve Shaw [ JIRAUSER56063 ]

            People

              Steve Shaw Steve Shaw
              marko Marko Mäkelä
              Votes:
              2 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.