Hello,

check process capabilities (if EOMEM is errno 12 in your installation as well):
Errors
ENOMEM
(Linux 2.6.9 and later) the caller had a nonzero RLIMIT_MEMLOCK soft resource 
limit, but tried to lock more memory than the limit permitted. This limit is 
not enforced if the process is privileged (CAP_IPC_LOCK).
Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>


From: sr-users <[email protected]> On Behalf Of Joel Serrano
Sent: Wednesday, July 8, 2020 12:16 AM
To: Kamailio (SER) - Users Mailing List <[email protected]>
Subject: [SR-Users] failed to lock the memory pages (disable swap) WARNING

Hi all,

Can anyone give me some info on what this warning means:

Jul  7 17:02:29 csbc02 csbc[16006]: WARNING: <core> [core/daemonize.c:596]: 
mem_lock_pages(): failed to lock the memory pages (disable swap): Cannot 
allocate memory [12]



Yes, if I set mlock_pages=no I don't see the warning, but I'm trying to 
understand why can't it allocate with mlock_pages=yes.

Joel.
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to