From owner-freebsd-current@freebsd.org Tue May 22 14:40:57 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C4B0BEF87B0 for ; Tue, 22 May 2018 14:40:57 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DED778A22 for ; Tue, 22 May 2018 14:40:57 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1fL8TA-000Hky-0P; Tue, 22 May 2018 17:40:56 +0300 Date: Tue, 22 May 2018 17:40:55 +0300 From: Slawa Olhovchenkov To: Alexander Leidinger Cc: freebsd-current@freebsd.org Subject: Re: Deadlocks / hangs in ZFS Message-ID: <20180522144055.GD1954@zxy.spb.ru> References: <20180522101749.Horde.Wxz9gSxx1xArxkYMQqTL0iZ@webmail.leidinger.net> <20180522122924.GC1954@zxy.spb.ru> <20180522161632.Horde.ROSnBoZixBoE9ZBGp5VBQgZ@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180522161632.Horde.ROSnBoZixBoE9ZBGp5VBQgZ@webmail.leidinger.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 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: Tue, 22 May 2018 14:40:57 -0000 On Tue, May 22, 2018 at 04:16:32PM +0200, Alexander Leidinger wrote: > > Quoting Slawa Olhovchenkov (from Tue, 22 May 2018 > 15:29:24 +0300): > > > On Tue, May 22, 2018 at 08:17:00AM -0400, Steve Wills wrote: > > > >> I may be seeing similar issues. Have you tried leaving top -SHa running > >> and seeing what threads are using CPU when it hangs? I did and saw pid > >> 17 [zfskern{txg_thread_enter}] using lots of CPU but no disk activity > >> happening. Do you see similar? > > I will try and report back. > > > Can you try https://reviews.freebsd.org/D7538 and report? > > The patch tells it is against -STABLE, we're talking -current here. ZFS don't changes this. > It has been a while since I tried Karl's patch the last time, and I > stopped because it didn't apply to -current anymore at some point. > Will what is provided right now in the patch work on -current? I am mean yes, after s/vm_cnt.v_free_count/vm_free_count()/g I am don't know how to have two distinct patch (for stable and current) in one review. > As a data point, the system I talk about in the start of the thread > has 64 GB RAM and the ARC is not limited via sysctl. Currently vanlia ARC poorly limited via sysctl. After abd extra. May be interesting test ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/abd.c:boolean_t zfs_abd_scatter_enabled = B_FALSE; (no sysctl for change this exist)