From owner-freebsd-stable@FreeBSD.ORG Tue Sep 28 14:25:44 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0A471065695; Tue, 28 Sep 2010 14:25:44 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id CC02B8FC13; Tue, 28 Sep 2010 14:25:43 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA05445; Tue, 28 Sep 2010 17:25:39 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4CA1FAE3.9090200@icyb.net.ua> Date: Tue, 28 Sep 2010 17:25:39 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Willem Jan Withagen References: <4CA1D06C.9050305@digiware.nl> <20100928115047.GA62142@icarus.home.lan> <4CA1ECCC.4070801@digiware.nl> <4CA1F1B4.1020700@icyb.net.ua> <4CA1F570.6000602@digiware.nl> <4CA1F6A0.20109@icyb.net.ua> <4CA1F6FD.5090807@digiware.nl> In-Reply-To: <4CA1F6FD.5090807@digiware.nl> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org, fs@freebsd.org, Jeremy Chadwick Subject: Re: Still getting kmem exhausted panic X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2010 14:25:44 -0000 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