From owner-freebsd-current@FreeBSD.ORG Mon Dec 10 21:06:42 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2C0616A41B for ; Mon, 10 Dec 2007 21:06:42 +0000 (UTC) (envelope-from mharo-freebsd@haro.us) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by mx1.freebsd.org (Postfix) with ESMTP id 5507E13C44B for ; Mon, 10 Dec 2007 21:06:42 +0000 (UTC) (envelope-from mharo-freebsd@haro.us) Received: by wr-out-0506.google.com with SMTP id 68so1394141wra for ; Mon, 10 Dec 2007 13:06:41 -0800 (PST) Received: by 10.78.206.9 with SMTP id d9mr3298796hug.1197320799713; Mon, 10 Dec 2007 13:06:39 -0800 (PST) Received: by 10.78.199.10 with HTTP; Mon, 10 Dec 2007 13:06:39 -0800 (PST) Message-ID: Date: Mon, 10 Dec 2007 13:06:39 -0800 From: "Michael Haro" Sender: mharo-freebsd@haro.us To: "Alexandre Biancalana" In-Reply-To: <8e10486b0712100951m85f0278neb73ac4277779ba4@mail.gmail.com> MIME-Version: 1.0 References: <8e10486b0711280537n222d6cd5le33639b82a11f45@mail.gmail.com> <8e10486b0711300247q4438235ata70ca42030871286@mail.gmail.com> <20071130124801.74c40ef9@peedub.jennejohn.org> <8e10486b0712040521u5c7015b8h86d0da5554162898@mail.gmail.com> <47556554.3010505@clearchain.com> <8e10486b0712040719ydcf32e0mbe690c3f18968691@mail.gmail.com> <8e10486b0712100523k45c61865v7821d0522ad5f994@mail.gmail.com> <8e10486b0712100951m85f0278neb73ac4277779ba4@mail.gmail.com> X-Google-Sender-Auth: 2d8818b057f03ced Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org, Benjamin Close Subject: Re: 7-BETA3 everyday reboot X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2007 21:06:42 -0000 On 12/10/07, Alexandre Biancalana wrote: > > On 12/10/07, Michael Haro wrote: > > > > > > > > On 12/10/07, Alexandre Biancalana wrote: > > > On 12/7/07, Michael Haro wrote: > > > > > > > > > > > > > > I have found that turning off zil and prefetch seem to keep > things > > > > > > happier on one of the heavily loaded servers that I look after. > > > > > > It also appears to prevent a deadlock under very heavy load - > > something > > > > > > I've not yet had time to debug. > > > > > > Try adding: > > > > > > > > > > > > vfs.zfs.zil_disable=1 > > > > > > vfs.zfs.prefetch_disable="1" > > > > > > > > > > > > to /boot/loader.conf > > > > > > > > > > > > and let us know if it makes a difference. > > > > > > > > > > Added now only > > > > > > > > > > vfs.zfs.prefetch_disable="1" > > > > > > > > > > > > > > > I let you know the result. > > > > > > > > Is the result promising? > > > > > > > > > > > Yes ! The machine does not reboot anymore ! > > > > What combination of settings did you have to do to make it stable? I > tried > > setting vfs.zfs.prefetch_disable="1' in loader.conf and my machine still > > panics within 20 minutes during (I think) large file transfers. > > > > > Here is my /boot/loader.conf: > > kern.maxdsiz="2G" # Set the max data size to 4GB > kern.maxssiz="1G" # Set the max stack size 2GB > > vfs.zfs.prefetch_disable="1" > vfs.zfs.arc_max="1G" > > vm.kmem_size_max="1500M" > vm.kmem_size="1500M" > > kern.ipc.nmbclusters="32768" > I only have 1G of RAM. Any ideas what good values would be? Right now I have vm.kmem_size and kmem_size_max set to 512M as the wiki recommended and vfs.zfs.prefetch_disable="1" with everything else at their defaults and I can easily panic the kernel. I'm using i386 with a RELENG_7 kernel as of yesterday. Does this match what you're using? I wonder if that makes a difference. Thanks