From owner-freebsd-fs@freebsd.org Thu Aug 24 20:45:50 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6572BDE7C9E for ; Thu, 24 Aug 2017 20:45:50 +0000 (UTC) (envelope-from Nikolaus@rath.org) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 3AD63656F0 for ; Thu, 24 Aug 2017 20:45:49 +0000 (UTC) (envelope-from Nikolaus@rath.org) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 917FA20BC8 for ; Thu, 24 Aug 2017 16:45:48 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 24 Aug 2017 16:45:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=NPBUmCQJ98WgYUOg/x bw2Nz5iMQ98sgjAJs5ruYQn/I=; b=TiJgU724tDuq4NNkDvAl8h2VE6X5I0/++5 NUZP44i3yEHN2lm+90FAKNHadY9APzcKBGtdEy7vnt4nGQGB0pNDTzZRW7mDm/8X R8PLwMo4Hw0B8Okg/Jrova4saQfQYdhviuvlgm9wyAcS7sjCQR126WKdLGxCeI01 ulTaZdhZeIH6Mqviw9TZsONxG4DMFThnXBKlznHs611VABZgVv0uISO8hUz3ZLuQ zHHz/eKdi1wjRYENDOIwNBe1WS2BGhiI7kXK63w6l1r+k2m+MunM/emi9OYZ/4aB k1xOByB4EHcNEBtOR9MHx6xxnn+sKmu7TyGpvh/1UWjAI/+LEr6w== X-ME-Sender: X-Sasl-enc: hy2f7RxmTO3HR1ylZx5BNP4XbrnoYGJvdi9QEzy5kbf9 1503607548 Received: from ebox.rath.org (ebox.rath.org [45.79.69.51]) by mail.messagingengine.com (Postfix) with ESMTPA id 4DF877FA7D for ; Thu, 24 Aug 2017 16:45:48 -0400 (EDT) Received: from vostro.rath.org (vostro [192.168.12.4]) by ebox.rath.org (Postfix) with ESMTPS id 5384CD5 for ; Thu, 24 Aug 2017 20:45:47 +0000 (UTC) Received: by vostro.rath.org (Postfix, from userid 1000) id CA50E1029B1; Thu, 24 Aug 2017 22:45:45 +0200 (CEST) From: Nikolaus Rath To: freebsd-fs@freebsd.org Subject: umount() taking minutes for FUSE filesystems Mail-Copies-To: never Mail-Followup-To: freebsd-fs@freebsd.org Date: Thu, 24 Aug 2017 22:45:45 +0200 Message-ID: <87bmn44ruu.fsf@vostro.rath.org> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2017 20:45:50 -0000 Hello, It seems that in some situations, the unmount() system call takes minutes to unmount fuse filesystems. To reproduce, download a Git snapshot of libfuse 3 from https://github.com/libfuse/libfuse and do: $ md build; cd build $ meson .. $ mesonconf -D buildtype=3Ddebug # optional $ ninja Then execute examples/printcap. This will take very long, and all the time is spent in the unmount(mountpoint, MNT_FORCE) call in mount_bsd.c:fuse_kern_unmount(). Does anyone have an idea what might be causing this and how to fix it? My hunch is that it has something to do with libfuse no longer responding to requests at this point. But I'm at my wits end as to why and what to do about it.... Best, -Nikolaus --=20 GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB