<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Lucida Console'; font-size:9pt; font-weight:400; font-style:normal;">On Mittwoch, 20. Mai 2009, Christian Koch wrote:<br>
&gt; &gt; This long startup is also a bit unusual. Sure, it needs to allocates<br>
&gt; &gt; some memory, and this informations needs to be written to syslog, but<br>
&gt; &gt; several minutes is too slow. Do you read some database content in<br>
&gt; &gt; memory on startup, like a huge location table, or a big carrierroute<br>
&gt; &gt; route tree with several hundreds of MB?<br>
&gt;<br>
&gt; We're connecting to a database, but it includes only a few (about 20)<br>
&gt; subscribers, nothing else.  We didn't stress test the database<br>
&gt; (-connection). Without memdebug kamailio runs fast.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>This is strange. Do you log to a remote host, for example with TCP? Or do you've another big IO load on the machine, that could block the writing of logs to the disk somehow?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>&gt; &gt; &gt; May 20 09:42:20 AmbriaSip1 kamailio: params (0x81677e0, 96), called<br>
&gt; &gt; &gt; from route_struct.c: mk_action(106)<br>
&gt; &gt; &gt; [..]<br>
&gt; &gt; &gt; May 20 09:42:22 AmbriaSip1 kamailio: params (0x81677e0, 12), returns<br>
&gt; &gt; &gt; address 0x81b4004 frag. 0x81b3fec (size=12) on 1 -th hit<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; The logfile is full with this kind of messages.<br>
&gt; &gt; &gt; The load of the machine (Xeon dualcore @3GHz) goes up to 2, but using<br>
&gt; &gt; &gt; top we can't see that kamailio is using much CPU time (sometimes about<br>
&gt; &gt; &gt; 20%, but not more).<br>
&gt; &gt;<br>
&gt; &gt; So in which processes is the rest of the CPU time spend?<br>
&gt;<br>
&gt; Most of the time the CPU seems to be idle. Sometimes syslog shows up in<br>
&gt; top, but without much CPU time.<br>
&gt; Do you think this could be a dual-CPU issue? Perhaps syncing the memory<br>
&gt; access between the CPUs is slow?<br>
&gt; If you like to see the complete logfile we can post this too.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I'd guess most people run kamailio on a multi-CPU setup nowadays, so i don't think this is the reason. So what causes the load of 2 during startup, if not kamailio or syslog?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Henning</p></body></html>