Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2010 19:09:15 +0100
From:      Bruce Cran <bruce@cran.org.uk>
To:        freebsd-current@freebsd.org, gljennjohn@googlemail.com
Cc:        Willem Jan Withagen <wjw@digiware.nl>, Artem Belevich <fbsdlist@src.cx>, "James R. Van Artsdalen" <james-freebsd-current@jrv.org>
Subject:   Re: kmem_map too small: 3832475648 total allocated
Message-ID:  <201005101909.16234.bruce@cran.org.uk>
In-Reply-To: <20100430101149.35d50368@ernst.jennejohn.org>
References:  <4BD8F7FA.2080103@jrv.org> <4BDA07B4.40506@digiware.nl> <20100430101149.35d50368@ernst.jennejohn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 30 April 2010 09:11:49 Gary Jennejohn wrote:

> A number of variables go into calculating vm.kmem_size (see kmeminit()
> in kern_malloc.c).
> 
> In the end, the kernel won't allocate more than twice the physical memory
> size _which it has discovered_.
> 
> The question is, how much of your physical memory does the kernel actually
> see?

It would appear that the maximum value for vm.kmem_size is twice the amount of 
"avail memory" - as opposed to the "real memory". I have 6GB installed; 6144MB 
gets detected but only 5873MB is available. Setting vm.kmem_size to 12G fails 
but 10G works.

-- 
Bruce Cran



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