<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>thanks for updating back, very useful to know.</p>
<p>Btw, both updates of /etc/security/limits.conf and systemd unit
file are required, or only one is enough?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 24.07.20 16:46, Joel Serrano wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMtXxQnE97EGwZZiJxQ8HnQzzx9_GBJCLdJHuscbVdvWnLLCUw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>
<div dir="auto">Hey guys, I never replied back but thankfully
didn’t forget. </div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">I finally got some time to finish checking this,
as you guys pointed out, my only issue was the limits. </div>
<div dir="auto"><br>
</div>
<div dir="auto">If anyone else runs into this:</div>
<div dir="auto"><br>
</div>
<div dir="auto">To /etc/security/limits.conf (and reboot):</div>
<div dir="auto"><br>
</div>
<div dir="auto"><span
style="font-family:intel-clear,tahoma,Helvetica,helvetica,Arial,sans-serif;font-size:14.880000114440918px;color:rgb(83,86,90)">*
hard memlock unlimited</span></div>
<span
style="font-family:intel-clear,tahoma,Helvetica,helvetica,Arial,sans-serif;font-size:14.880000114440918px;color:rgb(83,86,90)">*
soft memlock unlimited</span>
<div dir="auto"><br>
</div>
<div dir="auto">If you are using systemd based OS:</div>
<div dir="auto"><br>
</div>
<div dir="auto">To Kamailio systemd unit file/drop-in overrides,
in [Service] section:</div>
<div dir="auto"><br>
</div>
<div dir="auto"><code
style="box-sizing:border-box;font-size:13.600000381469727px;padding:0.2em
0.4em;margin:0px;border-top-left-radius:6px;border-top-right-radius:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px;color:rgb(5,5,5)">LimitMEMLOCK=infinity</code><br>
</div>
<div dir="auto"><code
style="box-sizing:border-box;font-size:13.600000381469727px;padding:0.2em
0.4em;margin:0px;border-top-left-radius:6px;border-top-right-radius:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px;color:rgb(5,5,5)"><br>
</code></div>
<div dir="auto"><code
style="box-sizing:border-box;font-size:13.600000381469727px;padding:0.2em
0.4em;margin:0px;border-top-left-radius:6px;border-top-right-radius:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px;color:rgb(5,5,5)"><br>
</code></div>
<div>
<div dir="auto">Thanks Henning and David!</div>
<div dir="auto"><br>
</div>
<div dir="auto">Cheers,</div>
<div dir="auto">Joel. </div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jul 7, 2020 at 23:17
Henning Westerholt <<a href="mailto:hw@skalatan.de"
moz-do-not-send="true">hw@skalatan.de</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div link="#0563C1" vlink="#954F72" lang="DE">
<div class="m_-3559137866268999824WordSection1">
<p class="MsoNormal"><span>Hello,</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span lang="EN-GB">check process
capabilities (if EOMEM is errno 12 in your
installation as well):</span></p>
<p class="MsoNormal"><b><span style="font-size:18pt"
lang="EN-GB">Errors</span></b></p>
<p class="MsoNormal"><b><span lang="EN-GB">ENOMEM</span></b><span
lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">(Linux 2.6.9 and
later) the caller had a nonzero
<b>RLIMIT_MEMLOCK</b> soft resource limit, but tried
to lock more memory than the limit permitted. This
limit is not enforced if the process is privileged (<b>CAP_IPC_LOCK</b>).
</span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-GB">-- </span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning
Westerholt –
</span><span><a href="https://skalatan.de/blog/"
target="_blank" moz-do-not-send="true"><span
style="color:rgb(5,99,193)" lang="EN-GB">https://skalatan.de/blog/</span></a></span><span
lang="EN-GB"></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kamailio
services –
</span><span><a href="https://gilawa.com/"
target="_blank" moz-do-not-send="true"><span
style="color:rgb(5,99,193)" lang="EN-GB">https://gilawa.com</span></a></span><span>
<span lang="EN-GB"></span></span></p>
</div>
</div>
<div link="#0563C1" vlink="#954F72" lang="DE">
<div class="m_-3559137866268999824WordSection1">
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<div style="border-style:solid none
none;border-top-width:1pt;padding:3pt 0cm
0cm;border-top-color:rgb(225,225,225)">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span
lang="EN-GB">From:</span></b><span lang="EN-GB">
sr-users <<a
href="mailto:sr-users-bounces@lists.kamailio.org"
target="_blank" moz-do-not-send="true">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Joel Serrano<br>
<b>Sent:</b> Wednesday, July 8, 2020 12:16 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List
<<a href="mailto:sr-users@lists.kamailio.org"
target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> [SR-Users] failed to lock the
memory pages (disable swap) WARNING</span></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><span
lang="EN-GB"> </span></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Hi
all, </p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Can
anyone give me some info on what this warning
means:</p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span
style="font-family:"Courier New"">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]</span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">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.</p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Joel.</p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
</body>
</html>