Skip to content

Commit

Permalink
Merge pull request #116 from reflexran/main
Browse files Browse the repository at this point in the history
Make disabling split lock safer, easier and more efficient
  • Loading branch information
apprehensions authored Feb 4, 2024
2 parents f3b9b4d + 8c9505e commit 45c2fe8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Troubleshooting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ There are 2 ways to check if your CPU supports AVX:

Currently, Roblox uses split lock operations. Unfortunately, [this is not considered a good practice](https://lwn.net/Articles/790464/), so by default, the Linux Kernel will throttle any programs that do so. This has been reported to have a major performance hit, sometimes reducing Roblox's frame rate to a mere fraction of what it's supposed to be.

Fortunately, you can disable the throttling by setting the [`split_lock_detect`](https://docs.kernel.org/arch/x86/buslock.html#software-handling) kernel parameter to `"off"`. The correct way to do this depends on both your distro and which bootloader your system uses. We recommend you to check your distro's documentation for more information:

- Debian-based distributions (Debian, Ubuntu, Mint, etc.): [Debian manual - 5.3. Boot Parameters](https://www.debian.org/releases/stable/amd64/ch05s03.en.html)
- Fedora-based distributions: [Fedora Docs - Making Persistent Changes to a GRUB 2 Menu Using the grubby Tool](https://docs.fedoraproject.org/en-US/fedora/latest/system-administrators-guide/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader/#sec-Making_Persistent_Changes_to_a_GRUB_2_Menu_Using_the_grubby_Tool)
- Arch-based distributions (Arch Linux, Manjaro, etc.): [Arch Linux Wiki - Kernel parameters](https://wiki.archlinux.org/title/Kernel_parameters)

If you're unsure on how to do this, please ask in your distro's support channels.
Fortunately, you can disable the throttling by setting the `kernel.split_lock_mitigate` parameter to `0`, in a terminal run this command `echo kernel.split_lock_mitigate=0 | sudo tee /etc/sysctl.d/99-splitlock.conf` and reboot.

---

Expand Down

0 comments on commit 45c2fe8

Please sign in to comment.