From owner-freebsd-stable@FreeBSD.ORG Fri Jun 3 21:18:51 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E55D1065675 for ; Fri, 3 Jun 2011 21:18:51 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from thalia-smout.broadpark.no (thalia-smout.broadpark.no [80.202.8.21]) by mx1.freebsd.org (Postfix) with ESMTP id 36A9B8FC16 for ; Fri, 3 Jun 2011 21:18:50 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ignis-smin.broadpark.no ([80.202.8.11]) by thalia-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0LM800JI1GJDB670@thalia-smout.broadpark.no> for freebsd-stable@freebsd.org; Fri, 03 Jun 2011 23:18:49 +0200 (CEST) Received: from kg-v2.kg4.no ([84.48.120.215]) by ignis-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with SMTP id <0LM800FPPGJDM800@ignis-smin.broadpark.no> for freebsd-stable@freebsd.org; Fri, 03 Jun 2011 23:18:49 +0200 (CEST) Date: Fri, 03 Jun 2011 23:18:49 +0200 From: Torfinn Ingolfsen To: freebsd-stable@freebsd.org Message-id: <20110603231849.02fe4317.torfinn.ingolfsen@broadpark.no> In-reply-to: <20110602230921.GA57825@icarus.home.lan> References: <20110602213116.425400b6.torfinn.ingolfsen@broadpark.no> <20110602195026.GA54023@icarus.home.lan> <20110603003940.d0b3821b.torfinn.ingolfsen@broadpark.no> <20110602230921.GA57825@icarus.home.lan> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: Fileserver panic - FreeBSD 8.1-stable and zfs 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: Fri, 03 Jun 2011 21:18:51 -0000 Update: On Thu, 02 Jun 2011 16:09:21 -0700 Jeremy Chadwick wrote: > Anyway, your system has 4GB of RAM installed in it, so on 8.1-STABLE I'd > recommend you try these settings: > > vm.kmem_size="3584M" > vm.kmem_size_max="3584M" > vfs.zfs.arc_max="2048M" > > Now, these are all chosen by me off the top of my head with absolutely > ZERO knowledge of what the memory usage on this system is like > **without** ZFS in the picture. I'm making a lot of assumptions, and > I'm assuming worst-case scenarios. For example, if this machine also > runs mysqld and its tuned to take up a lot of memory, I would advocate > dropping vfs.zfs.arc_max to 1536M or 1024M. Please don't drop it "too > much"; ZFS performs best when it has lots of ARC. > > Since you mentioned going to 8.2-STABLE, all you need to tune on that > version is one single tunable: > > vfs.zfs.arc_max The machine now runs 8.2-stable: root@kg-f2# uname -a FreeBSD kg-f2.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #5: Fri Jun 3 17:20:39 CEST 2011 root@kg-f2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 And I have added the following to /boot/loader.conf: vfs.zfs.arc_max="2048M" Hopefully, this will keep the machine rock solid (unitil something else happens, at least). Oh, and thanks for your advice - really helpful. -- Torfinn