From owner-freebsd-arch Thu Jul 19 9: 2:17 2001 Delivered-To: freebsd-arch@freebsd.org Received: from illustrious.cnchost.com (illustrious.concentric.net [207.155.252.7]) by hub.freebsd.org (Postfix) with ESMTP id BA86237B405 for ; Thu, 19 Jul 2001 09:02:14 -0700 (PDT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by illustrious.cnchost.com id MAA23206; Thu, 19 Jul 2001 12:02:13 -0400 (EDT) [ConcentricHost SMTP Relay 1.14] Message-ID: <200107191602.MAA23206@illustrious.cnchost.com> To: Jim Pirzyk Cc: arch@FreeBSD.ORG Subject: Re: Setting the default MAX Stack size In-reply-to: Your message of "Thu, 19 Jul 2001 08:36:36 PDT." <01071908363603.07804@snoopy> Date: Thu, 19 Jul 2001 09:02:12 -0700 From: Bakul Shah Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > > 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? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message