Hi, 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. zfs list: NAME USED AVAIL REFER MOUNTPOINT place 373G 982G 83.0G /place place/gzip 290G 982G 290G /place/gzip root 723M 1.25G 722M legacy var 9.90M 974M 9.77M /var loader.conf: ahci_load="YES" zfs_load="YES" vfs.zfs.arc_max="2G" vfs.zfs.cache_flush_disable="1" # default: 0 vfs.zfs.prefetch_disable="1" # default: 0 vfs.zfs.txg.timeout="5" # default: 30 vfs.zfs.zio.use_uma="0" # default: 0 (earlier was 1) Can anyone help me to find a problem? -- Andrey Zonov
> 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="YES" > zfs_load="YES" > vfs.zfs.arc_max="2G" > vfs.zfs.cache_flush_disable="1" # default: 0 > vfs.zfs.prefetch_disable="1" ? ?# default: 0 > vfs.zfs.txg.timeout="5" ? ? ? ? # default: 30 > vfs.zfs.zio.use_uma="0" ? ? ? ? # 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. -- regards Claus When lenity and cruelty play for a kingdom, the gentler gamester is the soonest winner. Shakespeare twitter.com/kometen
on 05/04/2011 21:47 Andrey Zonov said the following:> Hi, > > 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.Sometime procstat -kk provides useful additional information. -- Andriy Gapon
2011/4/5 Andrey Zonov <andrey@zonov.org>:> loader.conf: > ahci_load="YES" > zfs_load="YES" > vfs.zfs.arc_max="2G" > vfs.zfs.cache_flush_disable="1" # default: 0Are you absolutely sure of what you're doing with the vfs.zfs.cache_flush_disable tunable ? Since you have SATA disks, I assume you don't have a controller with memory-backed write cache or NVRAM.> vfs.zfs.prefetch_disable="1" ? ?# default: 0 > vfs.zfs.txg.timeout="5" ? ? ? ? # default: 30 > vfs.zfs.zio.use_uma="0" ? ? ? ? # default: 0 (earlier was 1)-- Olivier Smedts? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? _ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ASCII ribbon campaign ( ) e-mail: olivier@gid0.org? ? ? ? - against HTML email & vCards? X www: http://www.gid0.org? ? - against proprietary attachments / \ ? "Il y a seulement 10 sortes de gens dans le monde : ? ceux qui comprennent le binaire, ? et ceux qui ne le comprennent pas."