LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-21-2005, 03:22 AM   #1
jess1975
Member
 
Registered: Jul 2004
Location: Germany
Distribution: Suse 11.1
Posts: 87

Rep: Reputation: 15
Samba performance Linux - Linux


I have two problems using Samba from linux to linux.

1. Performance is slow, not even 5 MB/s. The funny thing is, when I copy another file simultaneously the performance goes up. Therefore I think somehow there is a max transfer rate per process. How can I change this?

2. Second problem is very peculiar. When I've made a directory on the server itself (not using Samba), I can't delete this directory using Samba. I have to log on to the server and delete the directory on the box itself. If it's deleted, I can't create a directory using Samba which has the same name???? using Samba as the same user.

With Windows XP I don't have both of these problems. Although I can't delete the directories created in XP with Samba, when using Samba in Linux.

Networking itself seems to be fine.

In Linux, I have the shares automounted in the fstab, using gid samba which I created myself containing root and the user.

Does anyone have a clou?
 
Old 03-21-2005, 08:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the main samba optimizations are the options
Code:
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_ SNDBUF=8192
to get a larger throughput. Personally i'd very strongly recommend you don't use samba between two unix platforms.. it's just a total waste of time, and you'd get much better results using the vastly simpler NFS.
 
Old 03-22-2005, 04:20 AM   #3
jess1975
Member
 
Registered: Jul 2004
Location: Germany
Distribution: Suse 11.1
Posts: 87

Original Poster
Rep: Reputation: 15
Have you got an how-to on NFS shares. I don'T want anonymous connections, only preferred users should be able to connect.

I've set up the nfs shares as default in suse 9.2. It's lightning fast. But everyone can access it.
 
Old 03-22-2005, 06:16 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just check "man exports" for details. you can restrict easily by ip range, domain, users, groups...
 
  


Reply



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
tweeking linux for performance kamowa Linux - Hardware 3 10-01-2005 06:14 PM
Random I/O performance on Linux gena72 Linux - Hardware 1 07-13-2005 04:32 AM
best performance NIC for Linux m4dj4ck Linux - Networking 0 11-03-2004 06:05 AM
Performance of linux kernels Pavan mahoorker Linux - Software 1 09-20-2004 06:03 AM
How to REALLY improve linux performance? tradingbr Linux - General 7 05-01-2004 11:38 AM

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

All times are GMT -5. The time now is 06:05 PM.

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
Open Source Consulting | Domain Registration