First of all: Hello!!!, (Skip to the 2nd paragraph if you are in a hurry for the primary topic). This is my first post in this forum. And I must say I love OpenMandriva. I have tried to switch to Linux in the past but most attempts simply ended in dual booting that then turned into just choosing Windows each time. Finally, the 21st of September 2024, my disdain for Microsoft products simply overpowered my laziness and decided to go all in. No more dual booting, no looking back. I was already very into software that was not tied to windows (Blender, Gimp, Inkscape, Audacity, Android Studio, etc), so I decided it was time. I spent some months on Linux mint, which to its credit, eased me into this transition, but I just donât trust big corporate backed things anymore, so the 24th of June 2025 I decided to move to OpenMandriva. And I must say I am here to stay.
Transitioning to the main topic here: Professional Audio Software is one of the things I was scared to lose in my OS transitions, but audio is just a hobby for me so I was willing to take a hit on that front. I was a bit hopeful since my audio software was Sonar X3 which is tied to my Steam account, and I have heard that steam in particular has come a LONG way when it comes to compatibility. Long story short: It didnât work, I searched for a native replacement, found one, and installed it: Ardour 8. And here is where the meat of this post comes in: Ardour kept warning me about a âMax Locked Memoryâ limit, which confused me initially because no other software or game had complained about that before, but then I checked and it was true:
$ ulimit -a
Result:
real-time non-blocking time (microseconds, -R) unlimited
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 62817
max locked memory (kbytes, -l) 8192 <-------------------------------
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) 62817
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
I didnât want my first post in this forum to be a dumb question, so I searched a bit and found this:
https://forum.openmandriva.org/t/how-to-increase-ulimit/
Problem: This didnât work for him or me. He went for a workaround there.
So I started searching solutions for other distros and putting together a few different ideas. I couldnât find an exact match of what I wanted so I ended up doing this:
Go to: /etc/systemd/
$ cd /etc/systemd/
there you can âlsâ and see that this place has also multiple âconfâ files including âuser.confâ and âsystem.confâ. Modifying this files directly is very frowned upon, based on my research, so I didnât change them, BUT I used them as reference to make the change I needed to make.
Open âuser.confâ
$ nano user.conf
You will see a lot of commented lines marked with a â#â under the â[Manager]â section. If you look carefully there you can see what I was looking for:
#DefaultLimitMEMLOCK=
Following the structure of that file I determined that this is what I needed to do:
1- Exit nano
2- Create this folder if it does not exist: (on /etc/systemd)
$ sudo mkdir system.conf.d
3- go into that folder:
$ cd /etc/systemd/system.conf.d
4- Create âlimits.confâ right there
$ sudo nano limits.conf
5- Paste the following content in that file:
[Manager]
DefaultLimitMEMLOCK=infinity
6- RESTART, do not simply logoff. Full restart.
7- Once you are back up. Check if we have actually succeeded with:
$ ulimit -a
The result should be something like this:
real-time non-blocking time (microseconds, -R) unlimited
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 62817
max locked memory (kbytes, -l) unlimited <---------------------------
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) 62817
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
And thatâs it! The warnings about locked memory were gone!
However, unfortunately, I must ask a question anyway: I feel like I have DunningâKrugered my way into something I should not have done despite the fact that it in fact does WHAT I WANTED. Is it safe to leave it like this? In which case. THANK YOU. Problem solved. Or do you guys have a better, safer solution? Sorry for the long post but I wanted you to know exactly what I did and why in case it helps you to help me. Thank you for your time! ![]()
Requirements:
I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata
OpenMandriva Lx version:
NAME=âOpenMandriva Lxâ
VERSION=â6.0 (Vanadium) Rockâ
ID=âopenmandrivaâ
VERSION_ID=â6.0â
PRETTY_NAME=âOpenMandriva Lx 6.0 (Vanadium) Rockâ
BUILD_ID=â20250420.02â
VERSION_CODENAME=âvanadiumâ
ANSI_COLOR=â1;43â
LOGO=âopenmandrivaâ
CPE_NAME=âcpe:/o:openmandriva:openmandriva_lx:6.0â
HOME_URL=âhttp://openmandriva.org/â
BUG_REPORT_URL=â GitHub ¡ Where software is built â
SUPPORT_URL=âhttps://forum.openmandriva.orgâ
PRIVACY_POLICY_URL=â Terms of service - OpenMandriva â
Desktop environment (KDE, LXQTâŚ):
KDE PLASMA
Description of the issue (screenshots if relevant):
Some heavy software (like Ardour) shows warnings about the Max Locked Memory limit being too low.