You may want to enable or disable Intel Transaction Synchronization Extensions (Intel TSX) capacity for processors that expose the necessary processor support. In this article, we will show you how to use the registry setting that will be described to enable or disable TSX.
What are transactional synchronization extensions (TSX)
Transactional Synchronization Extensions (TSX) is an extension of the architecture of the x86 instruction set (ISA) which adds support for hardware transactional memory, thus accelerating the execution of multithreaded software thanks to the elision of the locking. According to different repositories, TSX can provide approximately 40% faster application execution in specific workloads and 4 to 5 times more database transactions per second (TPS).
Intel transactional synchronization extensions (Intel TSX) allow the processor to dynamically determine if threads should serialize through critical lock-protected sections and perform serialization only when necessary. This allows the processor to expose and exploit hidden competition in an application due to unnecessary dynamic synchronization.
Intel TSX provides two software interfaces for specifying code regions for transactional execution.
1]Hardware Lock Elision (HLE)
HLE is a legacy compatible instruction set extension (including the prefixes XACQUIRE and XRELEASE) for specifying transaction regions. HLE is for programmers who prefer the backward compatibility of the conventional mutual exclusion programming model and who want to run HLE-compatible software on legacy hardware, but want to take advantage of the new locking elision capabilities on hardware with HLE support .
The intrinsic HLE (Hardware Lock Elision) functions only apply to C / C ++ applications for Windows.
2]Restricted transaction memory (RTM)
RTM is a new instruction set interface (including XBEGIN, XEND and XABORT instructions) allowing programmers to define transaction regions in a more flexible way than is possible with HLE.
RTM is intended for programmers who prefer a flexible interface to transactional execution hardware.
Enable or disable Intel TSX capability in Windows 10
To enable or disable the Intel Transactional Synchronization Extensions (Intel TSX) feature in Windows 10, follow these steps:
AT deactivate Intel TSX via the registry setting:
Launch the command prompt in high mode. (Click Start. Type CMD and press CTRL + SHIFT + Enter key combination).
Copy and paste the command below and press Enter.
reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerKernel" /v DisableTsx /t REG_DWORD /d 1 /f
Restart the computer for the changes to take effect.
AT activate Intel TSX via the registry setting:
Launch the command prompt in high mode.
Copy and paste the command below and press Enter.
reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerKernel" /v DisableTsx /t REG_DWORD /d 0 /f
Restart the computer for the changes to take effect.
That’s it!