[Freeswitch-users] high pdd (how to debug)
Dave Kompel
drk at drkngs.net
Mon Aug 18 05:50:18 MSD 2014
Windows is not an issue. Can handle massive loads. I’m sure attaching a debugger, or looking at a core dump, it will be very easy to find out what is causing the problem.
--Dave
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: Sunday, August 17, 2014 8:18 PM
To: Freeswitch-users
Subject: Re: [Freeswitch-users] high pdd (how to debug)
Its not about gdb, its about weather or not the limitation is only in windows or only caused by illegitimate traffic. We won't know that from debugging only in windows.
Sofia has a known bottleneck when pushed too hard. More profiles is a myth. The solution is to find the breaking point and set that as the hard max to avoid breaking it.
If you want to pay premium rate to tell you this formally contact consulting at freeswitch.org
On Aug 17, 2014 5:06 PM, <andretodd at verizon.net> wrote:
thanks, I can do that and report back.
Andre
On 08/17/14, Dave Kompel<drk at drkngs.net> wrote:
Tony and Andre,
Rather than going back and forth on this matter, here are the instructions on how you can find out exactly what is going on.
On your target system, make sure you have the sysinternals tools installed, and in your path. This will enable you to use procdump from the command line. When FS gets into the state with an assload of hung threads, use procdump to take a full dump. This will be a very large file.
Copy the .dmp file from the target box, to the build box, if they’re the same then forgot about copying it. Now on your build box, open the FS solution in VS. Then in VS from the File->Open menu, open the .DMP file. This will put you in the debugger, just as if you were running FS under a debugger.
Check the Threads windows and see if a buttload of threads are all hung in the same place. Double clicking on the thread will push that thread into the call stack window. Now you can see where the thread is hung. If it’s in a kernel call go up the strack till you get to code in FS. Double click on that stack frame, that will open you to the line of source code at the point it got hung. In the source window it’s just like in the debugger. Hover over any variable to see it’s value.
This is the same process for doing it under linux, but rather than using GDB you have the full VS GUI debugger experience. Tony, you can quote him the same if he gives you access to the build box, as you would for someone that gave you access to a dump and GDB.
Because you most likely will have a lot of threads all hung in the same place, and threads call stack, and source code are in different windows, this should take about 10 minutes to find out what’s going on.
--Dave
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: Sunday, August 17, 2014 2:53 PM
To: Freeswitch-users
Subject: Re: [Freeswitch-users] high pdd
When you refer to more getting performance as getting it fixed, it strikes a nerve.
Start with what I said and test for same results on debian 7 to have clarity if you have a windows specific performance limitation. There might be up to 1 million lines of code difference between windows and *nix. We can't even tell you how much to pay unless we know there is something to change. Also there is no indication you are using realistic traffic to test. All of these details are critical.
On Aug 17, 2014 1:43 PM, "Andre Demattia" <andretodd at verizon.net> wrote:
Thanks, I'm using the newest master and the last stable 1.2.23
We are willing to pay to get this fixed.
Andre
From: Anthony Minessale
Sent: 8/17/2014 12:30 PM
To: Freeswitch-users
Subject: Re: [Freeswitch-users] high pdd
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.
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.
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.
On Aug 17, 2014 9:54 AM, "Andre Demattia" <andretodd at verizon.net> wrote:
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.
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.
Funny thing is I has 10 profiles and the same results. I also tried two consoles with the same results.
FreeSWITCH is great.
I'd be grateful for help. I've worked on this for 2 years and hate to give up.
If any one from consulting at freeswitch.org is willing to help I'd appreciate that.
Thanks again,
Andre
From: Anthony Minessale
Sent: 8/17/2014 10:13 AM
To: Freeswitch-users
Subject: Re: [Freeswitch-users] high pdd
Did you comment out manage-presence ? Also we have no real idea how well FS performs in windows under extreme load.
On Aug 17, 2014 5:42 AM, "Andre Demattia" <andretodd at verizon.net> wrote:
Thanks Ken, I'll try the consulting again.
Andre
From: Ken Rice
Sent: 8/17/2014 1:19 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] high pdd
if the last post does not work contact consulting at freeswitch.org for pro help from one of the developers... thats about as far as the list will take you
Ken
Sent from my iPad
On Aug 16, 2014, at 15:23, "Andre" <andretodd at verizon.net> wrote:
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.
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.
Anyone know what the results mean? I’ve only tested 2 calls on this status.
[The entire original message is not included.]
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
[The entire original message is not included.]
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140817/1bef941d/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list