From owner-freebsd-hackers@freebsd.org Sat Nov 14 00:04:12 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 B578AA2E7AB for ; Sat, 14 Nov 2015 00:04:12 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (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 7EE401159 for ; Sat, 14 Nov 2015 00:04:12 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: by iofh3 with SMTP id h3so113416287iof.3 for ; Fri, 13 Nov 2015 16:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=longcount_org.20150623.gappssmtp.com; s=20150623; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+O24p77KbCCW93HEllg2uWCk2VgIlj+qjaiVZsSOCLQ=; b=NDAGYnZKWgiYJpIp4SVZfu27cU+ZL6OWMxEVaDNKRGwyVUV+kc+Unbx4WQU/cLBG7a oXwJ21Zg7t6veLiCw9upHcMeB5E13xtvDfUj8N26IzjQpAWLaeVp6IzGNlj+PABGlx4b zyvXYHTqAlLjM2LzPyi3qnQuoYDlQyawbAz+aco0XIXGfwmKlU+1Qau9+lPNvOy/uZP2 YzfZwp6BWs2CSbYt3knfQUoni8YZdtcXoWGPtl/37ALj/ro1XqnDKGr/VUit/6Udf+Hz XI4pKF6YwzYWBpqwe5gvn9aRN/tuEMnJEVfUBJr9hSnuI4HKPf9q9EM+6MKyG2j9AytJ tkag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=+O24p77KbCCW93HEllg2uWCk2VgIlj+qjaiVZsSOCLQ=; b=bLNmw3y5qOzW6r5IpOmQ40RL39xCzWJoawbFcDkU+glnPR9lVlI96IsJDFGbQ5ib++ U5RZcHOdFA3kFz4JQGzhNFREVEi6Zhjbe6J10c8i3BQ2gYSGJnoJt8GE9oVG5TZcMrLU Ljes+4VAG/3KLAR5lJmM4qCcl7JWNsGUIQcBhTsVL+7xWbngyeb6Y4oHCJ1heMO5rhpK QvBAYq0dZLszT5IGI0h6aVBIipwGzW7QE+V6s/vzMkSk0w7dtx2BL+xnUoPj6FE8Jgzs JrHVyCCdIpjxsmrkcq7K7HW+mfAHGAhFEnJ6SaFe7vdnYKxQ7GGHwJ2BVDIQ+HXhj9pJ prbA== X-Gm-Message-State: ALoCoQmFcIpqHH28DwyuUoQsRqc0BDgPnMX/jwgbTAfI6OlWLFOMgO0tif1rTRLD10CEDMM+0tMq X-Received: by 10.107.16.21 with SMTP id y21mr25788665ioi.194.1447459451427; Fri, 13 Nov 2015 16:04:11 -0800 (PST) Received: from [100.104.94.67] (80.sub-70-199-113.myvzw.com. [70.199.113.80]) by smtp.gmail.com with ESMTPSA id d7sm2241231igl.1.2015.11.13.16.04.07 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Nov 2015 16:04:10 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: FreeBSD smbfs horribly slow From: Mark Saad X-Mailer: iPhone Mail (13B143) In-Reply-To: Date: Fri, 13 Nov 2015 19:04:05 -0500 Cc: Allan Jude , freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20151113162548.61529137@Papi> <56463ACE.5020605@freebsd.org> To: Mario Lobo 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:04:12 -0000 Mario Can you share more about your setup . What filesystem is the samba share exported from . What mount options on the= filesystem level do you use ? What version of samba , was it from ports or a package ? On the samba level can you tell us about your config ? Have you tried any of= the tuning from=20 https://calomel.org/samba_optimize.html Did you change any sysctls ? What did you set ? Lastly what's the hardware like ; CPU, nic type , ram , etc=20 --- Mark Saad | nonesuch@longcount.org > On Nov 13, 2015, at 6:13 PM, Mario Lobo wrote: >=20 > 2015-11-13 16:32 GMT-03:00 Allan Jude : >=20 >>> On 2015-11-13 14:25, Mario Lobo wrote: >>> Hi; >>>=20 >>> It seems no one in @questions had any info/pointers/interest on this >>> so I'm trying @hackers for some light. >>>=20 >>> Thanks, >>>=20 >>>=20 >>> Begin forwarded message: >>>=20 >>> Date: Wed, 11 Nov 2015 17:53:11 -0300 >>> From: Mario Lobo >>> To: freebsd-questions >>> Subject: FreeBSD smbfs horribly slow >>>=20 >>> Googling on this subject, I found: >> http://lists.freebsd.org/pipermail/freebsd-questions/2005-September/09871= 7.html >>> https://lists.freebsd.org/pipermail/freebsd-net/2013-January/034239.html= >> https://lists.freebsd.org/pipermail/freebsd-questions/2014-October/261804= .html >>>=20 >>> I am on 10.2-STABLE and using FreeBSD as a client to any amb share >>> continues to be very slow. >>>=20 >>> 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 >>>=20 >>> It gets even worse if an application is doing operations with variable >>> size records inside a data file on the share. >>>=20 >>> Does anyone have any advice to improve this? >>>=20 >>> Thanks, >>>=20 >>>=20 >>>=20 >>> _______________________________________________ >>> 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" >>=20 >> What kind of operations are you doing? >>=20 >> 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) >>=20 >> Reading it back only got 50 megabytes/s, not sure why. >>=20 >> -- >> 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 > --=20 > Mario Lobo > http://www.mallavoodoo.com.br > FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winfoes FREE)= > _______________________________________________ > 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"=