From owner-freebsd-stable@FreeBSD.ORG Tue Apr 5 19:44:42 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 8368E1065670 for ; Tue, 5 Apr 2011 19:44:42 +0000 (UTC) (envelope-from kometen@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5B3748FC20 for ; Tue, 5 Apr 2011 19:44:42 +0000 (UTC) Received: by pwj8 with SMTP id 8so373221pwj.13 for ; Tue, 05 Apr 2011 12:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bnMdXXMIetx1rU+ta/wbD8LLAY7ibKxUTs+NOErA4YY=; b=JMAVmeaQ/1KCSoTN5YbbVmpnr6QAMAcfSWuH578M/JzHnZpQXmlExcUs01j958h8Va XUadThXm8mAhlE83TUyqxdsViW0J1B3HyyQE4+4gRwUpFn69qmE2bZ9U4b+4k4+ikEX8 GnT78LHasXJlVe0tzGtcytU0n77I8GmSKgTmk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=LxITjOAb+/a18qUTfdc5pc5IB4gneli/SrS4MvMK0oCCFtxU9tpEgt2n2tZU+4Z19U or1IFQkyidy/PDAPLUlSwPEYMSQtKS7CwpMvIFbAENaPikRzR1stDtxOwMWo/VNEzO5s pcmLOnmBlYx7Ufmj/vZSiGCvzpoc0MWrTaFug= MIME-Version: 1.0 Received: by 10.142.131.1 with SMTP id e1mr58135wfd.292.1302032681708; Tue, 05 Apr 2011 12:44:41 -0700 (PDT) Received: by 10.142.89.16 with HTTP; Tue, 5 Apr 2011 12:44:41 -0700 (PDT) In-Reply-To: <4D9B63D4.8010604@zonov.org> References: <4D9B63D4.8010604@zonov.org> Date: Tue, 5 Apr 2011 21:44:41 +0200 Message-ID: From: Claus Guttesen To: Andrey Zonov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: ZFS with compression causes deadlock 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: Tue, 05 Apr 2011 19:44:42 -0000 > Today I had deadlock on several machines. Almost all processes stucked in > [tx->tx_cpu[c].tc_lock]. Machines were helped only `reboot -n'. > I've created new gzip-ed filesystem a few days ago. I didn't have any > problems with ZFS before. > > System was built from svn://svn.freebsd.org/base/stable/8@215508. > Machines have 24Gb RAM, 4 SATA 500Gb disks in raidz. > > loader.conf: > ahci_load=3D"YES" > zfs_load=3D"YES" > vfs.zfs.arc_max=3D"2G" > vfs.zfs.cache_flush_disable=3D"1" # default: 0 > vfs.zfs.prefetch_disable=3D"1" =A0 =A0# default: 0 > vfs.zfs.txg.timeout=3D"5" =A0 =A0 =A0 =A0 # default: 30 > vfs.zfs.zio.use_uma=3D"0" =A0 =A0 =A0 =A0 # default: 0 (earlier was 1) Have you tried to remove vfs.zfs.* in rc.conf? Newer versions of zfs may not need tuning except in specific cases now. I've had problems using compression in (much) earlier zfs-versions some years ago and avoided this feature. A few days ago I've setup FreeBSD current with zfs. ver. 28 and enabled compression and have performed a zfs receive with approx. 660 GB of data that boils down to 350 GB without problems. --=20 regards Claus When lenity and cruelty play for a kingdom, the gentler gamester is the soonest winner. Shakespeare twitter.com/kometen