<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Alex,<o:p></o:p></p>
<p class="MsoNormal">Can you share specifically where in the configs I would be able to confirm that asynchronous logging is enabled?<o:p></o:p></p>
<p class="MsoNormal">I’ve already added the “-“ in front of the log file and that didn’t seem to make any recognizable difference.<o:p></o:p></p>
<p class="MsoNormal">Thanks in advance.<o:p></o:p></p>
<p class="MsoNormal">Amit<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">sr-users <sr-users-bounces@lists.kamailio.org> on behalf of Alex Balashov <abalashov@evaristesys.com><br>
<b>Date: </b>Thursday, September 15, 2022 at 5:21 PM<br>
<b>To: </b>Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><br>
<b>Subject: </b>Re: [SR-Users] Log levels severely impacts performance<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Agree, have had some very high-volume systems with prodigious logging output for every call and no problems.
<br>
<br>
Have also had these types of load problems on other systems with much less logging. The problem was either that asynchronous logging was not turned on, or the I/O subsystem was abnormally slow for other reasons, such as other heavy demand on storage, or just
 intrinsically slow.<br>
<br>
— Alex<br>
<br>
> On Sep 15, 2022, at 5:18 PM, Henning Westerholt <hw@gilawa.com> wrote:<br>
> <br>
> Hello,<br>
> <br>
> Kamailio is using the system interface for syslog, this is also a code which is quite stable and has not seen a lot of changes in the last years.<br>
> People are using Kamailio with a lot of logging in high load situation usually without problems, there has not been a lot of reports about that in the past.<br>
> <br>
> Maybe it something related to a specific distribution version? I checked, the rsyslog is using asynchronous writing as default since a long time. What logging engine do you use?<br>
> <br>
> Cheers,<br>
> <br>
> Henning<br>
> <br>
> -- <br>
> Henning Westerholt - <a href="https://skalatan.de/blog/">https://skalatan.de/blog/</a><br>
> Kamailio services - <a href="https://gilawa.com">https://gilawa.com</a><br>
> <br>
> -----Original Message-----<br>
> From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Jeremy Kister<br>
> Sent: Thursday, September 15, 2022 9:59 PM<br>
> To: sr-users@lists.kamailio.org<br>
> Subject: Re: [SR-Users] Log levels severely impacts performance<br>
> <br>
> On 9/13/2022 10:18 PM, Amit wrote:<br>
>> Does anyone have any experience with this or have any suggestions? We <br>
>> are finding it difficult to scale as a result of this issue.<br>
> <br>
> I was just dealing with this behavior. I was logging to a local rsyslog and rsyslog was just writing to a file on a local ssd (unsynced).<br>
> <br>
> It's a ton of log.  But meh.<br>
> <br>
> I disabled syslog entirely and enabled log_stderror = yes<br>
> <br>
> Then I just captured stdout+stderr via multilog and write it to a file on the disk.  The problem went away.<br>
> <br>
> I think there is some huge overhead in the way kam packages up the log and sends it out to syslog.<br>
> <br>
> -- <br>
> <br>
> Jeremy Kister<br>
> <a href="https://jeremy.kister.net./">https://jeremy.kister.net./</a><br>
> <br>
> __________________________________________________________<br>
> Kamailio - Users Mailing List - Non Commercial Discussions<br>
>  * sr-users@lists.kamailio.org<br>
> Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
> Edit mailing list options or unsubscribe:<br>
>  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
> <br>
> __________________________________________________________<br>
> Kamailio - Users Mailing List - Non Commercial Discussions<br>
>  * sr-users@lists.kamailio.org<br>
> Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
> Edit mailing list options or unsubscribe:<br>
>  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br>
Web: <a href="http://www.evaristesys.com/">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/">
http://www.csrpswitch.com/</a><br>
<br>
<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * sr-users@lists.kamailio.org<br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></p>
</div>
</div>
</body>
</html>