OK - I was finally able to get this working in 17.04 after more experimentation, which revealed the following caveats:
- Ubuntu will respect limits you put in /etc/security/limits.conf (or /etc/security/limits.d/audio.conf), but **only after a reboot**. Logging out and back in are not sufficient to trigger a change. I suspect that rebooting only became necessary after the recent transition to systemd.
- Limits in /etc/systemd/user.conf are applied after logging out and in.
- I've only been able to change NOFILE (the max number of open files) by editing /etc/systemd/system.conf and then rebooting (logging out/in is not enough). Setting this value in user.conf or limits.conf seems to have no effect.
OK - I was finally able to get this working in 17.04 after more experimentation, which revealed the following caveats:
- Ubuntu will respect limits you put in /etc/security/ limits. conf (or /etc/security/ limits. d/audio. conf), but **only after a reboot**. Logging out and back in are not sufficient to trigger a change. I suspect that rebooting only became necessary after the recent transition to systemd.
- Limits in /etc/systemd/ user.conf are applied after logging out and in.
- I've only been able to change NOFILE (the max number of open files) by editing /etc/systemd/ system. conf and then rebooting (logging out/in is not enough). Setting this value in user.conf or limits.conf seems to have no effect.