i’m getting an error everytime i launch ardour about memory limit. i have used ardour before also and to overcome this problem i edited /etc/security/limits.conf, added a line @audio - memlock unlimited, then created a file in /etc/pam.d/common-session, and added a line session required pam_limits.so. it worked everytime. but this time its not working.
the only other place I know limits resources can apply is via systemd settings… and systemd is extremely versatile in this area if your distro is using them.
On my system there is an application that put a folder in /etc/security/limits.d/ with a txt file that says something like @users memlock 1024. I’m not at my computer right now so I couldn’t say exactly what it is. I commented out that line. Look through any folders that are in /etc/security/limits.d/ for config files that might be changing your memlock settings.
highly unlikely there are any sub-folders in this path, perhaps if you saw something as a “.txt” file then it is just a readme textfile. Configuration files are named “.conf” in this path and wouldn’t get parsed from sub-folders…
and adds your user to the ‘realtime’ group. I found for ALSA MIDI you also need to be in the ‘audio’ group. If it’s working it looks like your manual changes worked.
I don’t know what put it there. Something I installed recently was VCV Rack. This file doesn’t affect the maximum amount of memory my user can lock. I did want to figure out what had put it there.
gcr is a cryptographic package. ‘users’ is an obscure group that my user is not in, so it doesn’t affect my ulimit. ‘users’ seems to be a non-group – no-one should really be in it. It seems like a security thing, so I’m going to leave it.
For some reason I must have been in the users group. When I commented out that line the error went away. I see that the better option would be to remove myself from users. In the Arch post about it, it says that those groups are no longer used but I am assuming that they still exist.