Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jul 2001 09:08:08 -0700
From:      Jim Pirzyk <Jim.Pirzyk@disney.com>
To:        Bakul Shah <bakul@bitblocks.com>
Cc:        arch@FreeBSD.ORG
Subject:   Re: Setting the default MAX Stack size
Message-ID:  <01071909080805.07804@snoopy>
In-Reply-To: <200107191602.MAA23206@illustrious.cnchost.com>
References:  <200107191602.MAA23206@illustrious.cnchost.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 19 July 2001 09:02 am, Bakul Shah wrote:
> > > > So I have a need to increase the max stack size in the kernel.  There
> > > > currently is no knob to do this.  I though of implementing it like
> > > > the max data size knob (MAXDSIZ).  Is this the best answer or should
> > > > it maybe be done via read only sysctl (and then can be set in the
> > > > /boot/loader.conf)?  I know how to do the former, but I am not sure
> > > > about the latter.
> > > >
> > > > Suggestions?
> > >
> > > Change your code to not use so much auto variable space; if
> > > you are using this much space, you need to rethink your
> > > algorithm.
> >
> > The program that is being used is by one of our developers and it
> > is using recursion internally to do smog particle simulation over
> > many frames (visual effects).  Or systems are installed with
> > 2GB of memory and they set there stack size to 128MB (from 64MB).
> >
> > The program could write its data out to disk, but then the
> > performance gets killed.
> >
> > We also had to knock up the stack size on the linux systems that
> > these programs are actually developed on.
>
> How about something like
>
>     options   MAXSSIZ="(256UL*1024*1024)"
>
> in your config file?

This is the commit that I was going to do if no one else had a better
idea.  You do need to add MAXSSIZ to the /sys/conf/options file for 
config(8) to accept it, and then document it in the LINT configuration.

- JimP


-- 
--- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
    __o   Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org
 _'\<,_   Senior Systems Engineer, Walt Disney Feature Animation 
(*)/ (*)  

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01071909080805.07804>