Skip to content

Instantly share code, notes, and snippets.

@Himura2la
Last active September 24, 2020 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Himura2la/32bd6b60aea5f86f1c0d597a1bc2c97c to your computer and use it in GitHub Desktop.
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
$ 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