Date: Fri, 20 Jul 2001 12:04:00 -0700 From: Jim Pirzyk <Jim.Pirzyk@disney.com> To: Terry Lambert <tlambert2@mindspring.com> Cc: arch@FreeBSD.ORG Subject: Re: Setting the default MAX Stack size Message-ID: <0107201204000G.07804@snoopy> In-Reply-To: <3B585109.ED17E59B@mindspring.com> References: <01071816182904.00720@snoopy> <01071908363603.07804@snoopy> <3B585109.ED17E59B@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 20 July 2001 08:40 am, Terry Lambert wrote: > Jim Pirzyk wrote: > > On Thursday 19 July 2001 01:16 am, Terry Lambert wrote: > > > Jim Pirzyk wrote: > > > > So I have a need to increase the max stack size in the kernel. > > [ ... ] > > > > > 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. > > I don't understand why the kernel stack size has anything to > do with this, unless you are implementing this in the kernel. > > If you are running out of kernel stack, we need to know where, > since that sould be a serious bug. Ah, here is the disconnect. I am talking the user's max stack size which is a parameter in the kernel, not the kernel's stack size. Changing MAXSSIZ in the kernel allows you to type limit stacksize 262143 - 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?0107201204000G.07804>