Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Mar 1999 14:29:31 -0500
From:      Vincent Fleming <vincef@penmax.com>
To:        "'Julian Elischer'" <julian@whistle.com>
Cc:        "'hackers@freebsd.org'" <hackers@freebsd.org>
Subject:   RE: samba performance
Message-ID:  <01BE6714.958E7260@rembrandt>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01BE6714.958E7260>