Still getting kmem exhausted panic

Andriy Gapon avg at
Tue Sep 28 14:25:44 UTC 2010

on 28/09/2010 17:09 Willem Jan Withagen said the following:
> On 28-9-2010 16:07, Andriy Gapon wrote:
>> on 28/09/2010 17:02 Willem Jan Withagen said the following:
>>> I do have (read) this document, but still that doesn't really give you
>>> guidelines for tuning on FreeBSD. It is a fileserver without any serious
>>> other apps.
>>> I was using "auto-tuned", and that crashed my box. That is what started
>>> this whole thread.
>> Well, as I've said, in my opinion FreeBSD-specific tuning ends at setting kmem size.
> I consider that a useful statement.

Hm, looks like I've just given a bad advice.
It seems that auto-tuned arc_max is based on kmem size.
So if you use kmem size that is larger than available physical memory, then you
better limit arc_max to the available memory minus 1GB or so, if the autotuned
value is larger than that.

I think this needs to be fixed in the code.

Andriy Gapon

More information about the freebsd-stable mailing list