From owner-freebsd-questions@FreeBSD.ORG Wed Jan 18 17:05:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 1DB3216A420 for ; Wed, 18 Jan 2006 17:05:55 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id B43E543D7C for ; Wed, 18 Jan 2006 17:05:50 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id D5AF75F20; Wed, 18 Jan 2006 12:05:49 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 79148-10; Wed, 18 Jan 2006 12:05:49 -0500 (EST) Received: from [192.168.1.3] (pool-68-161-122-227.ny325.east.verizon.net [68.161.122.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 0B6445D67; Wed, 18 Jan 2006 12:05:49 -0500 (EST) Message-ID: <43CE756D.6030400@mac.com> Date: Wed, 18 Jan 2006 12:05:49 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Barnett References: <38B0D3AA-E02D-4B95-BF26-8ED49F371C00@measuremap.com> In-Reply-To: <38B0D3AA-E02D-4B95-BF26-8ED49F371C00@measuremap.com> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-questions@freebsd.org Subject: Re: kernel memory tunables 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: Wed, 18 Jan 2006 17:05:55 -0000 Michael Barnett wrote: > I am trying to figure out which system tunables determine memory > resource usage by the amount of available physical memory in the box so > i can hard code sane values on a system with a lot of memory. If the machine is properly configured, getrlimit(RLIMIT_DATA, ...) is a reasonable starting place. The amount of memory available to an individual process may well be less than the total amount of RAM installed, especially on 32-bit machines using PAE to have more than 4GB of RAM. Otherwise, consider using the sysctl interface to look at hw.usermem... -- -Chuck