<div dir="ltr">Hi All,<br><div>        I have 10 client profiles and 10 server profiles along with default client and server profile in my tls.cfg</div><div><br></div><div><p style="margin:0cm 0cm 8pt;line-height:105%;font-size:11pt;font-family:Calibri,sans-serif"><font color="#000000">These are the numbers on time taken for tls_fix_domains_cfg initialization to complete based on the number of client and server profiles i have.</font></p><p style="margin:0cm 0cm 8pt;line-height:105%;font-size:11pt;font-family:Calibri,sans-serif"><font color="#000000"><br></font></p>

<table class="gmail-MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
 <tbody><tr>
  <td width="162" style="width:121.45pt;border:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Number of profiles</p>
  </td>
  <td width="81" style="width:60.8pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Time diff</p>
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">(Sec)</p>
  </td>
  <td width="100" style="width:75pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">No of tcp child processes</p>
  </td>
  <td width="93" style="width:69.65pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Start time</p>
  </td>
  <td width="106" style="width:79.2pt;border-top:1pt solid windowtext;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:none;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">End time</p>
  </td>
 </tr>
 <tr style="height:2.9pt">
  <td width="162" style="width:121.45pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt;height:2.9pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">5</p>
  </td>
  <td width="81" style="width:60.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt;height:2.9pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:black;background:rgb(221,221,238)">3.99</span></b><span style="font-size:10pt;font-family:Arial,sans-serif;color:black;background:rgb(221,221,238)"> </span></p>
  </td>
  <td width="100" style="width:75pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt;height:2.9pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">42</p>
  </td>
  <td width="93" style="width:69.65pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt;height:2.9pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">16:47:01.836</p>
  </td>
  <td width="106" style="width:79.2pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt;height:2.9pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">16:47:05.826</p>
  </td>
 </tr>
 <tr>
  <td width="162" style="width:121.45pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">6</p>
  </td>
  <td width="81" style="width:60.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">4.69 </p>
  </td>
  <td width="100" style="width:75pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">42</p>
  </td>
  <td width="93" style="width:69.65pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">16:59:29.335</p>
  </td>
  <td width="106" style="width:79.2pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">16:59:34.027</p>
  </td>
 </tr>
 <tr>
  <td width="162" style="width:121.45pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">7</p>
  </td>
  <td width="81" style="width:60.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:black;background:rgb(221,221,238)">5.347</span></b><span style="font-size:10pt;font-family:Arial,sans-serif;color:black;background:rgb(221,221,238)"> </span></p>
  </td>
  <td width="100" style="width:75pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">42</p>
  </td>
  <td width="93" style="width:69.65pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">17:04:30.271</p>
  </td>
  <td width="106" style="width:79.2pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">17:04:35.618</p>
  </td>
 </tr>
 <tr>
  <td width="162" style="width:121.45pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">8</p>
  </td>
  <td width="81" style="width:60.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:black;background:rgb(221,221,238)">6.10</span></b></p>
  </td>
  <td width="100" style="width:75pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">42</p>
  </td>
  <td width="93" style="width:69.65pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">17:18:41.109</p>
  </td>
  <td width="106" style="width:79.2pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">17:18:47.204</p>
  </td>
 </tr>
 <tr>
  <td width="162" style="width:121.45pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">9</p>
  </td>
  <td width="81" style="width:60.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:black;background:rgb(221,221,238)">6.614</span></b><span style="font-size:10pt;font-family:Arial,sans-serif;color:black;background:rgb(221,221,238)"> </span></p>
  </td>
  <td width="100" style="width:75pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">42</p>
  </td>
  <td width="93" style="width:69.65pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">17:22:36.869</p>
  </td>
  <td width="106" style="width:79.2pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">17:22:43.483</p>
  </td>
 </tr>
 <tr>
  <td width="162" style="width:121.45pt;border-right:1pt solid windowtext;border-bottom:1pt solid windowtext;border-left:1pt solid windowtext;border-top:none;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">10</p>
  </td>
  <td width="81" style="width:60.8pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:black;background:rgb(221,221,238)">7.379</span></b></p>
  </td>
  <td width="100" style="width:75pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">42</p>
  </td>
  <td width="93" style="width:69.65pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">17:27:46.676</p>
  </td>
  <td width="106" style="width:79.2pt;border-top:none;border-left:none;border-bottom:1pt solid windowtext;border-right:1pt solid windowtext;padding:0cm 5.4pt">
  <p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">17:27:54.055</p>
  </td>
 </tr>
</tbody></table><br><br>Kamailio 5.1.9 version is running on the below </div><div><br></div><div>Linux Kernel version :  3.10.0-693.el7.x86_64</div><div><br>Centos version : CentOS Linux release 7.4.1708 (Core)</div><div><br>CPU : 2 cores with model name      : Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz</div><div><br>[root@miv5000 ~]# cat /proc/meminfo<br>MemTotal:        3882076 kB<br>MemFree:          811244 kB<br>MemAvailable:    2320356 kB<br></div><div><br></div><div>Openssl verison : OpenSSL 1.0.2k-fips  26 Jan 2017<br></div><div><br></div><div>Now my question is : Is it ok for the api to take "8 seconds" to complete initialization in case of having 10 client and 10 server profiles along with default profiles in tls.cfg ? The time units taken for initialization to complete</div><div>should it be in the order of milliseconds range or in seconds range ?   Are there any more parameters related to tls configuration like "crl " which would play a factor in time taken for the initialization to complete.</div><div><br></div><div>Currently at my application level , timeout is happening as the initialization is taking more time when more number of profiles are enabled.</div><div><br></div><div>Please share your inputs on whether it is justifiable with my setup cpu/memory, it is ok for tls_fix_domains_cfg to take 8 seconds for the initialization to complete.</div><div><br></div><div>Regards,</div><div>Mahesh.B.  </div><div><br></div></div>