How to mitigate Split Lock Issues
Disable Linux split lock mitigation on systems where it causes performance degradation with Couchbase Server.
On some Linux kernels that support split lock detection, the kernel’s split lock mitigation can cause severe performance degradation when a process triggers a misaligned atomic memory access. This may appear as high latency and reduced throughput under load on Couchbase Server hosts.
Prerequisites
-
You have confirmed that split lock mitigation is contributing to performance degradation on your system.
-
You have root or sudo access to the affected host.
-
You understand that disabling split lock mitigation changes kernel behavior intended to reduce the impact of split locks on system performance.
Procedure
Choose 1 of the following methods to disable split lock mitigation:
Method 1: Kernel Boot Parameter (Recommended)
-
Open your bootloader configuration file (for example,
/etc/default/grub). -
Add the following to the
GRUB_CMDLINE_LINUXparameter:split_lock_detect=off -
Update your bootloader configuration:
sudo update-grub -
Reboot the host for the change to take effect.
Method 2: Runtime Setting
-
Run the following command to disable mitigation via
/proc:echo 0 | sudo tee /proc/sys/kernel/split_lock_mitigateThis change does not persist across reboots. To make it permanent, add this command to a startup script or use the kernel boot parameter method. -
Verify the setting was applied:
cat /proc/sys/kernel/split_lock_mitigateThe output should be
0.