From owner-freebsd-questions@FreeBSD.ORG Sat Feb 5 17:52:51 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C56E516A4CE for ; Sat, 5 Feb 2005 17:52:51 +0000 (GMT) Received: from mail23.sea5.speakeasy.net (mail23.sea5.speakeasy.net [69.17.117.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D82C43D2F for ; Sat, 5 Feb 2005 17:52:49 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 18144 invoked from network); 5 Feb 2005 17:52:49 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail23.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 5 Feb 2005 17:52:48 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id E813183; Sat, 5 Feb 2005 12:52:45 -0500 (EST) Sender: lowell@be-well.ilk.org To: Isaac Yonemoto References: From: Lowell Gilbert Date: 05 Feb 2005 12:52:45 -0500 In-Reply-To: Message-ID: <44lla2yjv6.fsf@be-well.ilk.org> Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: stack size limits X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2005 17:52:51 -0000 Isaac Yonemoto writes: > I'm trying to adjust the stack size limit on my computer. I'm not exactly > sure what to do. Here's what I've tried: > > ulimit -s (size) in bash > unlimit stacksize unlimited in csh > > options MAXSSIZE=(size) in /usr/src/sys/i386/conf/KERNELNAME; > make buildkernel > make installkernel > > stacksize=infinity in /etc/login.conf; > cap_mkdb /etc/login.conf > > kern.stacksize=(size) in /etc/sysctl.conf > > but despite all these efforts, doing ulimit -a still seems to show the > default 64M limit. Does anyone have any suggestions as to what I should > have done/should do to increase the size users are allowed to have? The maximum stack sizes are somewhat tied to the memory map, which is dependent on the hardware. Are you sure you need bigger stacks? If a task is using that much stack space on a 32-bit architecture, the program involved probably needs to be redesigned anyway...