From owner-freebsd-questions@FreeBSD.ORG Fri Aug 15 18:50:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E28A1065678 for ; Fri, 15 Aug 2008 18:50:54 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: from mail-gx0-f17.google.com (mail-gx0-f17.google.com [209.85.217.17]) by mx1.freebsd.org (Postfix) with ESMTP id D18C98FC2C for ; Fri, 15 Aug 2008 18:50:53 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: by gxk10 with SMTP id 10so3916519gxk.19 for ; Fri, 15 Aug 2008 11:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=9Y1LVxQnMTNecosq9BCyuU4qoNIj7D3JpAXwtmcdhQ4=; b=n6Yc1kAoTjNrLHig8MAhTc8n4IZ1evuegAh6qMikcJWCHRM2wfvmDVUp5l5cjeZLI3 cnECJ303+RtQYvIZgwX2jAhq4ZWOxzvvSRZhH+GarRMemlEo4KVCTSs1rWt1dJNXLs5j 20lhgams0l9n721nqeji0qBA57J6bInVErTL0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=JALmwM/+cgMyUc3XrbE5vbIvactvt49ZndawGeNzm4fo5blv92tCPgEUbozA2Pqq47 LplmVJn8a5V+VYdCx2sPjVWrq3iV8V98rl/BoSA2Mzv21uAoXrsBgWdYs00OyXalckm1 hYxvpjVN2VnbsaXieA7ek8CSXX2OtLO78DFGA= Received: by 10.151.144.15 with SMTP id w15mr4334467ybn.200.1218824692930; Fri, 15 Aug 2008 11:24:52 -0700 (PDT) Received: by 10.150.150.13 with HTTP; Fri, 15 Aug 2008 11:24:52 -0700 (PDT) Message-ID: <51d7a5160808151124w3d67c840i3b9f3091626971c7@mail.gmail.com> Date: Fri, 15 Aug 2008 11:24:52 -0700 From: perikillo To: "FreeBSD Mailing List" In-Reply-To: MIME-Version: 1.0 References: <6.0.0.22.2.20080814153739.02658a10@mail.computinginnovations.com> <20080815143724.86F288FC1D@mx1.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: RES: RES: Very Slow Samba X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 18:50:54 -0000 On Fri, Aug 15, 2008 at 11:07 AM, Michael Powell wrote: > Mauro Ribeiro - Class Consultoria e Assessoria wrote: > > > Hi Derek, > > > > I didn't have any Intel boards here for spare, but i Found a HP > > PCI-Express 1x Giga Ethernet here. > > > > It's a broadcom chipset, I did replace the card but still with the same > > problem. I also did a very deep research in google and found more people > > with the same problem and everyone of them without a solution. > > > > I guess that it's a issue between Samba and FreeBSD. I do say that 'cuz > on > > Linux+Samba (Debian Kernel+Samba.deb) this issue does not appear. > > > > Anyway, If you have another idea. > > > [snip] > > Yes - don't use the Realtek. They are OK for low end things like home ADSL, > but when stressed will generally only give you about half the throughput of > a real NIC. > > Don't know if this will help, but I believe the default buffer sizes to be > way too small. This, for example purposes, from my smb.conf: > > max xmit = 65535 > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=65535 SO_RCVBUF=65535 > > This was also in conjunction with some tuning in /etc/sysctl.conf. If the > above changes the behavior, you might also look at some tuning numbers like > below and see if adjusting them helps. YMMV. > > kern.ipc.maxsockbuf=2097152 > kern.ipc.nmbclusters=32768 > kern.ipc.somaxconn=4096 > kern.ipc.shmmax=67108864 > kern.ipc.shmall=32768 > > These should only be used as "food for thought" examples. What values may > be > of benefit to you will most likely be specific to your situation. > > Also I have/use: use sendfile = Yes > > I have never had Samba perform exactly the same as Windows Server 2003, it > has always been just a tad slower. One thing to figure out though, is if it > is disk limited, network limited, or some combination of both. IF the disk > subsystem is just way too slow it won't matter what you fiddle with in > network land. You may find what you really need is a faster disk subsystem. > > -Mike > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > I thing i would u is first disable the debug level, u are a developer??? syslog = 0 log level = 3 remove the debug option. See u.