Brady Wetherington wrote: > On Thu, 13 Oct 2005 10:23:11 -0400, Andrew Piskorski > <[EMAIL PROTECTED]> wrote: > >> was going on and found the config option to increase thread stack > >> size. This > > > >That reminds me: Just why must AOLserver set ANY fixed stack size? Is > >this required by AOLserver, by Tcl, by some interaction between them, > >or what?
The setting of default (not fixed) is the basis of many threading systems, pthreads included. Pthreads allows you to adjust this with pthread_attr_setstacksize, if that's available in your pthreads implementation (for Linux, that's mostly yes). Note that this defines a *minimum* stack size. > >I've been told that Linux (at least) is able to automatically and > >transparently grow and shrink each thread's C stack, but I'm not sure > >if that's true. I think it might be related to mmap(), NPTL, and/or > >glibc's FLOATING_STACKS, but I haven't been able to find any This appears to be the case, as FLOATING_STACKS returns a lot of hits on the subject. However, I think it's the minimum stack size that often isn't enough. What this means when stacks are supposed to float ?? Well, I'm not quite sure, but I guarantee you I can create stack segfaults when the minimum isn't set high enough. > So that's the theory. I don't know how Tcl does its threads, > #1, and I don't know enough about NTPL or any of the other > threading models as they are actually implemented to know if > these options are even available. See above - it isn't really an NTPL issue, as the floating stack stuff appeared to exist in LinuxThreads as well. Jeff Hobbs, The Tcl Guy http://www.ActiveState.com/, a division of Sophos -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
