From owner-freebsd-arch Thu Jul 19 8:37:58 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mail.disney.com (mail.disney.com [204.128.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 44E5437B405 for ; Thu, 19 Jul 2001 08:37:54 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from pain10.corp.disney.com (root@pain10.corp.disney.com [153.7.110.100]) by mail.disney.com (Switch-2.0.1/Switch-2.0.1) with SMTP id f6JFZrI04223 for ; Thu, 19 Jul 2001 08:35:53 -0700 (PDT) Received: from [172.30.50.1] by pain.corp.disney.com with ESMTP for arch@FreeBSD.ORG; Thu, 19 Jul 2001 08:37:34 -0700 Received: from plio.fan.fa.disney.com (plio.fan.fa.disney.com [153.7.118.2]) by pecos.fa.disney.com (8.11.3/8.11.3) with ESMTP id f6JFacs27457 for ; Thu, 19 Jul 2001 08:36:38 -0700 (PDT) Received: from mercury.fan.fa.disney.com (mercury.fan.fa.disney.com [153.7.119.1]) by plio.fan.fa.disney.com (8.9.2/8.9.2) with ESMTP id IAA27192 for ; Thu, 19 Jul 2001 08:36:37 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from snoopy.fan.fa.disney.com by mercury.fan.fa.disney.com; Thu, 19 Jul 2001 08:36:37 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Jim Pirzyk Organization: Walt Disney Feature Animation To: Terry Lambert Subject: Re: Setting the default MAX Stack size Date: Thu, 19 Jul 2001 08:36:36 -0700 X-Mailer: KMail [version 1.2] Cc: arch@FreeBSD.ORG References: <01071816182904.00720@snoopy> <3B569744.E4EDCC63@mindspring.com> In-Reply-To: <3B569744.E4EDCC63@mindspring.com> MIME-Version: 1.0 Message-Id: <01071908363603.07804@snoopy> Content-Transfer-Encoding: 8bit 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 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. 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. - 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