From owner-freebsd-hackers@freebsd.org Fri Nov 13 23:13:33 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 1F1E5A2E8E7 for ; Fri, 13 Nov 2015 23:13:33 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) (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 E34371F4E for ; Fri, 13 Nov 2015 23:13:32 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by ioef137 with SMTP id f137so10523393ioe.0 for ; Fri, 13 Nov 2015 15:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5t0murpuh3GpdIzy8R+2hYn5cWI9MSv9a7aZ5uw/KXQ=; b=RbFg0SQOXaXjkqJ9Pu8SUso7ipiCwU0BY/TgMp9TkXKiw4p+jC2P7A5pnAnjk8kca2 ZQsOPWi/zjHdcnwN50cWgT2rNKkQtwEOWb/1jTLYvAMWyfoGTjqapMhIJdnqWUXKKfy8 lxQyTvCC2+0wlpCQ7ZiwteeksgdKbvR7u8vWw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=5t0murpuh3GpdIzy8R+2hYn5cWI9MSv9a7aZ5uw/KXQ=; b=cDN6UvH2K8qSpdrGSAVQfvLove4X4Uoq/iDHJAIAEjxF3IoC3BpzZ0JBJnZNTNbJjg /UM0Eh9cZ4U7krOgpg/ByZxz/aZPo2cwa2IacqJnt3hKpB9FVCMfrG4f2YNiXTkiek4+ fxJRy/1ThnZ25LzhR0MbUquLMvIRcMd8f5qvB0fHxnFgZdbW6vA7jZt9VIliiZLfbnFz 6A4iY/jRY4VPP1v0oybwEN4WOnUWLJuZijEuwbjAIGPhdTyKQtmte0wVX2u12eTuoQci b7C+e9JL8W84YFrzcuRGkEQhTopPNf2YIu9SHa4R5cy17wy4jKNbvULdqnsAJ7jonNB1 BsHg== X-Gm-Message-State: ALoCoQnEN7YTEnU2iBKiSmrTJVEi0qqXxbSbBHP8Hs+u/7aWog1UnwcD3w0NkehS8Wp0R/bmPrwM MIME-Version: 1.0 X-Received: by 10.107.164.227 with SMTP id d96mr22184534ioj.73.1447456412101; Fri, 13 Nov 2015 15:13:32 -0800 (PST) Received: by 10.79.3.131 with HTTP; Fri, 13 Nov 2015 15:13:32 -0800 (PST) In-Reply-To: <56463ACE.5020605@freebsd.org> References: <20151113162548.61529137@Papi> <56463ACE.5020605@freebsd.org> Date: Fri, 13 Nov 2015 20:13:32 -0300 Message-ID: Subject: Re: Fw: FreeBSD smbfs horribly slow From: Mario Lobo To: Allan Jude Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Fri, 13 Nov 2015 23:13:33 -0000 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)