kmem_map too small: 3832475648 total allocated

Willem Jan Withagen wjw at digiware.nl
Mon May 10 20:22:28 UTC 2010


-----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-----


More information about the freebsd-current mailing list