From owner-freebsd-arch Fri Jul 20 12: 4:25 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 1623C37B407 for ; Fri, 20 Jul 2001 12:04:18 -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 f6KJ3UI14276 for ; Fri, 20 Jul 2001 12:03:30 -0700 (PDT) Received: from [172.30.50.1] by pain.corp.disney.com with ESMTP for arch@FreeBSD.ORG; Fri, 20 Jul 2001 12:04:57 -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 f6KJ41s27755 for ; Fri, 20 Jul 2001 12:04:01 -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 MAA01783 for ; Fri, 20 Jul 2001 12:04:00 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from snoopy.fan.fa.disney.com by mercury.fan.fa.disney.com; Fri, 20 Jul 2001 12:04:00 -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: Fri, 20 Jul 2001 12:04:00 -0700 X-Mailer: KMail [version 1.2] Cc: arch@FreeBSD.ORG References: <01071816182904.00720@snoopy> <01071908363603.07804@snoopy> <3B585109.ED17E59B@mindspring.com> In-Reply-To: <3B585109.ED17E59B@mindspring.com> MIME-Version: 1.0 Message-Id: <0107201204000G.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 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