From owner-freebsd-arch Sat Jul 21 4:43: 2 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 423E337B405 for ; Sat, 21 Jul 2001 04:43:00 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id VAA01663; Sat, 21 Jul 2001 21:42:54 +1000 Date: Sat, 21 Jul 2001 21:40:37 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Jim Pirzyk Cc: arch@FreeBSD.ORG Subject: Re: Setting the default MAX Stack size In-Reply-To: <01071816182904.00720@snoopy> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Wed, 18 Jul 2001, 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. This (set MAXSSIZ in the same way as MAXDSIZ) is the best answer. There is no point in making it more tunable than MAXDSIZ. Notes: - MAXSSIZ used to be an option, just like MAXDSIZ. There are ifdefs for both in . This was broken by not putting MAXSSIZ in sys/conf/options. - the stack size should normally be limited using login.conf or the stack size rlimit. These don't apply here because MAXSSIZ gives the maximum that can be set using these. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message