From owner-freebsd-fs@freebsd.org Mon Aug 8 17:48:25 2016 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 71ABCBB30FA for ; Mon, 8 Aug 2016 17:48:25 +0000 (UTC) (envelope-from mqudsi@neosmart.net) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (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 3F1E019DD for ; Mon, 8 Aug 2016 17:48:25 +0000 (UTC) (envelope-from mqudsi@neosmart.net) Received: by mail-io0-x231.google.com with SMTP id q83so365207037iod.1 for ; Mon, 08 Aug 2016 10:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neosmart.net; s=google; h=from:to:subject:date:organization:message-id:mime-version :content-transfer-encoding:thread-index:content-language; bh=7xfYROT0MXWc1gcVZpjKE02LNjeb9wRsjE+bL2Q1JgU=; b=K0ksD5M4YsBJKvdmiAOmXtNBdFV85FtkaKA6pJ5f+DE6JDEDlRGjQodhqHYi1lBPAc QZGEhgjINGBtJ6+Wd0Sg2QWeJxqD5igHflNYwClLFJffuP57JUJ+2w42GVnyMGqUcHtc y923Z2JqkLLxlPOft/DkvjGto2s/bXtRwPehA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:organization:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=7xfYROT0MXWc1gcVZpjKE02LNjeb9wRsjE+bL2Q1JgU=; b=UCby0x+zVlduJTEdviqpUKGbcZQRru9BDucP31grk2/n9T389s/JuX7d7l2DtboNYA 5vdlmi7q4rdGLX2jXc1opdGdVDX8999yINtH3K0lQcFzOBUIwrobiPeiaAaBJHaXmuon BXB8cdBt4gRB40pz5MX5WcvT3Y75LduJhoI7oCwIqAnPmoTKbvP0lsy8VvmzEc4XWwzx aiL0W2M6lYrS1MoUz4qZbDVtV1WETELqGYaiqqGRZXCd/xjmKv+Ni15vnvg9FzYKhOfK sAh83Ed6G+Wjw9qNJXBkjjtW0m/DUHOjC7QLCARSK1e2g1iQ3RPL0A9wDy0eLbMssFyf 8ucg== X-Gm-Message-State: AEkoouvPFAhV3GfTfyLcUaAUpUcaEK1fMda9qs+jcc6gnOBKE4O2pzB5DTFQrKE+BO58ng== X-Received: by 10.107.173.234 with SMTP id m103mr103631307ioo.127.1470678504083; Mon, 08 Aug 2016 10:48:24 -0700 (PDT) Received: from Blitzkrieg ([2001:559:8050:0:64f5:4565:302f:f9d]) by smtp.gmail.com with ESMTPSA id x13sm12074683ite.1.2016.08.08.10.48.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Aug 2016 10:48:23 -0700 (PDT) From: "Mahmoud Al-Qudsi" To: Subject: PR-211674, fuse_vnode and fuse_msgbuf leak in fusefs-ntfs Date: Mon, 8 Aug 2016 12:48:15 -0500 Organization: NeoSmart Technologies Message-ID: <012c01d1f19d$0aae9c70$200bd550$@neosmart.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdHxnNoX8eB2gk++Rnigc2FfbUZx+w== Content-Language: en-us X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2016 17:48:25 -0000 Hello, Please forgive me if it is not correct form to discuss fusefs-ntfs on = the FreeBSD fs mailing list. SUMMARY Running on FreeBSD 10.3-RELEASE-p6/i386 with fuse compiled into kernel = and with fusefs-ntfs 2016.2.22 installed, there is a fuse_vnode leak = (though it seems it may be more of a complete failure to reclaim vnodes) = resulting in quick resource exhaustion. REPRODUCTION This is easily reproduced with the following: ntfs-3g /dev/xxx /mnt/yyyy cd /mnt/yyyy find . -exec touch {} \; In another virtual terminal: vmstat | head -n1; vmstat -m | sed 1d | sort -hk 3,3 ACTUAL RESULTS fuse_vnode will continuously balloon, and will not be reclaimed until = the filesystem is unmounted. (likewise, fuse_msgbuff also balloons but unlike fuse_vnode, it is never = reclaimed. Separate PR?) EXPECTED RESULTS fuse_vnode entries should be reclaimed ADDITIONAL INFORMATION Here's a snapshot of the fuse-related vmstat entries after this process: fuse_vnode 36020 9005K - 502349 256 fuse_msgbuf 58141 14895K - 311095 256,512,1024,2048,4096,8192 Thank you, Mahmoud Al-Qudsi NeoSmart Technologies