<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Most likely it is neither of these. I'm seriously doubting that the mutexes are causing problems unless you are actually seeing multiple calls blocking each other, which i don't think is happening here. I think you need to be looking at what is using the most cpu. Have you looked at running in the profiler?<div><br><div><div>On Aug 27, 2014, at 6:10 PM, Dave Kompel <<a href="mailto:drk@drkngs.net">drk@drkngs.net</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Does anyone still have a dump with the stack trace of those threads in them. The more I think about this, the more it “feels” like it’s not the mutex code in libapr, but what is calling it. Can someone post one level up in the stacktrace?<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">--Dave<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0in 0in;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>Andre<br><b>Sent:</b><span class="Apple-converted-space"> </span>Wednesday, August 27, 2014 5:34 PM<br><b>To:</b><span class="Apple-converted-space"> </span>'FreeSWITCH Users Help'<br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] high pdd<o:p></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Thanks I’ll do that in the morning.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">We still will try Travis APR code but I’m not sure how to compile it. Any hits would be grateful. I’ve read the read me files but I still get errors :/<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Also, I’ve installed Debian as suggested and hope to test soon.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Andre<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0in 0in;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of</b>Moishe Grunstein<br><b>Sent:</b><span class="Apple-converted-space"> </span>Wednesday, August 27, 2014 5:22 PM<br><b>To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] high pdd<o:p></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">You should put this in a Jira, this thread is getting very complex to track.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><a name="_MailEndCompose"></a><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0in 0in;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of</b>Andrew<br><b>Sent:</b><span class="Apple-converted-space"> </span>Wednesday, August 27, 2014 4:25 PM<br><b>To:</b><span class="Apple-converted-space"> </span>'FreeSWITCH Users Help'<br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] high pdd<o:p></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Hi,<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I know Andre is trying on UNIX but wanted to share what I found..<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I too have the same issue. But I am using Master x64 embedded.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">After 2600 threads the program just keeps adding a ton threads (very fast) and wireshark shows<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Lots of re invites. My magic number is 1300 ports(bridge). CPS does not seem to matter but its more ports/Threads.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Not sure but when doing a dump I see<span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; background-color: yellow;">EnterCriticalSection(&cond->csection);</span><span style="font-size: 9.5pt; font-family: Consolas;"><span class="Apple-converted-space"> </span>is being pointed to in thread_cond.c</span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">static</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>APR_INLINE apr_status_t _thread_cond_timedwait(apr_thread_cond_t *cond,<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> apr_thread_mutex_t *mutex,<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> DWORD timeout_ms )<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;">{<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> DWORD res;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> apr_status_t rv;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">unsigned</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">int</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>wake = 0;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">unsigned</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">long</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>generation;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><o:p> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> EnterCriticalSection(&cond->csection);<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> cond->num_waiting++;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> generation = cond->generation;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> LeaveCriticalSection(&cond->csection);<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><o:p> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> apr_thread_mutex_unlock(mutex);<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><o:p> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">do</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>{<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> res = WaitForSingleObject(cond->semaphore, timeout_ms);<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><o:p> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: yellow;"> EnterCriticalSection(&cond->csection);<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><o:p> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">if</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>(cond->num_wake) {<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">if</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>(cond->generation != generation) {<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> cond->num_wake--;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> cond->num_waiting--;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> rv = APR_SUCCESS;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">break</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;">;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> }<span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">else</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>{<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> wake = 1;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> }<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> }<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">else</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">if</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>(res != WAIT_OBJECT_0) {<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> cond->num_waiting--;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> rv = APR_TIMEUP;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">break</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;">;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> }<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><o:p> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> LeaveCriticalSection(&cond->csection);<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><o:p> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">if</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>(wake) {<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> wake = 0;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> ReleaseSemaphore(cond->semaphore, 1, NULL);<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> }<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> }<span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">while</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>(1);<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><o:p> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> LeaveCriticalSection(&cond->csection);<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> apr_thread_mutex_lock(mutex);<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><o:p> </o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue; background-color: white; background-position: initial initial; background-repeat: initial initial;">return</span><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;"><span class="Apple-converted-space"> </span>rv;<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 9.5pt; font-family: Consolas; background-color: white;">}<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of</b>Anthony Minessale<br><b>Sent:</b><span class="Apple-converted-space"> </span>Wednesday, August 20, 2014 6:13 PM<br><b>To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] high pdd<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p> </o:p></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><a href="https://github.com/traviscross/apr" style="color: purple; text-decoration: underline;">https://github.com/traviscross/apr</a><o:p></o:p></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p> </o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p> </o:p></div></div></div><div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p> </o:p></p><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">On Wed, Aug 20, 2014 at 4:44 PM, Andre <<a href="mailto:andretodd@verizon.net" target="_blank" style="color: purple; text-decoration: underline;">andretodd@verizon.net</a>> wrote:<o:p></o:p></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt; position: static; z-index: auto;"><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Thanks Anthony,</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I can provide the Dump for you it’s 8gb unzipped so I’ll compress it. The tool I use is Visual studio but I’m sure there are other tools too.</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I can run a the profiler tool in visual studio to find the CPU.</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Also how do I get the modified copy of the APR?</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Thanks again guys.</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Andre</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of</b>Anthony Minessale<br><b>Sent:</b><span class="Apple-converted-space"> </span>Wednesday, August 20, 2014 5:26 PM</span><o:p></o:p></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><br><b>To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] high pdd<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">The cond waits are all of your session threads in bypass media mode asleep in the state machine.<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">Its hard to tell with that blurry screen shot what else is going on. Is there a way to produce that data in a way we could browse it?<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">You should be looking for threads in the sofia sip stack and the ones doing originate if you are worried about pdd. Also which threads are costing the most CPU. If conditionals are implemented in windows as waitforsingleobject i have no idea if that's as efficient as it is in linux.<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">You could try forklifting in our modified copy of APR that has been updated to work with their latest release and see if anything has improved in the windows implementations of conditionals. I recall Jeff had to backport in at least one patch for that over the years.<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div></div><div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></p><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">On Wed, Aug 20, 2014 at 4:11 PM, Andre <<a href="mailto:andretodd@verizon.net" target="_blank" style="color: purple; text-decoration: underline;">andretodd@verizon.net</a>> wrote:<o:p></o:p></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt; position: static; z-index: auto;"><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Ok I’ll try that next. I’ll create xml dialplan to see if that makes a difference.</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">One note, when I didn’t load the deck in my managed code my dial plan did return a 503 in 0 – 20 milliseconds. Not sure if that matters since no bridge was ever called.</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Thanks again,</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Andre</span><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div><div><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0in 0in;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of</b>Michael Jerris<br><b>Sent:</b><span class="Apple-converted-space"> </span>Wednesday, August 20, 2014 5:02 PM</span><o:p></o:p></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><br><b>To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] high pdd<o:p></o:p></div></div></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">I would test this without any of your managed code at all, to confirm that it is not the bottleneck.<o:p></o:p></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">On Aug 20, 2014, at 4:28 PM, Andre <<a href="mailto:andretodd@verizon.net" target="_blank" style="color: purple; text-decoration: underline;">andretodd@verizon.net</a>> wrote:<o:p></o:p></div></div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></p><blockquote style="margin-top: 5pt; margin-bottom: 5pt;"><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I added the new code but it doesn’t seem to fix it. :/</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0in 0in;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Andre<br><b>Sent:</b> Wednesday, August 20, 2014 3:37 PM<br><b>To:</b> 'FreeSWITCH Users Help'<br><b>Subject:</b> Re: [Freeswitch-users] high pdd</span><o:p></o:p></div></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Thanks I’ll work on it right a way.</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">freeswitch-users-bounces@lists.freeswitch.org</span></a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">mailto:freeswitch-users-bounces@lists.freeswitch.org</span></a>] <b>On Behalf Of </b>Peter Olsson<br><b>Sent:</b> Wednesday, August 20, 2014 3:30 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] high pdd</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">It seems it might be stuck in the condition code for Windows.<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">Try this timing patch for Windows, and see if it makes any difference. I've tested in on lower load, but it would be interesting how it performs in this scenario.<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><a href="https://jira.freeswitch.org/secure/attachment/20613/windows-waitable-timer-diff.txt" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">https://jira.freeswitch.org/secure/attachment/20613/windows-waitable-timer-diff.txt</span></a><o:p></o:p></div></div></div><div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></p><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">2014-08-20 21:13 GMT+02:00 Andre <<a href="mailto:andretodd@verizon.net" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">andretodd@verizon.net</span></a>>:<o:p></o:p></div></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt; position: static; z-index: auto;"><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I will, need to get hardware and figure out how to use mono.</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">In the meantime, I’ve attached some of the call traces. </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><image001.jpg><image002.jpg><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><image003.jpg><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">freeswitch-users-bounces@lists.freeswitch.org</span></a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">freeswitch-users-bounces@lists.freeswitch.org</span></a>] <b>On Behalf Of</b>Brian West<br><b>Sent:</b> Wednesday, August 20, 2014 3:05 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] high pdd</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">Try the same thing on Debian 7 if possible.<o:p></o:p></div></div><div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></p><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">On Wed, Aug 20, 2014 at 12:35 PM, Andre <<a href="mailto:andretodd@verizon.net" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">andretodd@verizon.net</span></a>> wrote:<o:p></o:p></div></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt; position: static; z-index: auto;"><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Hi, I’m using the master. Should I try 1.4.7?</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I’ve done a dump after things started to go bad/ backed up.</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I see 8193 threads in _<i>thread_cond</i>_timedwait. Looks like its on line 81 of thread_cond.c res = WaitForSingleObject(cond->semaphore, timeout_ms);</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">The value of timeout_ms is <a href="tel:2016850392" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">2016850392</span></a>.</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Not sure if this means anything.</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Thanks for the support guys.</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Andre</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">freeswitch-users-bounces@lists.freeswitch.org</span></a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">freeswitch-users-bounces@lists.freeswitch.org</span></a>] <b>On Behalf Of</b>Brian West<br><b>Sent:</b> Wednesday, August 20, 2014 11:57 AM</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] high pdd<o:p></o:p></div></div><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">1.2.X is EOL, <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">1.4.7 is the current release.<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">We have releases and tags in git that no longer carry the 'stable' moniker starting with 1.4. <o:p></o:p></div></div></div><div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></p><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">On Sun, Aug 17, 2014 at 1:39 PM, Andre Demattia <<a href="mailto:andretodd@verizon.net" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">andretodd@verizon.net</span></a>> wrote:<o:p></o:p></div></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt; position: static; z-index: auto;"><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Thanks, I'm using the newest master and the last stable 1.2.23<br>We are willing to pay to get this fixed.<span style="color: rgb(136, 136, 136);"><br>Andre</span></span><o:p></o:p></div></div><div><div class="MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-align: center;"><span style="color: rgb(136, 136, 136);"><hr size="3" width="100%" align="center"></span></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(136, 136, 136);">From: </span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(136, 136, 136);"><a href="mailto:anthony.minessale@gmail.com" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">Anthony Minessale</span></a></span><span style="color: rgb(136, 136, 136);"><br></span><b><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(136, 136, 136);">Sent: </span></b><span style="font-size: 11pt; color: rgb(136, 136, 136);"></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(136, 136, 136);">8/</span><span style="font-size: 11pt; color: rgb(136, 136, 136);"></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(136, 136, 136);">17/</span><span style="font-size: 11pt; color: rgb(136, 136, 136);"></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(136, 136, 136);">2014 12:30 PM</span><o:p></o:p></div></div><div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><br><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">To: </span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">Freeswitch-users</span></a></span><br><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Subject: </span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Re: [Freeswitch-users] high pdd</span><o:p></o:p></p></div></div><div><p style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif;">We dont have a lot of tools to troubleshoot windows. You should mention windows in your subject to have a better chance to get the attention of our windows users.<o:p></o:p></p><p style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif;">You should consider installing debian 7 on the same hardware and perform similar tests to help determine if your issue is o/s specific or not.<o:p></o:p></p><p style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif;">You also have not indicated the revision of FS. If you have not worked with latest master, you should be also to rule out improvements.<o:p></o:p></p><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">On Aug 17, 2014 9:54 AM, "Andre Demattia" <<a href="mailto:andretodd@verizon.net" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">andretodd@verizon.net</span></a>> wrote:<o:p></o:p></div></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt;"><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Yes that's off and I believe all the databases are off too. No authentication or registration is enabled. The sizes of the database are 0 until I call the shutdown command then its about 90k. I have the DBS in Ra drive too.<br><br>Windows seems pretty good until the 3000 sessions per min mark. Then I just get long pdd and the threads get backed up then no more sessions can be created. <br><br>Funny thing is I has 10 profiles and the same results. I also tried two consoles with the same results.<br><br>FreeSWITCH is great.<br><br>I'd be grateful for help. I've worked on this for 2 years and hate to give up. <br><br>If any one from <a href="mailto:consulting@freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">consulting@freeswitch.org</span></a> is willing to help I'd appreciate that.<br><br>Thanks again,<br>Andre</span><o:p></o:p></div></div><div><div class="MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-align: center;"><hr size="3" width="100%" align="center"></div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From: </span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><a href="mailto:anthony.minessale@gmail.com" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">Anthony Minessale</span></a></span><br><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Sent: </span></b><span style="font-size: 11pt;"></span><span style="font-size: 11pt; font-family: Calibri, sans-serif;">8/</span><span style="font-size: 11pt;"></span><span style="font-size: 11pt; font-family: Calibri, sans-serif;">17/</span><span style="font-size: 11pt;"></span><span style="font-size: 11pt; font-family: Calibri, sans-serif;">2014 10:13 AM</span><br><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">To: </span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">Freeswitch-users</span></a></span><br><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Subject: </span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Re: [Freeswitch-users] high pdd</span><o:p></o:p></p></div><p style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', serif;">Did you comment out manage-presence ? Also we have no real idea how well FS performs in windows under extreme load.<o:p></o:p></p><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">On Aug 17, 2014 5:42 AM, "Andre Demattia" <<a href="mailto:andretodd@verizon.net" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">andretodd@verizon.net</span></a>> wrote:<o:p></o:p></div></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt; position: static; z-index: auto;"><div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Thanks Ken, I'll try the consulting again.<br>Andre</span><o:p></o:p></div></div><div><div class="MsoNormal" align="center" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-align: center;"><hr size="3" width="100%" align="center"></div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From: </span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><a href="mailto:krice@freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">Ken Rice</span></a></span><br><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Sent: </span></b><span style="font-size: 11pt;"></span><span style="font-size: 11pt; font-family: Calibri, sans-serif;">8/</span><span style="font-size: 11pt;"></span><span style="font-size: 11pt; font-family: Calibri, sans-serif;">17/</span><span style="font-size: 11pt;"></span><span style="font-size: 11pt; font-family: Calibri, sans-serif;">2014 1:19 AM</span><br><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">To: </span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">FreeSWITCH Users Help</span></a></span><br><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Subject: </span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Re: [Freeswitch-users] high pdd</span><o:p></o:p></p></div><div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;">if the last post does not work contact <a href="mailto:consulting@freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">consulting@freeswitch.org</span></a> for pro help from one of the developers... thats about as far as the list will take you<o:p></o:p></p><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">Ken<o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">Sent from my iPad<o:p></o:p></div></div></div><div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><br>On Aug 16, 2014, at 15:23, "Andre" <<a href="mailto:andretodd@verizon.net" target="_blank" style="color: purple; text-decoration: underline;"><span style="color: purple;">andretodd@verizon.net</span></a>> wrote:<o:p></o:p></p></div><blockquote style="margin-top: 5pt; margin-bottom: 5pt;"><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Going with the idea it’s IO related I did a db_cache status. I just disabled limit in my code by removing it but limit should be HASH not a database however I stills how a database.</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Below is the results of the db cache status. I’m not real sure what its saying. I should have all registration and limit disabled and should not be using any sql database from my understanding.</span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span><o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Anyone know what the results mean? I’ve only tested 2 calls on this status.</span><o:p></o:p></div></div></blockquote><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"> <o:p></o:p></div></div><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">[The entire original message is not included.]<o:p></o:p></div></div></div></blockquote></div></blockquote></div></div></div></blockquote></div></div></div></div></blockquote></div></div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div><br></div></body></html>