From owner-freebsd-fs@freebsd.org Wed Jan 31 18:46:00 2018 Return-Path: Delivered-To: freebsd-fs@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 6F402EDBD5F for ; Wed, 31 Jan 2018 18:46:00 +0000 (UTC) (envelope-from mi+b@aldan.algebra.com) Received: from symbion.zaytman.com (symbion.zaytman.com [64.112.176.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "symbion", Issuer "Narawntapu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E0E172F75 for ; Wed, 31 Jan 2018 18:45:59 +0000 (UTC) (envelope-from mi+b@aldan.algebra.com) Received: from narawntapu.narawntapu (pool-108-53-87-28.nwrknj.fios.verizon.net [108.53.87.28]) by symbion.zaytman.com (8.15.2/8.15.2) with ESMTPS id w0VIVb0U063313 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 31 Jan 2018 13:31:37 -0500 (EST) (envelope-from mi+b@aldan.algebra.com) X-Authentication-Warning: symbion.zaytman.com: Host pool-108-53-87-28.nwrknj.fios.verizon.net [108.53.87.28] claimed to be narawntapu.narawntapu Received: from [127.0.0.1] (localhost [127.0.0.1]) by narawntapu.narawntapu (8.15.2/8.15.2) with ESMTP id w0VIVag0094994 for ; Wed, 31 Jan 2018 13:31:36 -0500 (EST) (envelope-from mi+b@aldan.algebra.com) X-Authentication-Warning: narawntapu.narawntapu: Host localhost [127.0.0.1] claimed to be [127.0.0.1] To: freebsd-fs@FreeBSD.org From: "Mikhail T." Subject: Need help with sysutils/fusefs-smbnetfs Message-ID: <8868a37f-90ad-a271-2295-bf67164fad19@aldan.algebra.com> Date: Wed, 31 Jan 2018 13:31:35 -0500 User-Agent: Firefox MIME-Version: 1.0 Content-Language: uk X-DCC-Etherboy-Metrics: narawntapu 1002; IP=ok Body=1 Fuz1=1 Fuz2=1 X-Spam-Status: No, score=-2.9 required=7.5 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on narawntapu.narawntapu Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2018 18:46:00 -0000 Hello! I've recently become a user, and then the maintainer of the fuse-smbnetfs port. With the mount_smbfs becoming increasingly obsolete, the port seems like the only solution for accessing Windows shares from a FreeBSD system. The problem is very poor performance. The software uses Samba's libsmbclient and thus should be capable of throughput comparable to that of smbclient. Unfortunately, the same files I can get here at about 20MB/second with smbclient, can only be accessed at about 500KB/s with smbnetfs. If I use the "direct_io" flag to mount, the read bandwidth jumps to 5-8MB/s, which represents an impressive gain, but is still far below smbclient's performance. The very fact, that the "direct_io" flag makes such a profound difference, made me think, the software's interface with our FUSE implementation may be at fault... The upstream developer primarily works with Linux -- and is not very responsive at any rate. Can any of the FreeBSD's FUSE-developers take a look at the port -- the codebase is not very large -- and suggest any optimizations? Feel free to contact me directly with any ideas and/or patches. Thank you. Yours, -mi