From owner-freebsd-questions@FreeBSD.ORG Thu Feb 24 20:07:08 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 AF2B816A4CE for ; Thu, 24 Feb 2005 20:07:08 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AC1843D49 for ; Thu, 24 Feb 2005 20:07:08 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j1OK77cY056444; Thu, 24 Feb 2005 14:07:07 -0600 (CST) (envelope-from dan) Date: Thu, 24 Feb 2005 14:07:07 -0600 From: Dan Nelson To: "O. Hartmann" Message-ID: <20050224200705.GA2480@dan.emsphone.com> References: <421E2D6C.20203@mail.uni-mainz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <421E2D6C.20203@mail.uni-mainz.de> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-questions@freebsd.org Subject: Re: Setting MAXDSIZ, MAXSSIZ, DFLDSIZ via kernel OIDs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 20:07:08 -0000 In the last episode (Feb 24), O. Hartmann said: > Due to runtime problems of several F77 code based scientific software > I increased possible data segment size and stack by the shown values. > > options MAXDSIZ=(2048UL*1024*1024) > options MAXSSIZ=(1024UL*1024*1024) > options DFLDSIZ=(1024UL*1024*1024) > > These changes implies building a new kernel and I would like to know > how I can set these parameters via kern.l OIDs (in > loader.conf.local). I'm sure it's documented somewhere but I find it easier to grep for the word TUNABLE in the kernel source :) Found these in subr_param.c: TUNABLE_QUAD_FETCH("kern.maxdsiz", &maxdsiz); TUNABLE_QUAD_FETCH("kern.dfldsiz", &dfldsiz); TUNABLE_QUAD_FETCH("kern.maxssiz", &maxssiz); -- Dan Nelson dnelson@allantgroup.com