Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slow transfers with SMB/Samba, very fast with NFS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
upgrdman
n00b
n00b


Joined: 10 Apr 2004
Posts: 40
Location: Southern California, USA

PostPosted: Sat Jun 18, 2005 10:42 am    Post subject: Slow transfers with SMB/Samba, very fast with NFS Reply with quote

I have setup a linux fileserver, and used the SMB protocol to share the data. Right now I'm just trying to work all the kinks out, so both the fileserver and the client run linux. Transfering files between the same two computers is very fast with NFS (~20-40MBps... gigabit ethernet, switched... no hubs) but with Samba its very slow at ~2MBps, and the latency is a bitch sometimes. For example, if I watch an AVI off of my fileserver, and try to fast forward, it takes tens of seconds for it to update, compared to virtually instantanious if the AVI is stored locally. Latency only seems to be a problem with movies and fast forwarding, so perhaps its an issue with mplayer and how it askes for the data.

I don't know how to start tackling this problem. My guess is to first rule out the client. First my /etc/fstab mounted the share with smbfs, but I also tried with cifs. No noticable change :( Kernel verison is 2.6.11-gentoo-r11, by the way.

So are there any other ways to mount or access (read-write) SMB shares, so I can try to rule out my client. Or any other ways to rule out my client. Checking the output of dmesg and /var/log/everything/current on both the client and server don't show anything unusual.

And any ideas on how I can rule out the server?

Thanks,
--Farrell F.
Back to top
View user's profile Send private message
KiTaSuMbA
Guru
Guru


Joined: 28 Jun 2002
Posts: 430
Location: Naples Italy

PostPosted: Sat Jun 18, 2005 12:59 pm    Post subject: Reply with quote

First, you could try a stream or a file copy using directly smb://<path> instead of mounting, though I doubt you would see any reasonable difference in performance.
You could also try to measure transfers with a windows smb server if you have any handy. However, in my personal experience, smb has always been a bad performer, with comparable (if not worse) results as with sftp or scp. If you are in an all-*nix, trusted LAN I would say dump the entire smb business and go for some mixture of NFS, CodaFS, ftp or whatever best fits your needs.
_________________
Need to flame people LIVE on IRC? Join #gentoo-otw on freenode!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum