[Asterisk-bsd] Stack size in pthreads

Konstantin Prokazoff asterisk-bsd@lists.digium.com
Wed, 21 Jul 2004 12:09:41 +0300


Yes, on linux default stack size is about 2M (LinuxThreads-0.9), in win32 it
takes 1M. On FreeBSD 64k. ;)

----- Original Message -----
From: "Chris Stenton" <jacs@gnome.co.uk>
To: <asterisk-bsd@lists.digium.com>
Sent: Wednesday, July 21, 2004 11:42 AM
Subject: Re: [Asterisk-bsd] Stack size in pthreads


> Thats why on Solaris they made the default pthread stack size 1 megabyte
> to be on the safe side!
>
> Chris
>
> On Tue, 2004-07-20 at 15:36, Olle E. Johansson wrote:
> > http://bugs.digium.com/bug_view_page.php?bug_id=0002067
> >
> > Seems like the default stack size for a native thread in FreeBSD is 64k,
> > which is not enough for Asterisk. We need to make it higher.
> >
> > Questions:
> > * In how many places of the source do we need to set the thread
stacksize?
> >
> > * Is this needed for other BSD:s as well? What about Mac OS/X?
> >
> > Again, this is beyond my knowledge of programming, so we need help in
> > coming through here. Raising the stack size made my crashes disappear.
> >
> > Join me in the bug tracker, now :-)
> >
> > And thank you Oryx, for a great job in providing us with fixes and
information.
> >
> > /O
> > _______________________________________________
> > Asterisk-BSD mailing list
> > Asterisk-BSD@lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-bsd
>
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
>