From owner-freebsd-fs@freebsd.org Mon Sep 4 21:14:49 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 C7784E1EC7B for ; Mon, 4 Sep 2017 21:14:49 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 58E4A2D58 for ; Mon, 4 Sep 2017 21:14:49 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x243.google.com with SMTP id x189so1323595wmg.4 for ; Mon, 04 Sep 2017 14:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=7O6FyPuyiUpKOGw/DUUy3Y9JX5IEhV+4gYbYe0wGcRA=; b=FfGhM1ZofziEI/uhjluFzc7Hg7+MZaSGj4Z/Y0B6eE1cP+mX661bIW+JtNtt+HKm/L FZpsNbDkGoFmZXUZLKgbI5t/rdL493viljv0dv7IibNPLidLj/davy0fY7/rFFJ5IaAG s7GpCvsAh6ebSRm1k0nvdPWPdE4nXQE1bLLeP+g7lWf94XkpaI3x7fCdp+gHOttgDpSe Mu/lacNc0z+qyH9ogMQjJPcxCUu4JK2Z4IZmK9j/sKAuG84a9o1ZqGnOGveU7hrPerx2 SbuuTNp7FYjXj917x9BWbFpVmPfGWxYO96PtpO1JZbaEF3aV8S0vG58lDcy1FjI4O4st 8lSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=7O6FyPuyiUpKOGw/DUUy3Y9JX5IEhV+4gYbYe0wGcRA=; b=kzJv0BQ2DjfmqNb+cT5HbJX9P91Yaqv6+cShQDIXsP+/3yTYoyDn9t23KwA/BZNOue lcHqQqy+zYyZFMmJmY/rkMBrYZAOfPmLLSsJ+JkB0OyoAGcdMhDgmm9ee/O15pH6KfED y+c8iLJW8QXevkp4SvXPpQj7N1rs8PZbwxnzi4+Ak9KeeWXRjlouFh6HOTPPq9JZ7d/F LwebjKvPBWe6e54l7tmpJV74tWOi7dWAqXAIEJ4CmdFEoLXb4sGVXGqFiXl7UZez+Yiz n2ySa7DfgIp8qR0D+rQz2Q2CZwv4NoTjTOTVqvLZdnC/jucNYKCxsOMh4CJ6a6DzGYwC GjXQ== X-Gm-Message-State: AHPjjUgsZzyb1W3QYUx58p9WKqFFLQcVy6AEuG/qZIN2MNwiRiWj7vIn 3lhUjZKz+hwQzl3XFXQ= X-Google-Smtp-Source: ADKCNb6S25kDEFnez154ZrZ1FHERQYiDrffGPaXKiuoDWullGV0Oy7TvVqgiAgf9aeqSjAJpWPsW6A== X-Received: by 10.28.30.140 with SMTP id e134mr1088447wme.11.1504559687269; Mon, 04 Sep 2017 14:14:47 -0700 (PDT) Received: from 6.10.20.172.rev.sfr.net (15.87.136.77.rev.sfr.net. [77.136.87.15]) by smtp.gmail.com with ESMTPSA id o191sm1183995wmd.35.2017.09.04.14.14.46 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Sep 2017 14:14:46 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: umount() taking minutes for FUSE filesystems From: Ben RUBSON In-Reply-To: Date: Mon, 4 Sep 2017 23:14:47 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <2FAD66DE-031B-4B36-9E85-C7BC6B52B5E6@gmail.com> References: <87bmn44ruu.fsf@vostro.rath.org> <87o9qyrbs8.fsf@vostro.rath.org> To: Freebsd fs X-Mailer: Apple Mail (2.3124) 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: Mon, 04 Sep 2017 21:14:49 -0000 I managed to reproduce the issue. unmount takes exactly 60 seconds, as if a timeout was running. # procstat -kk $! COMM TDNAME KSTACK =20 printcap - mi_switch+0xd2 sleepq_catch_signals+0xb7 = sleepq_timedwait_sig+0x10 _sleep+0x26f fdisp_wait_answ+0x171 = fuse_vfsop_unmount+0xf5 dounmount+0x9b6 sys_unmount+0x41b = amd64_syscall+0x4ce Xfast_syscall+0xfb=20 # uname -sr FreeBSD 11.0-RELEASE-p9 Ben > On 29 Aug 2017, at 17:02, Conrad Meyer wrote: >=20 > Hey Nikolaus, >=20 > A first cut debug tactic might be running 'procstat -kk printcap process>' to see where it is spending time in the kernel. I > haven't had time to try and reproduce this myself, sorry. >=20 > Best, > Conrad >=20 > On Tue, Aug 29, 2017 at 1:57 AM, Nikolaus Rath = wrote: >> *ping* >>=20 >> Anyone able to help? >>=20 >> Thanks, >> -Nikolaus >>=20 >> On Aug 24 2017, Nikolaus Rath wrote: >>> Hello, >>>=20 >>> 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: >>>=20 >>> $ md build; cd build >>> $ meson .. >>> $ mesonconf -D buildtype=3Ddebug # optional >>> $ ninja >>>=20 >>> 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(). >>>=20 >>> Does anyone have an idea what might be causing this and how to fix = it? >>>=20 >>> 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.... >>>=20 >>> Best, >>> -Nikolaus >>>=20 >>> -- >>> GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F >>>=20 >>> =C2=BBTime flies like an arrow, fruit flies like a = Banana.=C2=AB >>> _______________________________________________ >>> freebsd-fs@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-fs >>> To unsubscribe, send any mail to = "freebsd-fs-unsubscribe@freebsd.org" >>=20 >>=20 >> -- >> GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F >>=20 >> =C2=BBTime flies like an arrow, fruit flies like a = Banana.=C2=AB >> _______________________________________________ >> freebsd-fs@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-fs >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"