Re: SAMBA performance and FreeBSD

2003-03-05 Thread Bigbrother

I forgot to say:

uname -a
FreeBSD matrix.vlsi.gr 4.7-RELEASE-p7 FreeBSD 4.7-RELEASE-p7 #1: Tue Mar
4 12:09:06 EET 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/matrix  i386
-
 ifconfig
wb0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 192.168.3.200 netmask 0xff00 broadcast 192.168.3.255
ether 00:80:48:b5:b9:6d
media: Ethernet autoselect (100baseTX full-duplex)
status: active
wb1: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
ether 00:80:48:b5:92:2f
media: Ethernet autoselect (100baseTX full-duplex)
status: active
---
dmesg
CPU: Pentium 4 (2394.02-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf27  Stepping = 7
 
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE
,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,b28,ACC,b31
real memory  = 536854528 (524272K bytes)
atapci0: SiS 5591 ATA33 controller port
0xb400-0xb40f,0xb800-0xb803,0xd000-0xd
007,0xd400-0xd403,0xd800-0xd807 irq 11 at device 2.5 on pci0
ad0: 78167MB Maxtor 6Y080L0 [158816/16/63] at ata0-master PIO4
ad1: 78167MB Maxtor 6Y080L0 [158816/16/63] at ata0-slave PIO4
ad2: 78167MB Maxtor 6Y080L0 [158816/16/63] at ata1-master PIO4
---
 more /boot/loader.conf
hw.ata.ata_dma=0
hw.ata.atapi_dma=0

[* I have disabled the DMA, because otherwise the boot process is halted
and trying to reset the hard disc, because of a strange timeout]
--


I used to experiment with two network cards simultaneous connected to
the same switch and using netgraph, but when I was using the local
100Mbits net, the load of the server went  6 [because in netgraph, one
card is working on promiscuous mode...]. So I am using only wb0, with an
average load of the machine of 0.12

Finally if I put the value 
net.inet.tcp.delayed_ack=0
Then comparing with the previous situation the speed is much worst. That
is
the value net.inet.tcp.delayed_ack=1 is much better (on my local
100Mbits net). This was measured for both small and large files (7MB,
and 700MB). All the tests are done using Windows XP. On my smb.conf I
only have TCP_NODELAY in socket options. 


P.s. I disabled the NFS server [because this is an nfs server as well
for other machines] and the samba read/write speed on my 100Mbits
network has increased to 3 Mbytes/sec (no load on the machine). This is
still lower than the 7Mbytes/sec on the local 100Mbits network that I
have using FTP.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: SAMBA performance and FreeBSD

2003-03-04 Thread David Kelly
On Tue, Mar 04, 2003 at 09:20:12PM +0200, Bigbrother wrote:
 
 I started to use samba with freebsd and I cant say that I am
 satisfied with the performance of it. Specifically on my local 100Mbits
 network the samba read speed on the server (athlon 1700) is  1Mbit/sec,
 while the write speed is much much worse.
 
 If I ftp to that machine I have read speed of minimum 7Mbits/sec.

For starters, how do you measure _bits_ per second? 7Mbits/sec sucks
for FTP over 100baseT networks. 7M bytes/sec is about right. Odds are
you have your bits and bytes mixed up.

At some point you have to consider your HD hardware. 1M bytes/sec of
random access isn't bad.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]
=
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


SAMBA performance and FreeBSD

2003-03-04 Thread Bigbrother

I started to use samba with freebsd and I cant say that I am
satisfied with the performance of it. Specifically on my local 100Mbits
network the samba read speed on the server (athlon 1700) is  1Mbit/sec,
while the write speed is much much worse.

If I ftp to that machine I have read speed of minimum 7Mbits/sec.

I am puzzled why the samba has so much worse performance.

Is anyone that using samba on his freebsd machine without any
performance loss? 

Or what typical read/write speeds do usually achieve on your samba
+freebsd machine?

Also if you have extra tips and tricks about samba and freebsd that can
boost the performance, they would be much appreciated. About tunning
parameters and so onThis machine will be the main server of a
laboratory of the university, and its not acceptable to have a low
speed.


Thanks very much in advance!!



P.s. I searched the net and I saw the people suggested changing the
net.inet.tcp.delayed_ack value, or measuring with tcpdump the MSS window
size and trying to put a formula on it to calculate the parameter
SO_RCVBUF
Of the samba and various other tricksDo they have a point?

P.s.2 I am also mounting with SUIDDIR the filesystems. Does this make a
performance loss?




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


RE: SAMBA performance and FreeBSD

2003-03-04 Thread Derrick Ryalls
 I started to use samba with freebsd and I cant say that I am 
 satisfied with the performance of it. Specifically on my 
 local 100Mbits network the samba read speed on the server 
 (athlon 1700) is  1Mbit/sec, while the write speed is much 
 much worse.

I have samba set up on multiple machines.  Their performance is about on
par with Windows boxes.

Perhaps you could post output of ifconfig




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: SAMBA performance and FreeBSD

2003-03-04 Thread Bill Moran
Bigbrother wrote:
I started to use samba with freebsd and I cant say that I am
satisfied with the performance of it. Specifically on my local 100Mbits
network the samba read speed on the server (athlon 1700) is  1Mbit/sec,
while the write speed is much much worse.
What kind of HDD?  What other processes are running?  The HDD is likely
the limiting factor.  If your HDD is slow, adding RAM can help, but it's
only going to help so much.
If I ftp to that machine I have read speed of minimum 7Mbits/sec.
As someone else pointed out, 7Mbytes/sec is reasonable, but 7Mbit/sec
is horrible.  I'm assuming your 1Mbit/sec number above is really
1Mbyte/sec.  Disabling delayed_ack should help.
I am puzzled why the samba has so much worse performance.
Than ftp?  Samba will always be slower than FTP.  This is because SMB
is massivly bloated compared to FTP.  FTP is a pretty streamlined
protocol with very little overhead.  SMB has a good bit of overhead,
although you shouldn't be seeing 7x differences.  That indicates
something else is wrong, but SMB speed will never be on par with FTP.
Is anyone that using samba on his freebsd machine without any
performance loss? 
Yes.  We have a Samba server right here and the performance is excellent
considering the ancient hardware it's running on.
Also if you have extra tips and tricks about samba and freebsd that can
boost the performance, they would be much appreciated. About tunning
parameters and so onThis machine will be the main server of a
laboratory of the university, and its not acceptable to have a low
speed.
You already seem to have found them below.  Have you changed delayed_ack
yet?  In my experiements, it makes a HUGE difference (we copied a large
file and I turned it on and off while the file was copying, you could
visibly see the difference in the speed at which the progress bar was
moving)
Additionally, don't use older versions of Windows.  We ran tests and
found out that Windows NT, 98, 95 all had approximately 1/2 the network
speed compared to Windows XP.  This is regardless of whether a Samba or
Windows server was used.
Thanks very much in advance!!

P.s. I searched the net and I saw the people suggested changing the
net.inet.tcp.delayed_ack value, or measuring with tcpdump the MSS window
size and trying to put a formula on it to calculate the parameter
SO_RCVBUF
Of the samba and various other tricksDo they have a point?
Yes.  Especially the net.inet.tcp.delayed_ack value will alter performance
considerably for Samba.  I've never gotten significant performance gains
by messing with the MSS windows, though.
P.s.2 I am also mounting with SUIDDIR the filesystems. Does this make a
performance loss?
Don't know

--
Bill Moran
Potential Technologies
http://www.potentialtech.com
To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: SAMBA performance and FreeBSD

2003-03-04 Thread Stephen Hilton
On Tue, 4 Mar 2003 21:20:12 +0200
Bigbrother [EMAIL PROTECTED] wrote:

 
 I started to use samba with freebsd and I cant say that I am
 satisfied with the performance of it. Specifically on my local 100Mbits
 network the samba read speed on the server (athlon 1700) is  1Mbit/sec,
 while the write speed is much much worse.
 
 If I ftp to that machine I have read speed of minimum 7Mbits/sec.
 
 I am puzzled why the samba has so much worse performance.
 
 Is anyone that using samba on his freebsd machine without any
 performance loss? 
 
 Or what typical read/write speeds do usually achieve on your samba
 +freebsd machine?

I have had better results on older hardware by using this in the 
smb.conf file:

socket options = TCP_NODELAY

HTH

Stephen Hilton
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message