From owner-freebsd-current@freebsd.org Sun Jun 3 19:15:17 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 036FAFEF2C4 for ; Sun, 3 Jun 2018 19:15:17 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:375::1:5]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 85C4B76737 for ; Sun, 3 Jun 2018 19:15:16 +0000 (UTC) (envelope-from Alexander@leidinger.net) Date: Sun, 03 Jun 2018 21:14:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1528053313; bh=8vg9Y9S+t3e4OMh3vowB2NdF8Ik/9UmswU6z6gVWmSA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=OQoYiWoKYst3hOZ1KtaNHg8uktm3/kLxMqzkQ1+FQMgGO7SYKb1ozJtuDUGWDdYGR R8QVtdooOiI71fG/MZ066NTfsdxxFDiD7aI/QklX5hKbahVNMRKXDTYNAJrPCl/w7E yhcKRMmJDqm8Bc11eqXrbcAQ67VymdJ5ywSHtj8HiAMUN+QMOV4Ycr+VvToYOIsC9c USLGbgJ0E0eVrJZiBVyPUIU52EFCF8uSHGPMp64up6r5tTBG9PRF0tFHofouGrXc+C KUE8PaRJYAIpco80HN9Kbk1vlgfZKOJrHjS75F1bHh7cO4Kv45IyMqMUCNU1ScASfY pIzmE4eXsWUrQ== Message-ID: <20180603211450.Horde.pI-Fom6S1tUcaHvTF4MUjin@webmail.leidinger.net> From: Alexander Leidinger To: Slawa Olhovchenkov Cc: Kirill Ponomarev , freebsd-current@freebsd.org Subject: Re: Deadlocks / hangs in ZFS References: <20180522101749.Horde.Wxz9gSxx1xArxkYMQqTL0iZ@webmail.leidinger.net> <20180522122924.GC1954@zxy.spb.ru> <20180522161632.Horde.ROSnBoZixBoE9ZBGp5VBQgZ@webmail.leidinger.net> <20180522144055.GD1954@zxy.spb.ru> <20180527194159.v54ox3vlthpuvx4q@jo> <20180527220612.GK1926@zxy.spb.ru> <20180528090201.Horde._E4JZcuEaZHfj_BNzWjci2O@webmail.leidinger.net> In-Reply-To: <20180528090201.Horde._E4JZcuEaZHfj_BNzWjci2O@webmail.leidinger.net> User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_Cx5T3iuW7Dhz7q26lZ8LyU1"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 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: Sun, 03 Jun 2018 19:15:17 -0000 This message is in MIME format and has been PGP signed. --=_Cx5T3iuW7Dhz7q26lZ8LyU1 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Alexander Leidinger (from Mon, 28=20=20 May=202018 09:02:01 +0200): > Quoting Slawa Olhovchenkov (from Mon, 28 May 2018=20=20 >=2001:06:12 +0300): > >> On Sun, May 27, 2018 at 09:41:59PM +0200, Kirill Ponomarev wrote: >> >>> On 05/22, Slawa Olhovchenkov wrote: >>>> > 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=20=20 >>>>=20current) in one review. >>> >>> I'm experiencing these issues sporadically as well, would you mind >>> to publish this patch for fresh current? >> >> Week ago I am adopt and publish patch to fresh current and stable, is >> adopt need again? > > I applied the patch in the review yesterday to rev 333966, it=20=20 >=20applied OK (with some fuzz). I will try to reproduce my issue with=20= =20 >=20the patch. The behavior changed (or the system was long enough in this state=20=20 without=20me noticing it). I have a panic now: panic: deadlkres: possible deadlock detected for 0xfffff803766db580,=20=20 blocked=20for 1803003 ticks I only have the textdump. Is nayone up to debug this? If yes, I switch=20= =20 to=20normal dumps, just tell me what I shall check for. db:0:kdb.enter.panic> run lockinfo db:1:lockinfo> show locks No such command; use "help" to list available commands db:1:lockinfo> show alllocks No such command; use "help" to list available commands db:1:lockinfo> show lockedvnods Locked vnodes db:0:kdb.enter.panic> show pcpu cpuid =3D 6 dynamic pcpu =3D 0xfffffe008f03e840 curthread =3D 0xfffff80370c82000: pid 0 tid 100218 "deadlkres" curpcb =3D 0xfffffe0116472cc0 fpcurthread =3D none idlethread =3D 0xfffff803700b9580: tid 100008 "idle: cpu6" curpmap =3D 0xffffffff80d28448 tssp =3D 0xffffffff80d96d90 commontssp =3D 0xffffffff80d96d90 rsp0 =3D 0xfffffe0116472cc0 gs32p =3D 0xffffffff80d9d9c8 ldt =3D 0xffffffff80d9da08 tss =3D 0xffffffff80d9d9f8 db:0:kdb.enter.panic> bt Tracing pid 0 tid 100218 td 0xfffff80370c82000 kdb_enter() at kdb_enter+0x3b/frame 0xfffffe0116472aa0 vpanic() at vpanic+0x1c0/frame 0xfffffe0116472b00 panic() at panic+0x43/frame 0xfffffe0116472b60 deadlkres() at deadlkres+0x3a6/frame 0xfffffe0116472bb0 fork_exit() at fork_exit+0x84/frame 0xfffffe0116472bf0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0116472bf0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_Cx5T3iuW7Dhz7q26lZ8LyU1 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJbFD4qAAoJEKrxQhqFIICE8BEP/AnXcLRV4mup++4RTI/jk41O qDwZkqI/VwD/Pa0I25nfpzW93tuBOHbhFxqILfrwMhx5dKCCu6hoM3BzDZ9kxoVS KxKXFuQFM96M46aKoUeVi1hwSEZqTiI3z9mlWpAlqOvwFKYDARj7A5mOY7I2KFyN kokrTJ6NpY5sW4NtlegODEkVkoERn3VGY42vqS9BMvPpbW09dIQtiChxE6hUUMXG YlJMuw/M/m1q0b2wuQ+RQuMUvyQYgpwP9qrls33/BHd9T8quaO2vvWO5U3iNSPIg PnO0wvrSiVhhWNyKuuxQfqyQZD908p1er3q65VXZYhnar6KEL87hDy2kbG9CPFkd oXCRG60NyG7WLEuVLH4BuZHLcU3i2cE1fHIyx5FCxQzxfkdA59j61tJk2iyNV7vL WJ3fcAAxSXTeLclpttnTw6yMCL09C3WqKCbWxmoyyQg3w5ZyVVlkDKHf2BVy8Zeq 3YE17snuZHrrUMRLW6ubnLiCfiXDQtX2DW4Jg5CwTSFvOPjhxEYpgXU1hlnaIGFd xN0kkNlMN9p9CdktslUDZZHD/Nh9OnvXW0BCln7y6DUYbWSb+j7rRkCblYtIP1Br wwYGXl/vaRuVjMHqcv+bR39ga+8b+QPm6E87aC959aqxL97HlyqukCLSbCKmJ7+D MdZd1HObFJK2ltl5JKVF =d67T -----END PGP SIGNATURE----- --=_Cx5T3iuW7Dhz7q26lZ8LyU1--