From owner-freebsd-current@FreeBSD.ORG Thu Jul 12 05:36:55 2007 Return-Path: X-Original-To: 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 E69CF16A400 for ; Thu, 12 Jul 2007 05:36:55 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 6F95C13C458 for ; Thu, 12 Jul 2007 05:36:55 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so296271uge for ; Wed, 11 Jul 2007 22:36:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bE3KK1aGT6Et5DWYmLqTxNwfeHOcPiD3JBQisjl4gfB8I7qSopxXCWi1zRv921xy/j1WSKrxFGqU9lpWkqhYqic7CKZrVRNcpu4jomqLR86emVFUgtylLJkKfLRdGCa/8wvz35lRf/UTObLgm4cBAeOtSMj4G3YEE8FnpQPd0v0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Df1u+rfpje+bwicwqG6ITUwgZPyhBCqjphloGGTB1XDpIi5GEWPiJM+66HVzeMMSJxFf3oXUXVUne5zWRBT6rrSoc6f+BH59X4n3nvNOvRBBZQYetb3gfY7KJ0ljZnCeAcr/Rc5RpQC04RQXlDBnmHdfYIaf7brDy6HNn6HUMnA= Received: by 10.78.137.7 with SMTP id k7mr57790hud.1184218613908; Wed, 11 Jul 2007 22:36:53 -0700 (PDT) Received: by 10.78.162.18 with HTTP; Wed, 11 Jul 2007 22:36:53 -0700 (PDT) Message-ID: Date: Wed, 11 Jul 2007 22:36:53 -0700 From: "Kip Macy" To: "Simon Dircks" In-Reply-To: <15d429c0707111724w76d47529v4c5fad6ac7892875@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200707071426.18202.dfr@rabson.org> <20070709000918.GD1208@garage.freebsd.pl> <46922D75.4010006@gddsn.org.cn> <15d429c0707111724w76d47529v4c5fad6ac7892875@mail.gmail.com> Cc: Pawel Jakub Dawidek , current@freebsd.org Subject: Re: ZFS leaking vnodes (sort of) 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: Thu, 12 Jul 2007 05:36:56 -0000 That looks more like bad disk than a file system bug. On 7/11/07, Simon Dircks wrote: > On 7/9/07, Huang wen hui wrote: > > > > Pawel Jakub Dawidek 写道: > > > On Sat, Jul 07, 2007 at 02:26:17PM +0100, Doug Rabson wrote: > > > > > >> I've been testing ZFS recently and I noticed some performance issues > > >> while doing large-scale port builds on a ZFS mounted /usr/ports tree. > > >> Eventually I realised that virtually nothing ever ended up on the vnode > > >> free list. This meant that when the system reached its maximum vnode > > >> limit, it had to resort to reclaiming vnodes from the various > > >> filesystem's active vnode lists (via vlrureclaim). Since those lists > > >> are not sorted in LRU order, this led to pessimal cache performance > > >> after the system got into that state. > > >> > > >> I looked a bit closer at the ZFS code and poked around with DDB and I > > >> think the problem was caused by a couple of extraneous calls to vhold > > >> when creating a new ZFS vnode. On FreeBSD, getnewvnode returns a vnode > > >> which is already held (not on the free list) so there is no need to > > >> call vhold again. > > >> > > > > > > Whoa! Nice catch... The patch works here - I did some pretty heavy > > > tests, so please commit it ASAP. > > > > > > I also wonder if this can help with some of those 'kmem_map too small' > > > panics. I was observing that ARC cannot reclaim memory and this may be > > > because all vnodes and thus associated data are beeing held. > > > > > > To ZFS users having problems with performance and/or stability of ZFS: > > > Can you test the patch and see if it helps? > > > > > my T60p notebook, -CURRENT amd64: > > buildworld time before patch: 58xx second. > > buildworld time after path: 28xx second. > > > > Thanks! > > > > With this patch i am still able to reproduce my ZFS crash. > > controllera# uname -a > FreeBSD controllera.storage.ksdhost.com 7.0-CURRENT FreeBSD 7.0-CURRENT #0: > Thu Jul 12 02:28:52 UTC 2007 > graff@controllera.storage.ksdhost.com:/usr/obj/usr/src/sys/CONTROLLERA > amd64 > > > panic: ZFS: bad checksum (read on off 0: zio 0xffffff001d729810 > [LO SP > A space map] 1000L/800P DVA[0]=<0:1600421800:800> DVA[1]=<0:2c000f7000:800> > DVA[ > 2]=<0:4200013800:800> fletcher4 lzjb LE contiguous birth=566 fill=1 > chsum=5d3276 > 7b98:635ff7022f8b:4251 > cpuid = 0 > KDB: enter: panic > [thread pid 802 tid 100066 ] > stopped at kdb_enter+0x31: leave > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >