LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2004, 08:55 AM   #1
mfeoli
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 92

Rep: Reputation: 15
Samba, extremely slow performance, what to do?


Hi all,

I've seen many of you having trouble with samba been very slow, look at my results:

I have a Novel Netware 3.12 on a 486 DX100Mhz, 16 MB Ram, 4 GB HD, NIC 10 Mbs.

I am upgrading to samba with:

Samba 3, 1.5Ghz, 80 GB 7500 RPM Ultra Ata, 256 MB Ram, Linux Debian, NIC: 100Mbs

Results managing a 3.2MB File:

Novell Netware:

Read: 4 s
write:10 s


Samba

Read: 12 s
write: 37 s


I just couldn't believe it.

Has anyone found a solution for this?
 
Old 02-19-2004, 11:31 PM   #2
dbcr
LQ Newbie
 
Registered: Feb 2004
Location: castle rock, colorado
Distribution: suse, solaris, irix, hpux, redhat
Posts: 3

Rep: Reputation: 0
I use many different versions of samba and have for years on all kinds of hardware and different *NIX (solaris both sparc and intel, hpux, atleast a dozen different linux distros very old and new) and have not had any kind of performance problem as you suggest.

Have you looked at the debug logs?

What is your client and what is your server?

Are you using a HUB or SWITCH in your network?

Did you compile samba or install a package/rpm?

On your *NIX box have you looked at errors on the network interface with netstat to see if maybe there is a hardware problem at layer 1?

Also, did you hand-build your configs or use the webgui? I used to hand-build them and I almost always prefer CLI but samba's webgui really work swell. I just disable it in inetd.conf/xinetd when not needed.

Just some things to think about, I hope it helps.


Dave
 
Old 02-20-2004, 12:08 AM   #3
flashingcurser
Member
 
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 32
In my smb.conf I have an option:

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

If you: man smb.conf

It mensions to add this if you are having performance issues.

Also one thing I have noticed windows firewall programs cause huge problems with performance. The only one I could get to play nice with windows/samba/iptables is sygate and in the "Options" under the "Network Neighborhood" tab put a check in both boxes.

These have both caused me grief, your mileage may vary. They are both easy fixes though.




spell checkers cant correct bad usage

Last edited by flashingcurser; 02-20-2004 at 12:11 AM.
 
Old 02-20-2004, 08:37 AM   #4
mfeoli
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 92

Original Poster
Rep: Reputation: 15
Thanks flashingcurser, but I already have the socket options just like you

I am using a switch, I know the NIC is 100 Mbps, just not sure about what is the actual speed than the NIC is transferring at. How do I check that out?
I don't know how to check for errors on the NIC either.

Samba was compiled, and it is on a Debian 3 distro
 
Old 02-20-2004, 06:14 PM   #5
mfeoli
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 92

Original Poster
Rep: Reputation: 15
Thanks Dave

When you say you "didnīt have any kind of performance problem", how did you measure the througput or performance?

I would like to benchmark against another system (if possible)

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extremely poor cedega performance king111 Linux - Games 1 07-15-2005 09:48 PM
FC3 x86_64 extremely low performance with AMD64 Ru_e Linux - Laptop and Netbook 14 04-28-2005 08:00 PM
samba extremely slow after a disconnect Rarrum Linux - Software 5 03-08-2005 12:19 AM
Promise SX6000 - Extremely bad performance? StarLite Linux - Hardware 0 06-13-2004 03:19 PM
sdl games are slow extremely slow linksocc Linux - Software 7 01-17-2004 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration