Last active
September 24, 2020 06:41
-
-
Save Himura2la/32bd6b60aea5f86f1c0d597a1bc2c97c to your computer and use it in GitHub Desktop.
Fix "Cannot allocate memory" warning of jackd in realtime mode in sessions started from systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/security/limits.d/95-jack.conf | |
# Default limits for users of jack-audio-connection-kit | |
@jackuser - rtprio 70 | |
@jackuser - memlock 4194304 | |
@pulse-rt - rtprio 20 | |
@pulse-rt - nice -20 | |
# This applies only to console sessions. | |
# Add the following two files for changing ulimit in GNOME session. | |
$ cat /etc/systemd/user.conf.d/limits.conf | |
[Manager] | |
DefaultLimitMEMLOCK=4294967296 | |
$ cat /etc/systemd/system.conf.d/limits.conf | |
[Manager] | |
DefaultLimitMEMLOCK=4294967296 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment