From owner-freebsd-arch Fri Jul 20 8:40:26 2001 Delivered-To: freebsd-arch@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 3FD1937B405 for ; Fri, 20 Jul 2001 08:40:22 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.134.204.Dial1.SanJose1.Level3.net [209.245.134.204]) by hawk.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id IAA29281; Fri, 20 Jul 2001 08:40:20 -0700 (PDT) Message-ID: <3B585109.ED17E59B@mindspring.com> Date: Fri, 20 Jul 2001 08:40:57 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Jim Pirzyk Cc: arch@FreeBSD.ORG Subject: Re: Setting the default MAX Stack size References: <01071816182904.00720@snoopy> <3B569744.E4EDCC63@mindspring.com> <01071908363603.07804@snoopy> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message