Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2011 21:44:41 +0200
From:      Claus Guttesen <kometen@gmail.com>
To:        Andrey Zonov <andrey@zonov.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: ZFS with compression causes deadlock
Message-ID:  <BANLkTi=qpmhNOt7%2BmbP5WMfZRg806AT2yQ@mail.gmail.com>
In-Reply-To: <4D9B63D4.8010604@zonov.org>
References:  <4D9B63D4.8010604@zonov.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=qpmhNOt7%2BmbP5WMfZRg806AT2yQ>