Subject: Re: Not enough stacks ?
To: Jarkko Teppo <jarkko.teppo@er-grp.com>
From: Chris Gilbert <chris@dokein.co.uk>
List: current-users
Date: 07/13/2003 22:16:49
On Sat, 12 Jul 2003 11:17:08 +0300
Jarkko Teppo <jarkko.teppo@er-grp.com> wrote:

> On Fri, Jul 11, 2003 at 07:15:42AM +0900, Makoto Fujiwara wrote:
> > Jarkko> sa_switch(2886.6 flag 900004): Not enough stacks.
> > 
> > But I do not recommend to do that, not being able to 
> > debug the native-pthread facility.
> 
> Yeah, I'd like to get working native threads.
> 
> Anyway, I took a wild guess and bumbed SA_NUMSTACKS from 16 to 256 in 
> sys/sys/savar.h. I haven't seen the message yet and xmms is still
> happily playing but I haven't tested extensively yet, although xmms
> has been behaving quite well (as has mozilla).
> 
> Are there any drawbacks from the bump ?

It looks like any process using sa's will use more kernel memory (if I'm
reading the code in kern/kern_sa.c correctly)

Chris