[Bug 1840435] Re: Systemd >=240 sets a clamp of 64MB for RLIMIT_MEMLOCK, too low for some applications.
** Changed in: systemd (Ubuntu Disco) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1840435 Title: Systemd >=240 sets a clamp of 64MB for RLIMIT_MEMLOCK, too low for some applications. To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/1840435/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1840435] Re: Systemd >=240 sets a clamp of 64MB for RLIMIT_MEMLOCK, too low for some applications.
Fix attached. Works on disco. ** Patch added: "RLIMIT_MEMLOCK clamp fix" https://bugs.launchpad.net/ubuntu/disco/+source/systemd/+bug/1840435/+attachment/5304197/+files/fix-systemd-240-memlocklimit.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1840435 Title: Systemd >=240 sets a clamp of 64MB for RLIMIT_MEMLOCK, too low for some applications. To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/1840435/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1840435] Re: Systemd >=240 sets a clamp of 64MB for RLIMIT_MEMLOCK, too low for some applications.
Marking as fixed in Eoan, since it already has systemd v242. ** Also affects: systemd (Ubuntu Disco) Importance: Undecided Status: New ** Changed in: systemd (Ubuntu) Status: Incomplete => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1840435 Title: Systemd >=240 sets a clamp of 64MB for RLIMIT_MEMLOCK, too low for some applications. To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/1840435/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1840435] Re: Systemd >=240 sets a clamp of 64MB for RLIMIT_MEMLOCK, too low for some applications.
Upon further inspection, this is actually fixed in systemd 241. To reproduce, try setting a LimitMEMLOCK higher than 64mb for the system unit user@.service, OR for any unit executed by a systemd --user process. You will see that the RLIMIT_MEMLOCK is actually clamped to 64MB. This can be observed by using prlimit -p <>. You can reproduce by trying to give a user session (via user@.service OR /etc/systemd/user.conf) a LimitMEMLOCK of greater than 64MB and then inside a systemd unit or inside a gnome-terminal (since gnome terminals in at least disco and newer are run under a systemd user-service) try to execute `jackd -d hw:0 -r 48000 -p 256 -n 3 -S`. You may need to suspend/stop pulseadio. On my system at least (USB audio only), jackd wants to memlock 82280346 bytes (82MBish) of RAM for audio buffers and the like. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1840435 Title: Systemd >=240 sets a clamp of 64MB for RLIMIT_MEMLOCK, too low for some applications. To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/1840435/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1840435] Re: Systemd >=240 sets a clamp of 64MB for RLIMIT_MEMLOCK, too low for some applications.
> This breaks a number of current jackd setups, for example. please provide steps to reproduce the problem. ** Changed in: systemd (Ubuntu) Status: New => Incomplete ** Bug watch added: github.com/systemd/systemd/issues #13331 https://github.com/systemd/systemd/issues/13331 ** Also affects: systemd via https://github.com/systemd/systemd/issues/13331 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1840435 Title: Systemd >=240 sets a clamp of 64MB for RLIMIT_MEMLOCK, too low for some applications. To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/1840435/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs