Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Apr 2010 10:11:49 +0200
From:      Gary Jennejohn <gljennjohn@googlemail.com>
To:        Willem Jan Withagen <wjw@digiware.nl>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, 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:  <20100430101149.35d50368@ernst.jennejohn.org>
In-Reply-To: <4BDA07B4.40506@digiware.nl>
References:  <4BD8F7FA.2080103@jrv.org> <q2qed91d4a81004282117v3e56d52qd7cc6a6fefc4f702@mail.gmail.com> <4BDA07B4.40506@digiware.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 30 Apr 2010 00:27:00 +0200
Willem Jan Withagen <wjw@digiware.nl> wrote:

> On 29-4-2010 6:17, Artem Belevich wrote:
> > Do you have vm.kmem_size set in /boot/loader.conf?
> >
> > If not, do set it to about double of your physical RAM size. Defaults
> > are way too conservative for use with large amounts of memory and ZFS.
> 
> As per this suggestion I set this value to 2*8G:
> vm.kmem_size="17179869184"
> 
> And bfore the kernel boots this value is set in the loader.
> Tested it by goinginto the loader and show the value.
> 
> But once booted I still get:
> [/boot] wjw@zfs.digiware.nl> sysctl vm.kmem_size
> vm.kmem_size: 3718209536
> 
> So who is resetting this value???
> 

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?

--
Gary Jennejohn



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