From owner-freebsd-questions Fri Feb 1 4:19:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailc.telia.com (mailc.telia.com [194.22.190.4]) by hub.freebsd.org (Postfix) with ESMTP id 4958237B425 for ; Fri, 1 Feb 2002 04:18:54 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailc.telia.com (8.11.6/8.11.6) with ESMTP id g11CIms06378 for ; Fri, 1 Feb 2002 13:18:48 +0100 (CET) Received: from falcon.midgard.homeip.net (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id NAA03579 for ; Fri, 1 Feb 2002 13:18:48 +0100 (CET) Received: (qmail 47091 invoked by uid 1001); 1 Feb 2002 12:18:46 -0000 Date: Fri, 1 Feb 2002 13:18:46 +0100 From: Erik Trulsson To: Mathieu Arnold Cc: FreeBSD questions Subject: Re: the LINT file Message-ID: <20020201121846.GA47075@student.uu.se> Mail-Followup-To: Mathieu Arnold , FreeBSD questions References: <3C5A7FBC.CC58C4ED@club-internet.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C5A7FBC.CC58C4ED@club-internet.fr> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 01, 2002 at 12:45:00PM +0100, Mathieu Arnold wrote: > I'm actually upgrading one of my test box from 4_4 to 4_5, and I > stumbled on this : > > # Tune the kernel malloc area parameters. VM_KMEM_SIZE represents the > # minimum, in bytes, and is typically (12*1024*1024) (12MB). > # VM_KMEM_SIZE_MAX represents the maximum, typically 200 megabytes. > # VM_KMEM_SIZE_SCALE can be set to adjust the auto-tuning factor, which > # typically defaults to 4 (kernel malloc area size is physical memory > # divided by the scale factor). > # > options VM_KMEM_SIZE="(10*1024*1024)" > options VM_KMEM_SIZE_MAX="(100*1024*1024)" > options VM_KMEM_SIZE_SCALE="4" > > the comment says that VM_KMEM_SIZE is set to 12MB but it's set to 10, > and that _MAX is set to 200 but it's set to 100... > I heard once that if the comment and the code differed, they were both > wrong :) > so, what should be the default values ? The values used in LINT are usually and intentionally *not* the default values. The reason for this is to try to make sure that you get at least some testing with non-default values. To find the actual default values used I suggest you look in the code. (The actual .c/.h files that is. LINT is not the code.) The comments in LINT are probably correct though. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message