Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Feb 2002 12:46:42 +0100
From:      Mathieu Arnold <ma@absolight.fr>
To:        FreeBSD questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: the LINT file
Message-ID:  <3C5A8022.E87CEF88@club-internet.fr>
References:  <3C5A7FBC.CC58C4ED@club-internet.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
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 ?

adding to myself :

# Tune the buffer cache maximum KVA reservation, in bytes.  The maximum
is
# usually capped at 200 MB, effecting machines with > 1GB of ram.  Note
# that the buffer cache only really governs write buffering and disk
block
# translations.  The VM page cache is our primary disk cache and is not
# effected by the size of the buffer cache.
#
options                VM_BCACHE_SIZE_MAX="(100*1024*1024)"

it says 200M in the comment, but 100 in the code

# Tune the swap zone KVA reservation, in bytes.  The default is
typically
# 70 MB, giving the system the ability to manage a maximum of 28GB worth
# of swapped out data.  
#
options                VM_SWZONE_SIZE_MAX="(50*1024*1024)"

70 -> 50...

-- 
Mathieu Arnold

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C5A8022.E87CEF88>