You are not logged in.
Hallo,
i want to setup an alsa loopdevice. It works but throws a warning. I want to get rid of it.
$ alsa_in -j cloop -d cloop
Cannot lock down 82280346 byte memory area (Cannot allocate memory)
$ ulimit -l
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 30
file size (blocks, -f) unlimited
pending signals (-i) 63779
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 90
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 63779
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
When i try to raise the 'max locked memory' i get this:
$ ulimit -l 131072
bash: ulimit: max locked memory: cannot modify limit: Operation not permitted
$ sudo ulimit -l 131072
sudo: ulimit: command not found
'sudo sh -c 'ulimit -l 131072' gets accepted but doesn't change anything.
'sudo su' and 'ulimit -l 131072' does work (for root only though).
This also doesn't work:
/etc/security/limits.conf:
myuser - memlock 131072
'ulimit -l' is always 65536 no matter what i do. I also tried 'ulimit -Hl 131072'.
How can i raise my users limit?
Last edited by Maniaxx (2019-02-20 13:43:09)
sys2064
Offline
Online
/etc/systemd/system.conf
/etc/systemd/user.conf
DefaultLimitMEMLOCK=131072 results in 128KB but DefaultLimitMEMLOCK=134217728 is still 65536KB.
It seems softlimit only. Edit: Also tried '128M:128M'.
Any other ideas?
Last edited by Maniaxx (2019-01-22 21:34:25)
sys2064
Offline
If you follow the upstream bug report from 61320 those commits should be in systemd 241 or you could try backporting https://github.com/systemd/systemd/comm … 99d9fe8cfc
Does that have any effect?
Offline
The error is non-blocking so i can live with it for now. Good to see it has been fixed. Thanks for reporting.
Edit: As expected, with 241 now released bug is gone indeed.
Last edited by Maniaxx (2019-02-20 13:46:40)
sys2064
Offline