From owner-freebsd-hackers Fri Mar 5 11:27:15 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from penmax.com (cc595093-a.mdltwn1.nj.home.com [24.3.192.38]) by hub.freebsd.org (Postfix) with ESMTP id A0721151F7 for ; Fri, 5 Mar 1999 11:27:13 -0800 (PST) (envelope-from vincef@penmax.com) Received: from rembrandt (rembrandt.penmax.com [10.1.3.2]) by penmax.com (8.8.8/8.8.8) with SMTP id OAA01610; Fri, 5 Mar 1999 14:30:25 -0500 (EST) (envelope-from vincef@penmax.com) Received: by rembrandt with Microsoft Mail id <01BE6714.958E7260@rembrandt>; Fri, 5 Mar 1999 14:29:31 -0500 Message-ID: <01BE6714.958E7260@rembrandt> From: Vincent Fleming To: "'Julian Elischer'" Cc: "'hackers@freebsd.org'" Subject: RE: samba performance Date: Fri, 5 Mar 1999 14:29:31 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sorry, didn' know there was a samba mailing list. I found the problem, though. It seems that the server is fsync()'ing all the time. I set -DNO_FSYNC (disables the fsync code), and the write performance went up to about 2MB/s. Much better. I guess I'll be looking into why the default of not sync'ing all the time isn't working... the code's full of #defines and is going to take some time to go through. Meanwhile, the FreeBSD's on a UPS, so I don't think I should worry about it much. I think I'll just leave it as is until I find the time to look further into it. Thanks everyone, Vince you really should ask the SAMBA mailing list as well. On Fri, 5 Mar 1999, Vincent Fleming wrote: > > Very strange... but mounting the filesystems asynch has no effect. > > I'll have to look through the code to see if smbd is creating the files > with O_SYNC or something. I would think mounting the filesystems > async would make a difference. Hmm... I thought we had it there! > > Vince > > > > You could mount your filesystems with the async flag. Search the mailing > list archive (of hackers) for the last two months for caveats and more > information. > > > Andy. > > On Fri, 5 Mar 1999, Vincent Fleming wrote: > > > Hi; > > > > I've bee playing around with smbd, trying to adjust the performance. > > > > I seem to be getting around 2200k/s (2MB/s) on reads, but only 315k/s > > on writes! > > > > Now, that's a BIG difference. > > > > I've been going over the docs, and have tried all the suggestions in there > > for increasing performance. Does anyone out there have any more > > suggestions on how I can get the write performance to more closely resemble > > the read performance? > > > > I have the sources, and have enabled MMAP use, among other things. So, > > if any suggestions involve hacking the server, don't hesitate mentioning them! > > > > My server: (yeah, I know, I should use a better machine! It's pretty fast, though) > > AMD K6 233 > > 64 MB RAM > > Buslogic PCI Fast/Wide SCSI card > > Seagate Barracuda ST12550N Fast/Narrow 2GB drive > > 3com 905B PCI 100 base T ethernet > > FreeBSD 2.2.7 > > > > My Client: > > PII 300 > > 320 MB RAM > > Adaptec 2940UW SCSI > > Seagate Barracuda ST32171W Ultra Wide 2GB drive > > 3 com 905B PCI 100 base T ethernet > > Win98 > > > > They are directly connected with a cross-over 100 baseT cable, so they're > > running full-duplex. > > > > Thanks for any suggestions! > > > > Vince Fleming > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message