2

I'm having a problem setting ulimits to unlimited. I am a member of the @audio group Here are the contents of my /etc/security/limits.conf

@audio - rtprio 95

@audio - memlock unlimited

I know audio group is working because I have realtime settings working.

Here is the output of the ulimits -l -r

$ ulimit -r -l
real-time priority              (-r) 95
max locked memory       (kbytes, -l) 65536

So the realtime is working but the max locked memory is not working. Not sure what got messed up. I don't want to reinstall to make this work Using ubuntu 19.04

I have jack installed too. Maybe this is messing things up. There are two files in the limits.d folder that I created.. but now deleted.

  • Did you check from new (open AFTER you save the file) terminal after you edit limits.conf file? – Romeo Ninov May 13 '19 at 19:22
  • I ended up doing a reinstall. I have not installed jack or ardour. still have the problem. Yes.. the file is set as described (after booting)... it is there. – Bhikkhu Subhuti May 13 '19 at 21:32
  • 1
    I think it is a bug in 19.04. I opted to install Mate which always works.. and it did. I did nothing different. Both were fresh installs. Not sure how to write a bug post since I no longer have ubuntu. – Bhikkhu Subhuti May 14 '19 at 00:50
  • "a new terminal" would not be sufficient to test configuration changes made via PAM configuration files. Those changes require a fresh login through whatever service is reading the configuration files in question -- eg a new ssh login, or new gdm login, or new getty login, depending upon your local PAM configuration. – sarnold Jul 23 '19 at 19:44
  • I had no problems with mate – Bhikkhu Subhuti Jul 25 '19 at 07:22
  • Same problem, Ubuntu 19.04. Put session required pam_limits.so in /etc/pam.d/common-session as well as in runuser (added also almost everywhere else as a desperate attempt to solve); tried to add in /security/limits.conf a redundant @audio - memlock unlimited and my user is in the group audio (redundant because that's in limits.d/audio.conf altogether with @audio - rtprio 95, which is honored, a configuration from jackd package). This is really annoying since 1. it used to work 2. fluidsynth, among others, won't do its job. – ShinTakezou Oct 19 '19 at 12:13
  • and I also messed up with systemd according to this, but nothing solved the issue so far. – ShinTakezou Oct 19 '19 at 12:20

1 Answers1

0

Hour wasted - but, here's what worked on Linux Mint 20.1 Cinnamon: include these 4 lines in limit.conf:

@audio          hard    rtprio          95
@audio          soft    rtprio          95
@audio          hard    memlock     unlimited
@audio          soft    memlock     unlimited

Hawkeye posted this info about another issue here: Original hint Thanks to him!

LeeNM
  • 1