brummer10 / guitarix

guitarix virtual versatile amplification for Jack/Linux
236 stars 24 forks source link

system init *** mlockall failed: system init *** failed to lock memory #72

Closed Velnbur closed 2 years ago

Velnbur commented 3 years ago

Distro: Fedora 34 with Gnome 40

groups output: velnbur wheel audio docker

Знімок з 2021-05-30 19-44-13

gitterdude commented 3 years ago

What does ulimit -a say? "max locked memory" should be unlimited or at least a few hundred MBs and "real-time priority" should be over 90

If not then make sure you have the correct lines for the audio group in /etc/security/limits.conf or in a file in /etc/security/limits.d and that you've rebooted or logged out and in again after adding your user to the audio group.

NathanPB commented 3 years ago

I think you need to be in the realtime group too

evbo commented 1 year ago

@gitterdude I am gettting it on Ubuntu 20.04:

ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 31130 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) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 31130 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited

What is the suggested solution? @NathanPB I don't understand what you mean? Do I need to add my user to a group?

Here's the error:

[18:14:11] system init mlockall failed: [18:14:15] PitchTracker error creating realtime thread - tuner not started

NathanPB commented 1 year ago

@evbo yeah, you run sudo usermod -a -G realtime your_user

https://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/

evbo commented 1 year ago

@NathanPB thanks, that group didn't exist but I created it. Then I needed to add my user to the audio group as well. Finally, works!

FotiadisM commented 10 months ago

what worked for me was, usermod -aG audio,realtime <user>, create the file /etc/security/limits.d/99-realtime-privileges.conf with the contents of:

@realtime       -       memlock         unlimited
@realtime       -       rtprio          95
@realtime       -       nice            -11