From owner-freebsd-current@FreeBSD.ORG Sun Nov 4 14:17:29 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 2165416A481 for ; Sun, 4 Nov 2007 14:17:29 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp806.mail.ird.yahoo.com (smtp806.mail.ird.yahoo.com [217.146.188.66]) by mx1.freebsd.org (Postfix) with SMTP id 7C23513C4AA for ; Sun, 4 Nov 2007 14:17:28 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 52729 invoked from network); 4 Nov 2007 14:17:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=gfw8yI68tac0eRGMBLbETn03aWi2xAbUB44HicTQsiricxQ2oMZJVz/ky9DudhrZyyYoX2r2vL5yF62zi7ghWBFFBdql+U4joiayNJbBy2xRSVmzaT2AFHEqIpGLKS7bMGaocXSxKy+6WcnDZfA1xBP+yuweJ+HTre0NW9y41g4= ; Received: from unknown (HELO w2fzz0vc03.aah-go-on.com) (thomas.sparrevohn@btinternet.com@86.133.212.97 with login) by smtp806.mail.ird.yahoo.com with SMTP; 4 Nov 2007 14:17:09 -0000 X-YMail-OSG: XsZQ2hsVM1lUrY1Msc1ZWP3HTrDbkPmzClSL3QxYoEksWIpbSeR6jygJ0ju8eUMXHdlQNAhkLbgm8Cao878ALh.rl5.v From: Thomas Sparrevohn To: freebsd-current@freebsd.org Date: Sun, 4 Nov 2007 14:17:08 +0000 User-Agent: KMail/1.9.7 References: <200711021208.25913.Thomas.Sparrevohn@btinternet.com> <20071103164231.GB23714@outcold.yadt.co.uk> <200711040948.25732.peter.schuller@infidyne.com> In-Reply-To: <200711040948.25732.peter.schuller@infidyne.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711041417.08646.Thomas.Sparrevohn@btinternet.com> Cc: Peter Schuller Subject: Re: ZFS Hangs 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: Sun, 04 Nov 2007 14:17:29 -0000 On Sunday 04 November 2007 08:48:17 Peter Schuller wrote: > > For example, pkg_delete seems to be _extremely_ slow and ^T reports that > > it is stuck waiting on zfs:(&zio->io_cv) for an unreasonable (IMO) amount > > of time. > > FWIW, I have seen pkg_install (and possibly other pkg_* tools) being extremely > slow seemingly as a result of the active set of files it touches exceededing > the amount cached. In particular I had this problem after converting to ZFS, > but prior to switching to amd64 and more RAM. > > It would sit and churn on disk I/O forever, entirely seek bound. Tracing the > processes showed it traversing the package database over and over (presumably > recursively following dependencies or some such). So the same files were > touched any number of times. As a result, with too little cached, runtime > exploded (it took hours and hours upgrading my desktop using *binary* > pre-built packages because the larger packages with a lot of dependencies > would take forever to install and delete). > It could be the machine has 4GB memory and is running amd64 - However I can reproduce it with vm.kmem_size_max=2147483648 and with the default - It is not only with pkg_install but seems randomly. but you are correct pkg_create seems to use significant amount of time - but due to the issues I am seeing with ZFS - I have not looked into why pkg_create takes so long even for very simple packages