From: Ioan I. <ioa...@mo...> - 2007-05-23 20:30:35
|
Hello Kris, Thank you for your quick answer and tips. Still I do not think it is a problem on ulimit. I verify fds for asterisk pid and was less that 1024. Also, for generating the core I run unlimit -c unlimited....but this is just to get the core. How to debug it? Regarding swap - I see (with free) that there is plenty of free memory. So no need for a swap. Or am I wrong? Bellow you have some data from such a crash: ------------------------------------------------------------------------ pbx ~ # asterisk -rx "show channels"; free Channel Location State Application(Data) 0 active channels 0 active calls total used free shared buffers Mem: 971136 57964 913172 0 8304 Swap: 0 0 0 Total: 971136 57964 913172 pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime 10 active calls total used free shared buffers Mem: 971136 58808 912328 0 8304 Swap: 0 0 0 Total: 971136 58808 912328 22:16:56 up 7:42, load average: 0.09, 0.02, 0.00 pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime 20 active calls total used free shared buffers Mem: 971136 59656 911480 0 8304 Swap: 0 0 0 Total: 971136 59656 911480 22:17:22 up 7:42, load average: 0.11, 0.03, 0.00 pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime 31 active calls total used free shared buffers Mem: 971136 60596 910540 0 8304 Swap: 0 0 0 Total: 971136 60596 910540 22:17:46 up 7:43, load average: 0.14, 0.05, 0.01 pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime 35 active calls total used free shared buffers Mem: 971136 60940 910196 0 8304 Swap: 0 0 0 Total: 971136 60940 910196 22:17:58 up 7:43, load average: 0.11, 0.04, 0.01 pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime 41 active calls total used free shared buffers Mem: 971136 61580 909556 0 8304 Swap: 0 0 0 Total: 971136 61580 909556 22:18:14 up 7:43, load average: 0.08, 0.04, 0.00 pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime 42 active calls total used free shared buffers Mem: 971136 61660 909476 0 8304 Swap: 0 0 0 Total: 971136 61660 909476 22:18:29 up 7:44, load average: 0.06, 0.04, 0.00 pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime 43 active calls total used free shared buffers Mem: 971136 61752 909384 0 8304 Swap: 0 0 0 Total: 971136 61752 909384 22:18:37 up 7:44, load average: 0.05, 0.04, 0.00 pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime 44 active calls total used free shared buffers Mem: 971136 61832 909304 0 8304 Swap: 0 0 0 Total: 971136 61832 909304 22:18:44 up 7:44, load average: 0.05, 0.04, 0.00 pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime 45 active calls total used free shared buffers Mem: 971136 61924 909212 0 8304 Swap: 0 0 0 Total: 971136 61924 909212 22:18:53 up 7:44, load average: 0.04, 0.03, 0.00 pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime 46 active calls total used free shared buffers Mem: 971136 62004 909132 0 8304 Swap: 0 0 0 Total: 971136 62004 909132 22:18:59 up 7:44, load average: 0.03, 0.03, 0.00 --- When I tried 47th call, asterisk crashed --- pbx ~ # asterisk -rx "show channels" | grep "active call"; free; uptime total used free shared buffers Mem: 971136 55480 915656 0 8304 Swap: 0 0 0 Total: 971136 55480 915656 22:19:05 up 7:44, load average: 0.51, 0.13, 0.03 pbx ~ # ------------------------------------------------------------------------ What do you think? BR, Ioan. ----- Original Message ----- From: "Kristian Kielhofner" <kri...@gm...> To: "AstLinux Users Mailing List" <ast...@li...> Sent: Wednesday, May 23, 2007 11:01 PM Subject: Re: [Astlinux-users] Astlinux 0.4.5 on Via EN12000EG - asteriskSIGSEGV > On 5/23/07, Ioan Indreias <ioa...@mo...> wrote: >> Hello, >> >> I am just installed Astlinux 0.4.5 on a Via EPIA EN12000EG Mini ITX >> fanless >> system and trying to made some load tests. >> >> As this is our test system we have 1 GB memory and we run with a 40 GB >> SATA >> drive (boot=sda1 and kd=sda2). >> >> First I had to insert in rc.modules via-velocity module in order to >> recognize the Ethernet Gigabit Via VT6120/VT6121/VT6122. (this is >> mentioned >> here just for reference). >> >> Next I tried to load a little bit the system and found that asterisk >> receive >> a SIGSEGV signal and get "Killed" (literraly this is what I receive on >> CLI). >> Using Sipp on another machine (with rtp_echo) and generating 3 minutes >> calls >> (with .call files I generate a SIP call to a WaitMusicOnHold(300) >> extension) >> I found that at near 44-46 simultaneous calls asterisk crashed without >> any >> visible indications in logs (with verbose and debug set to 10). >> >> As I not a Linux expert and not very familiar with Astlinux the only idea >> was to use strace and here is the output: >> >> pbx ~ # uname -a >> Linux pbx 2.6.16.12 #1 SMP PREEMPT Sun Apr 22 12:16:58 EDT 2007 i686 >> unknown >> pbx ~ # strace -p 31201 >> ... >> --- SIGRT_1 (Unknown signal 33) @ 0 (0) --- >> sigreturn() = ? (mask now ~[TRAP KILL STOP]) >> getppid() = 31200 >> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|__WCLONE, >> NULL) = >> 31563 >> munmap(0xb7e00000, 2097152) = 0 >> --- SIGSEGV (Segmentation fault) @ 0 (0) --- >> Process 31201 detached >> >> Do you have any recommendations on how to trace the problem? How could be >> analyzed a core file on Astlinux? >> >> Best regards, >> Ioan Indreias >> www.modulo.ro >> > > Ioan, > > I like load tests! Thanks for asking what to do about this - make > sure that you ask us any other questions you might have. > > When doing load tests you probably have to tweak ulimit before you > start Asterisk: > > http://www.voip-info.org/wiki-Asterisk+debugging#ulimit > http://www.voip-info.org/wiki/view/Asterisk+dimensioning > > I have always wanted to work this into AstLinux somehow... > Unfortunately because most systems don't have any swap space we have > to be very careful with memory consumption. > > However, if you want to add some swap space (if you need it), all of > the utils are there: > > mkswap > swapon > swapoff > > -- > Kristian Kielhofner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Astlinux-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pa...@kr.... |