From owner-freebsd-current@FreeBSD.ORG Wed Jun 20 19:28:54 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C170C16A41F for ; Wed, 20 Jun 2007 19:28:54 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id A403E13C448 for ; Wed, 20 Jun 2007 19:28:54 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l5KJSrOH035884; Wed, 20 Jun 2007 15:28:54 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-current@freebsd.org Date: Wed, 20 Jun 2007 15:28:31 -0400 User-Agent: KMail/1.9.6 References: <1182354823.6504.23.camel@shumai.marcuscom.com> <20070620160306.GA74674@rot26.obsecurity.org> <20070620111405.K71264@coco.macktronics.com> In-Reply-To: <20070620111405.K71264@coco.macktronics.com> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706201528.31349.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Dan Mack Subject: Re: ZFS and deadlock with {nullfs,NFS} 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: Wed, 20 Jun 2007 19:28:54 -0000 On Wednesday 20 June 2007 12:30:23 pm Dan Mack wrote: > On Wed, 20 Jun 2007, Kris Kennaway wrote: > > > > > 404 at the moment, but look for processes involving zil* in the > > backtrace. I had to disable zil (vfs.zfs.zil_disable=1 tunable) to > > prevent low-memory deadlocks on my machines. Since then it's been > > fine. > > > > You may also wish to use my patches (see the archives) to improve > > performance and low-memory behaviour. > > > > Kris > > Does someone have these recommended sysctls embodied in an example > /boot/loader.conf yet? Here is mine, does it look reasonable to keep ZFS > from running into the kmem_ memory panics? I have no idea if I found all > of your recommendations so it would be nice if they were summarized in one > place. > > | # /boot/loader.conf i386 / 1GB memory / SMP > | kern.maxvnodes="50000" Note that kern.maxvnodes has to be set in /etc/sysctl.conf to have any effect. JN