From owner-freebsd-current@FreeBSD.ORG Mon May 10 20:22:28 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1EB53106564A for ; Mon, 10 May 2010 20:22:28 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mail.digiware.nl (mail.digiware.nl [80.255.245.173]) by mx1.freebsd.org (Postfix) with ESMTP id CDA468FC1B for ; Mon, 10 May 2010 20:22:27 +0000 (UTC) Received: from localhost (localhost.digiware.nl [127.0.0.1]) by mail.digiware.nl (Postfix) with ESMTP id 8EEE1153470; Mon, 10 May 2010 22:22:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from mail.digiware.nl ([127.0.0.1]) by localhost (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ej56pCiNnBfu; Mon, 10 May 2010 22:22:22 +0200 (CEST) Received: from [127.0.0.1] (vaio [192.168.10.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.digiware.nl (Postfix) with ESMTPSA id 0D03E15348D; Mon, 10 May 2010 21:49:15 +0200 (CEST) Message-ID: <4BE8633C.5030206@digiware.nl> Date: Mon, 10 May 2010 21:49:16 +0200 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Bruce Cran References: <4BD8F7FA.2080103@jrv.org> <4BDA07B4.40506@digiware.nl> <20100430101149.35d50368@ernst.jennejohn.org> <201005101909.16234.bruce@cran.org.uk> In-Reply-To: <201005101909.16234.bruce@cran.org.uk> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 100510-0, 10-05-2010), Outbound message X-Antivirus-Status: Clean X-Mailman-Approved-At: Mon, 10 May 2010 21:09:09 +0000 Cc: "James R. Van Artsdalen" , freebsd-current@freebsd.org, Artem Belevich Subject: Re: kmem_map too small: 3832475648 total allocated X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2010 20:22:28 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10-5-2010 20:09, Bruce Cran wrote: > 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. real memory = 8589934592 (8192 MB) avail memory = 8257212416 (7874 MB) So I'm setting it to 14G and reboot. (Which is a pain on my Areca card, since it keeps losing disks bu thatt is for another topic) Ans now it gives me: vm.kmem_size: 15032385536 So perhaps somebody should anotate /boot/defaults/loader.conf and/or list this op more positions...... - --WjW -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJL6GM8AAoJEP4k4K6R6rBhUEkH/30RkWpqcNnxK3rc0TTl1TWw vNDxNRx+daq3lTjq7H21aM4mblmqhyTDTE+8+JtZA8Imy2hDpgK5dna4YVz5fLX+ Z5bFod2nVFlY1JfsCVpJTP0w2mdlH+DqYFh1C0bqeVLczc9W8BwPPrs8ucatmy2y Fhtgh3T4wKDkb43jneWVxOBpzjXUR3AekvFyL1Dh52WS65KjfgyRPsBnISYs6+iO /ysB2DGXjBwEuPxlEKXWItW/ghA3bnLRGsCqzu16rULIDRaDr2G85sRkMcR0CmSn NNodAW1qOQetmV7RUkwejZqPsxl/pumIK4CbCVjz9hDoXSrApPJE8O4spZyvZiA= =c4Bz -----END PGP SIGNATURE-----