Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jul 2001 10:08:59 -0700
From:      Bakul Shah <bakul@bitblocks.com>
To:        tlambert2@mindspring.com
Cc:        Jim Pirzyk <Jim.Pirzyk@disney.com>, arch@freebsd.org
Subject:   Re: Setting the default MAX Stack size 
Message-ID:  <200107201709.NAA29982@marlborough.cnchost.com>
In-Reply-To: Your message of "Fri, 20 Jul 2001 08:44:47 PDT." <3B5851EF.19B13D73@mindspring.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > How about something like
> > 
> >     options   MAXSSIZ="(256UL*1024*1024)"
> > 
> > in your config file?
> 
> This increases the maximum user space stack size, not the
> stack size in the kernel.

> If this is what he meant, then yeah, this will do it;

I too was initially confused but I believe this is what he
meant based on the following (from his email):

> > 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).

Stranger things have happened but I didn't think the Disney
folks had implemented smog particle simulation in the kernel
space:-)

Your original comment about rewriting kernel code to use less
space is equally valid for user code but Pirzyk probably
wanted a quick fix first.

> he also needs to look at his login class in login.conf,
> and "ulimit"/"limit"/"limits" (based on the shell he is
> using), to crank up the user space quota, and not just
> the top end limit.

Yes indeed.

-- bakul

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?200107201709.NAA29982>