SUSE Support

Here When You Need Us

Interaction problems between Intel TSX and Intel performance registers

This document (7023734) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 11

Situation

Intel reported that after updating the CPU Microcode on a set of modern Intel processors using Intel® Transactional Synchronization Extensions (TSX) extensions, the Performance Measurement Register 3 is not usable due to technical limitations.

This issue could lead to incorrect performance measurements when register 3 is in use.
It does not affect systems or processes where the registers are not in use.

Affected processors families :
Intel Skylake
Intel Kaby Lake
Intel Coffee Lake
Intel Whiskey Lake

Resolution

Solution will be in a new microcode update.

In the interim, Intel's guidance is to avoid usage of the Performance Counter 3 (so only use counters 0 to 2).

SUSE is implementing this guidance and restriction in the perf framework in the Linux Kernel and will release kernel updates containing this restriction.

There is a new kernel boot option added that re-enables all 4 performance counters:
enable_all_counters=on/off

If this option is enabled, usage of TSX will be force-disabled during performance measurement.
The number of available performance counters is exported to userspace over sysfs.

Cause

CPU Microcode update on a specific set of modern Intel processors.

Additional Information

Also there are performance monitor flags that can be used to adjust behaviour :
  • Add a "force_rtm_abort" attribute per perf event attribute to allow user programs to opt in to use counter 3 and disable TSX while the perf event is active.
  • Also add a "allow_rtm" attribute to allow programs to make sure TSX is enabled during the measurement (e.g. if they want to measure TSX itself)

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7023734
  • Creation Date: 21-Feb-2019
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.