vm.kmem_size settings doesn't affect loader?
John Baldwin
jhb at freebsd.org
Thu Sep 25 13:29:44 UTC 2008
On Thursday 25 September 2008 06:26:58 am Bartosz Stec wrote:
>
> Today I've experienced zfs-related kernel panic. Log says:
>
> savecore: reboot after panic: kmem_malloc(131072): kmem_map too
> small: 327684096 total allocated
>
> Reported amount of memory (327684096) is wrong, because i made suggested
> tuning in my loader.conf:
>
> vm.kmem_size="512M"
> vm.kmem_size_max="512M"
>
> Just to be sure:
>
> # sysctl vm | grep kmem
> vm.kmem_size: 536870912
> vm.kmem_size_min: 0
> vm.kmem_size_max: 536870912
> vm.kmem_size_scale: 3
>
> Am I missing something?
If kvm is fragmented you could have a malloc fail even if there are enough
total free bytes for the allocatoin.
--
John Baldwin
More information about the freebsd-stable
mailing list