From owner-freebsd-questions Fri Mar 1 17: 3:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from root.com (unknown [209.102.106.178]) by hub.freebsd.org (Postfix) with ESMTP id 5965137B41B for ; Fri, 1 Mar 2002 17:02:09 -0800 (PST) Received: (from dg@localhost) by root.com (8.11.2/8.11.2) id g220xuI38423; Fri, 1 Mar 2002 16:59:56 -0800 (PST) (envelope-from dg) Date: Fri, 1 Mar 2002 16:59:56 -0800 From: David Greenman To: Jason Barnes Cc: Erik Trulsson , freebsd-questions@freebsd.org, rbeyer@lpl.arizona.edu, Wayne Barnes Subject: Re: out of memory, but there's plenty left! Message-ID: <20020301165956.G37548@nexus.root.com> References: <20020301094759.F35679@nexus.root.com> <20020301175504.I12903-100000@c3po.lpl.arizona.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020301175504.I12903-100000@c3po.lpl.arizona.edu>; from jbarnes@c3po.lpl.arizona.edu on Fri, Mar 01, 2002 at 05:57:27PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > >> >options MAXDSIZ="(2048*1024*1024)" >> >options MAXSSIZ="(2048*1024*1024)" >> >options DFLDSIZ="(2048*1024*1024)" >> > >> >and now everything works without any prolems! Awesome! Thank you very >> >much for your help! >> >> That was a bit overly aggressive and will almost certainly cause you >> problems. The kernel has to organize the process virtual address space, and >> there's only about 3GB available. The above tells the kernel that you want >> 2GB each for stack and data...which is not going to work like you want. > > It seemed that the limits were 512MB before, this isn't THAT great >a change. What kind of problems do you anticipate might crop up as a >result of requiring the kernel to allow so much space for processes? There is a physical limitation because x86 is a 32 bit architecture. I'm actually surprised that it worked at all, but the dynamic stack growth probably saved you. I suggest lowering the stack back to 512MB. The problem you were having is with the DSIZ. I would set that at 1GB, but 2GB might be okay as long as MAXSSIZ in 512MB. The kernel uses MAXDSIZ to decide where to start putting shared libraries. Setting it real high like that may cause problems if it runs into the stack. -DG David Greenman Co-founder, The FreeBSD Project - http://www.freebsd.org President, TeraSolutions, Inc. - http://www.terasolutions.com President, Download Technologies, Inc. - http://www.downloadtech.com Pave the road of life with opportunities. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message