Date: Mon, 10 May 2010 21:49:16 +0200 From: Willem Jan Withagen <wjw@digiware.nl> To: Bruce Cran <bruce@cran.org.uk> Cc: "James R. Van Artsdalen" <james-freebsd-current@jrv.org>, freebsd-current@freebsd.org, Artem Belevich <fbsdlist@src.cx> Subject: Re: kmem_map too small: 3832475648 total allocated Message-ID: <4BE8633C.5030206@digiware.nl> In-Reply-To: <201005101909.16234.bruce@cran.org.uk> References: <4BD8F7FA.2080103@jrv.org> <4BDA07B4.40506@digiware.nl> <20100430101149.35d50368@ernst.jennejohn.org> <201005101909.16234.bruce@cran.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BE8633C.5030206>