From owner-freebsd-hackers@freebsd.org Sat Nov 14 00:18:27 2015 Return-Path: Delivered-To: freebsd-hackers@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 67380A2EBEA for ; Sat, 14 Nov 2015 00:18:27 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id 2A7A11A57 for ; Sat, 14 Nov 2015 00:18:26 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id D9E0CDEB4 for ; Sat, 14 Nov 2015 00:18:25 +0000 (UTC) Subject: Re: Fw: FreeBSD smbfs horribly slow To: freebsd-hackers@freebsd.org References: <20151113162548.61529137@Papi> <56463ACE.5020605@freebsd.org> From: Allan Jude Message-ID: <56467DE9.4060204@freebsd.org> Date: Fri, 13 Nov 2015 19:18:49 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HTBJGG7PcUgcfbUMJbkQRliHUiv0WTjNI" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Nov 2015 00:18:27 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HTBJGG7PcUgcfbUMJbkQRliHUiv0WTjNI Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015-11-13 18:13, Mario Lobo wrote: > 2015-11-13 16:32 GMT-03:00 Allan Jude : >=20 >> On 2015-11-13 14:25, Mario Lobo wrote: >>> Hi; >>> >>> It seems no one in @questions had any info/pointers/interest on this >>> so I'm trying @hackers for some light. >>> >>> Thanks, >>> >>> >>> Begin forwarded message: >>> >>> Date: Wed, 11 Nov 2015 17:53:11 -0300 >>> From: Mario Lobo >>> To: freebsd-questions >>> Subject: FreeBSD smbfs horribly slow >>> >>> Googling on this subject, I found: >>> >>> >> http://lists.freebsd.org/pipermail/freebsd-questions/2005-September/09= 8717.html >>> https://lists.freebsd.org/pipermail/freebsd-net/2013-January/034239.h= tml >>> >> https://lists.freebsd.org/pipermail/freebsd-questions/2014-October/261= 804.html >>> >>> I am on 10.2-STABLE and using FreeBSD as a client to any amb share >>> continues to be very slow. >>> >>> The share is mounted through mount_smbfs. I tried smbnetfs (fuse) and= >>> it is just a tiny bit better but doesn't compare to other clients >>> (linux or win) when writing/reading files >>> >>> It gets even worse if an application is doing operations with variabl= e >>> size records inside a data file on the share. >>> >>> Does anyone have any advice to improve this? >>> >>> Thanks, >>> >>> >>> >>> _______________________________________________ >>> freebsd-hackers@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers >>> To unsubscribe, send any mail to " >> freebsd-hackers-unsubscribe@freebsd.org" >>> >> >> What kind of operations are you doing? >> >> I just mounted a share from my windows desktop on my FreeBSD -CURRENT >> machine, and was able to write new files at 64 megabytes/s (roughly 1/= 2 >> the available gigabit/sec) >> >> Reading it back only got 50 megabytes/s, not sure why. >> >> -- >> Allan Jude >> >> > Which one is the server? Windows or FBSD? >=20 > I have no problems with either one being the server. The problem is > when FBSD is the client. >=20 > I wrote a daemon that executes operations on old DBF/NTX (clipper) > files (Yeah, I know ... but that's what they have for 20+ years ..). >=20 > Anyway, a site interacts with this daemon via tcp, with commands to > add/delete/update records/indexes, as well as finding keys on the > indexxes. >=20 > I prepared a test that has several of these routines together on a > 10.2-STABLE machine. >=20 > Enough to say that when executing the tests with the files stored > locally, the whole test takes 3-4 seconds to complete. >=20 > When doing the same test with the files on a share on the same wire (1G= > connection, no matter which OS runs the share), the test takes around > 3:50 minutes to complete! >=20 > I am preparing a Centos VM and compiling the deamon on it to check the > results. >=20 My tests were done with the 'server' being a Windows 7 desktop sharing a directory on an NTFS formatted SSD, and the 'client' being mount_smbfs on FreeBSD 11 r284588 (quite a few months old now) --=20 Allan Jude --HTBJGG7PcUgcfbUMJbkQRliHUiv0WTjNI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJWRn3sAAoJEBmVNT4SmAt+nxwQANbv5MPukoRFRgblZS/DcL+K RgYPY+/0IAvPtZHQAZOdvyzjm4rWw38a05ShzpGbCjMaYszkxtknLh5Twse1BAgJ juSpq9XXIH5bjAus0Y2/1lGahNmRW0V/QBtTfEnGFOZ9gIT87ymkUSMHMDEMyYdt GgVccUzgN+eATDmBU31wzsSU4668LIyj2ojX8L9IRrISdRP7i4gM8YFiBCMj3jS8 mwspx53wx3X6v6pcfoD1Ml/DQjuP1zrz9DuviUqX7SVNT7WEiEtMWViWuM84C7W6 aJwAh86wkSAG3Env1/GjDTy9rd/WNk8cjO4Dl/BJvYRss9GxllfHpOkQXe5F1szj /E5E6JbPnLgnuPto9hDbSOTQf4ZmAuZN8lnD+4AsZwPNRVfOcdoQfFM2TjQxDgwv NHwPBGEqBKJABrZtBrZnkNRxifz/lcx0Eq5tpZxoPbW18Dd+wyqwAeXrPFfVLUg+ U+0h2meyMbM+IR5U8u2Csf92+1QLkA4oGWYuSqDGgUoih9+1FUcAyvOf//mVxHIQ RIA54k68q/0JzVDCpFRjEmaalnYVmCIA768SJp45aEAF9HwlMfKXOzkOyr1PMPfy b4W056rdXnFo3i7PMXZy+fJFDnjexfk0Q8PI2dwtABZ62XNPvQ3gDzLyKhMpGpI3 BA3jMwCbCiWPSO2hDn4S =2jDN -----END PGP SIGNATURE----- --HTBJGG7PcUgcfbUMJbkQRliHUiv0WTjNI--