Re: [asterisk-users] How to generate core dump?
Danny Nicholas schrieb: You would think this, but I've seen asterisk create 100 or more dumps in an hour of 10+Mb. Depending on Inode size, etc., this situation could push a system into a hurting capacity rather quickly. Also, many shops use older technology and compound this by RAID striping, which can reduce your effective capacity by up to 70%. Just an observation. If my Asterisk crashes 100 times per hour I would not be concerned about disk sizes, but about the service Asterisk should offer. klaus -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of RE Kushner List Account Sent: Monday, March 02, 2009 10:58 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How to generate core dump? Danny Nicholas wrote: You could change your asterisk command to asterisk -vvg, but this will eat your disk space if you have a large number of faults since each core.* file produced takes up 1-13 Mb. In the day and age where 500GB hard drives are $75 at Micro Center, hard drive space shouldn't be a concern to many unless you've recycled a system older than four years old. I was out yesterday and the cheapest and smallest drive they carried was a WD 160GB for $40, and until the last year the smallest drive you could get was 80GB, and the year before that 60GB. It'd take weeks of core dumps before a blip would show up in df unless it's constantly core dumping, which from what he said I suspect is not the case. -Ron ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
Mark Michelson schrieb: Ken D'Ambrosio wrote: Asterisk segfaulted on me the other day; how do I tell it to generate a core file so -- if it happens again -- I can attempt to debug? I looked in the obvious places in make menuconfig and didn't see anything appropriate. Thanks, -Ken Run Asterisk with the -g option and it will dump a core file if it should crash. If you also want to specify the location/file name this can be useful too (man core) echo /tmp/core.%p /proc/sys/kernel/core_pattern klaus ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
On Wed, Mar 04, 2009 at 09:32:43AM +0100, Klaus Darilion wrote: Mark Michelson schrieb: Ken D'Ambrosio wrote: Asterisk segfaulted on me the other day; how do I tell it to generate a core file so -- if it happens again -- I can attempt to debug? I looked in the obvious places in make menuconfig and didn't see anything appropriate. Thanks, -Ken Run Asterisk with the -g option and it will dump a core file if it should crash. If you also want to specify the location/file name this can be useful too (man core) echo /tmp/core.%p /proc/sys/kernel/core_pattern Hmm.. this way you can't tell which executable generated it . echo /tmp/core.%e.%t /proc/sys/kernel/core_pattern Or maybe (untested) echo |/usr/local/sbin/core_handler '%e' '%s' See the kernel documentation: http://kernel.org/doc/Documentation/sysctl/kernel.txt This is handy for those of you with limited disk space. OTOH, it will probably not work on legacy systems with kernel 2.6.18. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
Install a Microsoft product. (Sorry I couldn't resist when I saw the subject) -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tzafrir Cohen Sent: March 4, 2009 8:48 AM To: Asterisk Users List Subject: Re: [asterisk-users] How to generate core dump? On Wed, Mar 04, 2009 at 09:32:43AM +0100, Klaus Darilion wrote: Mark Michelson schrieb: Ken D'Ambrosio wrote: Asterisk segfaulted on me the other day; how do I tell it to generate a core file so -- if it happens again -- I can attempt to debug? I looked in the obvious places in make menuconfig and didn't see anything appropriate. Thanks, -Ken Run Asterisk with the -g option and it will dump a core file if it should crash. If you also want to specify the location/file name this can be useful too (man core) echo /tmp/core.%p /proc/sys/kernel/core_pattern Hmm.. this way you can't tell which executable generated it . echo /tmp/core.%e.%t /proc/sys/kernel/core_pattern Or maybe (untested) echo |/usr/local/sbin/core_handler '%e' '%s' See the kernel documentation: http://kernel.org/doc/Documentation/sysctl/kernel.txt This is handy for those of you with limited disk space. OTOH, it will probably not work on legacy systems with kernel 2.6.18. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] How to generate core dump?
Asterisk segfaulted on me the other day; how do I tell it to generate a core file so -- if it happens again -- I can attempt to debug? I looked in the obvious places in make menuconfig and didn't see anything appropriate. Thanks, -Ken -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
Ken D'Ambrosio wrote: Asterisk segfaulted on me the other day; how do I tell it to generate a core file so -- if it happens again -- I can attempt to debug? I looked asterisk -help Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
On Mon, 2 Mar 2009, Ken D'Ambrosio wrote: Asterisk segfaulted on me the other day; how do I tell it to generate a core file so -- if it happens again -- I can attempt to debug? I looked in the obvious places in make menuconfig and didn't see anything appropriate. man asterisk, read about -g. Thanks in advance, Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
Ken D'Ambrosio wrote: Asterisk segfaulted on me the other day; how do I tell it to generate a core file so -- if it happens again -- I can attempt to debug? I looked in the obvious places in make menuconfig and didn't see anything appropriate. Thanks, -Ken Run Asterisk with the -g option and it will dump a core file if it should crash. Mark Michelson ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
You could change your asterisk command to asterisk -vvg, but this will eat your disk space if you have a large number of faults since each core.* file produced takes up 1-13 Mb. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steve Edwards Sent: Monday, March 02, 2009 9:08 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How to generate core dump? On Mon, 2 Mar 2009, Ken D'Ambrosio wrote: Asterisk segfaulted on me the other day; how do I tell it to generate a core file so -- if it happens again -- I can attempt to debug? I looked in the obvious places in make menuconfig and didn't see anything appropriate. man asterisk, read about -g. Thanks in advance, Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
Hi Ken, If you run ulimit -c on the command line and get a 0 output, then you need to run ulimit -c unlimited on the command line. -Steve Ken D'Ambrosio wrote: Asterisk segfaulted on me the other day; how do I tell it to generate a core file so -- if it happens again -- I can attempt to debug? I looked in the obvious places in make menuconfig and didn't see anything appropriate. Thanks, -Ken ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
Danny Nicholas wrote: You could change your asterisk command to asterisk -vvg, but this will eat your disk space if you have a large number of faults since each core.* file produced takes up 1-13 Mb. In the day and age where 500GB hard drives are $75 at Micro Center, hard drive space shouldn't be a concern to many unless you've recycled a system older than four years old. I was out yesterday and the cheapest and smallest drive they carried was a WD 160GB for $40, and until the last year the smallest drive you could get was 80GB, and the year before that 60GB. It'd take weeks of core dumps before a blip would show up in df unless it's constantly core dumping, which from what he said I suspect is not the case. -Ron ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
You would think this, but I've seen asterisk create 100 or more dumps in an hour of 10+Mb. Depending on Inode size, etc., this situation could push a system into a hurting capacity rather quickly. Also, many shops use older technology and compound this by RAID striping, which can reduce your effective capacity by up to 70%. Just an observation. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of RE Kushner List Account Sent: Monday, March 02, 2009 10:58 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How to generate core dump? Danny Nicholas wrote: You could change your asterisk command to asterisk -vvg, but this will eat your disk space if you have a large number of faults since each core.* file produced takes up 1-13 Mb. In the day and age where 500GB hard drives are $75 at Micro Center, hard drive space shouldn't be a concern to many unless you've recycled a system older than four years old. I was out yesterday and the cheapest and smallest drive they carried was a WD 160GB for $40, and until the last year the smallest drive you could get was 80GB, and the year before that 60GB. It'd take weeks of core dumps before a blip would show up in df unless it's constantly core dumping, which from what he said I suspect is not the case. -Ron ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
Ken D'Ambrosio wrote: Asterisk segfaulted on me the other day; how do I tell it to generate a core file so -- if it happens again -- I can attempt to debug? I looked in the obvious places in make menuconfig and didn't see anything appropriate. There should be a file called something like backtrace.txt that gives you instructions on how to compile with debugging options, generate a coredump when Asteriss crashes, as well as information on how to generate a backtrace to determine where the problem is located. This file would be in the doc/ directory in your Asterisk source. -- Eric Wieling * Asteria Solutions Group * Huntsville, AL Call centers * IVRs * Enterprise PBXs * Conferencing applications 256-705-0277 * http://www.asteriasgi.com/ * sa...@asteriasgi.com ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] How to generate core dump?
Danny Nicholas wrote: You would think this, but I've seen asterisk create 100 or more dumps in an hour of 10+Mb. Depending on Inode size, etc., this situation could push a system into a hurting capacity rather quickly. Also, many shops use older technology and compound this by RAID striping, which can reduce your effective capacity by up to 70%. Just an observation. 100 crashes an hour is one thing, that will fill up somewhat quicker, but still, it's only slightly less than a gig per hour, it'd be days before most modern system started to run out of space if they have the entire drive formatted under / I have a e-mail system on 100GB RAID 5 system (4 36GB drives) that has never run out of inodes and it's receiving a few hundred files per minute, heck, looking at it it's only using 5% of inodes for 50GB of small e-mail files. You'd have to be running some old Red Hat (pre 8) to have a standard ext3 format not have enough inodes (for a mail server). I really don't see any reason to run RAID 5 on an Asterisk server when mirroring might be a better option and it'd give you faster overall file IO. I'd hate to see a four or five drive RAID 5 system rebuild if it had 100GB drives, a coat of paint probably dries faster. -Ron ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users