From owner-freebsd-hackers@freebsd.org Sat Nov 14 14:45:40 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 1097CA2F188 for ; Sat, 14 Nov 2015 14:45:40 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-qk0-x241.google.com (mail-qk0-x241.google.com [IPv6:2607:f8b0:400d:c09::241]) (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 BF8B71996 for ; Sat, 14 Nov 2015 14:45:39 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by qkbo184 with SMTP id o184so123908qkb.3 for ; Sat, 14 Nov 2015 06:45:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-type:content-transfer-encoding; bh=ljKXxUFyj9s4w+XsbDk22PLEIGk+cC8/xjzjjtoPFFE=; b=KlvJVdnpg0YveYirn3eFVx8hrgFgsRE6VZUucql/E96bo3jq//wRtEOur8T1+yqPak Cv1smdDtwHnqQAIkQzRjIq+7/afW1kSWiydf2OMOl3CPHNRusiQv741jCCRw60L0RzQh NQNzqkFGjqvALCNMXxZmBkgTlL4m6z7pLoQrU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-type :content-transfer-encoding; bh=ljKXxUFyj9s4w+XsbDk22PLEIGk+cC8/xjzjjtoPFFE=; b=R2TgnoOWq8kOzrLwUUkbH6rUqdwrbE/Zy/k9xtKSjflZ+Qb0WQ098mRNj9C7bxv1Fw iL2A47ZCV/30i1LKW0OD/ZI3a5WIF7ovvx7TIUachUfz6WH3hqgtFdTj6/s/uWzN6t5y fKtut5k0H2/gdXCamOTkOt9wzZH1VByl+oD+lId3xG2J+EMxHKNvJACt7EM8Jp82weUw R99yaz6IHbl2/0z0M5+TNccOZVZH9VPpizPg4qk5V8HARFhIGbbNvkMl2X6SV327oRnf vHlCpCiW6UfOoHd8pS+EqK6I6rAg3yVDEVGwAjdKtLjtsH5/CBq3XUPKH98iCCoOhDFo elwg== X-Gm-Message-State: ALoCoQnzs8gIa3yNGEYj4Hs+aUzRC+0svsn7Cy0okmt9zwanMGHwlVIkoviosOA+C466e4lCGnTH X-Received: by 10.55.49.197 with SMTP id x188mr28035608qkx.45.1447512338590; Sat, 14 Nov 2015 06:45:38 -0800 (PST) Received: from Papi ([179.181.62.208]) by smtp.gmail.com with ESMTPSA id u59sm1593283qge.0.2015.11.14.06.45.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Nov 2015 06:45:38 -0800 (PST) Date: Sat, 14 Nov 2015 11:50:22 -0300 From: Mario Lobo To: Mark Saad Cc: Allan Jude , freebsd-hackers@freebsd.org Subject: Re: FreeBSD smbfs horribly slow Message-ID: <20151114115022.781c0bc1@Papi> In-Reply-To: References: <20151113162548.61529137@Papi> <56463ACE.5020605@freebsd.org> Organization: BSD X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.25; amd64-portbld-freebsd10.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 14:45:40 -0000 On Fri, 13 Nov 2015 19:04:05 -0500 Mark Saad wrote: > Mario > Can you share more about your setup . > What filesystem is the samba share exported from ? The shares tested were both from a FBSD (10.2-STABLE) samba4 and Linux (Centos) samba 3.6. > What mount options > on the filesystem level do you use ? > smbfs rw,noatime,-N,-Iserverip 0 0 > What version of samba , was it from ports or a package ? > See above. > On the samba level can you tell us about your config ? Have you tried > any of the tuning from https://calomel.org/samba_optimize.html > Like I said, the problem is not with the server. > Did you change any sysctls ? What did you set ? > > Lastly what's the hardware like ; CPU, nic type , ram , etc > I tried the same FBSD client on different hardware. Made no difference. > --- > Mark Saad | nonesuch@longcount.org > > > On Nov 13, 2015, at 6:13 PM, Mario Lobo wrote: > > > > 2015-11-13 16:32 GMT-03:00 Allan Jude : > > > >>> 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/098717.html > >>> https://lists.freebsd.org/pipermail/freebsd-net/2013-January/034239.html > >> https://lists.freebsd.org/pipermail/freebsd-questions/2014-October/261804.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 > >>> variable 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? > > > > I have no problems with either one being the server. The problem is > > when FBSD is the client. > > > > 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 ..). > > > > 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. > > > > I prepared a test that has several of these routines together on a > > 10.2-STABLE machine. > > > > Enough to say that when executing the tests with the files stored > > locally, the whole test takes 3-4 seconds to complete. > > > > 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! > > > > I am preparing a Centos VM and compiling the deamon on it to check > > the results. > > > > -- > > 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" -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."