From owner-freebsd-questions@FreeBSD.ORG Mon Apr 4 20:10:46 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80804106564A for ; Mon, 4 Apr 2011 20:10:46 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 3B7278FC1E for ; Mon, 4 Apr 2011 20:10:45 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1Q6q6m-0006kN-M7; Mon, 04 Apr 2011 21:10:44 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Q6q6m-0005Rg-F1; Mon, 04 Apr 2011 21:10:44 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id p34KAiTp031279; Mon, 4 Apr 2011 21:10:44 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id p34KAin4031278; Mon, 4 Apr 2011 21:10:44 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Mon, 4 Apr 2011 21:10:44 +0100 From: Anton Shterenlikht To: Mark Blackman Message-ID: <20110404201044.GA31206@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: Mark Blackman , Anton Shterenlikht , freebsd-questions@freebsd.org References: <20110404195034.GA31077@mech-cluster241.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: Anton Shterenlikht , freebsd-questions@freebsd.org Subject: Re: how to increase stacksize? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2011 20:10:46 -0000 On Mon, Apr 04, 2011 at 09:00:16PM +0100, Mark Blackman wrote: > > On 4 Apr 2011, at 20:50, Anton Shterenlikht wrote: > > [snip] > > > > I'd like to increase stacksize. > > How do I do this? > > > > "limits -s xxx" doesn't set the limits, > > any anyway, in /etc/login.conf I get: > > > > So where do my shell settings come from? > > stacksize is ultimately a kernel limit, and the hard > maximum is visible with > > sysctl kern.maxssiz > > set 'kern.maxdxiz' in your /boot/loader.conf and reboot > if you're already hitting the hard limit. > > - Mark Mark, thank you. kern.maxssiz: 268435456 kern.maxdsiz: 1073741824 kern.maxtsiz: 1073741824 Is the second limit datasize? What is the 3rd limit? Is this documented anywhere? I can't seem to find it here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-kernel-limits.html Many thanks Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423