One of the properties of -hp is to enable memlockall() which means disable swapping.  This causes all memory used by FS to be resident permanently and is much more costly in memory usage.  -hp also uses a RR scheduler runs the process at a less nice level and increases a few other process ulimits.  This mode is designed for high end usage and uses more resources when idle with a large payout when scaling to many calls.<br>
<br><br><br><br><div class="gmail_quote">On Mon, Dec 7, 2009 at 10:42 AM, DJB <span dir="ltr">&lt;<a href="mailto:djbinter@yahoo.com">djbinter@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><div>One thing that I forgot to mention, these 2 FreeSWITCH servers are getting calls with load balancing from another switch.  Thus, the traffic type are pretty much identical and both FSs have exactly the same on configuration.  Any suggestion would be appreciated.  Thank you.</div>
<div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div class="hm"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> DJB &lt;<a href="mailto:djbinter@yahoo.com" target="_blank">djbinter@yahoo.com</a>&gt;<br>
<b><span style="font-weight: bold;">To:</span></b> FREESWITCH-USERS MAILING LIST &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Sun, December 6, 2009 5:17:14 PM<br>
<b><span style="font-weight: bold;">Subject:</span></b> [Freeswitch-users] Question regarding running FreeSWITCH with high priority enabled.<br></font></div><div><div></div><div class="h5"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div><div>I have 2 identical Dell PowerEdge 1950 servers running FreeSWITCH Version 1.0.4 (exported) with only one thing difference which is the first one is running with -hp enabled; however, I have noticed that the one with -hp option consumed double in memory usage than the other one.  </div>
<div><br></div><div>I wonder whether anyone can explain why.  Thank you.</div><div><br></div><div>Please see below:</div><div><br></div><div>--------------------------------------------------------------------------------------------------------------</div>
<div>top - 01:01:42 up 53 days,  2:45,  1 user,  load average: 0.22, 0.28, 0.29</div><div>Tasks: 143 total,   1 running, 142 sleeping,   0 stopped,
   0 zombie</div><div>Cpu(s):  0.9%us,  0.2%sy,
  0.0%ni, 96.4%id,  2.5%wa,  0.0%hi,  0.0%si,  0.0%st</div><div>Mem:   8174164k total,  7550092k used,   624072k free,   187568k buffers</div><div>Swap: 10223608k total,        0k used, 10223608k free,  5417524k cached</div>
<div><br></div><div>  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                </div><div>30750 root      -2 -10 1823m 1.5g  20m S  8.6 19.8   1153:40 freeswitch</div>
<div><br></div><div>4418 session(s) 14/100</div><div><br></div><div>root     30750  2.1 <b><font color="#ff0000">19.9</font></b> 1879252 1634300
 ?     S&lt;Ll Oct30 1153:50 /usr/local/freeswitch/bin/freeswitch -nc -hp</div><div><br></div><div>--------------------------------------------------------------------------------------------------------------</div><div>
top - 01:01:58 up 53 days,  2:45,  1 user,  load average: 0.43, 0.51, 0.49</div><div>Tasks: 143 total,   1 running, 142 sleeping,   0 stopped,   0 zombie</div><div>Cpu(s):  0.9%us,  0.3%sy,  0.0%ni, 96.4%id,  2.4%wa,  0.0%hi,  0.0%si,  0.0%st</div>
<div>Mem:   8174164k total,  6751260k used,  1422904k free,   203948k buffers</div><div>Swap: 10223608k total,        0k used, 10223608k free,  5432632k cached</div><div><br></div><div>  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                  
                                              </div><div> 7147 root      15   0 1961m 755m 5164 S  9.0  9.5   1452:26 freeswitch    </div><div><br></div><div>4478 session(s) 14/100</div><div><br></div><div>root      7147  1.9  <b><font color="#ff0000">9.4</font></b> 2009392 774848 ?      Sl   Oct15 1452:37 /usr/local/freeswitch/bin/freeswitch -nc</div>
<div><br></div><div><br></div></div><div></div>



</div><br>

      </div></div></div></div><div></div>



</div><br>

      </div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>