Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Samba Sharing
Chris-RHS
post Jul 25 2005, 10:24 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 31-May 05
Member No.: 5,069



I have setup sharing from my linux machine to my window machine using samba. I can view the directories, and everything seems to be working just fine, except for the speeds. It is very slow when just browsing the directories, and when transferring files to and fro. Is there something that can be done to speed things up?

thx
Go to the top of the page
 
+Quote Post
Corey
post Jul 25 2005, 09:06 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3



When you talk about the speed issues, how much time are we talking here? Seconds? Minutes?

I have a linux server that shares directories with samba, and it's pretty responsive. If it's really slow, you may want to check log files on the servers for error messages or warnings.


--------------------
Corey Quilliam
(former) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

--
Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
 
+Quote Post
Robert83
post Jul 26 2005, 08:46 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

also if you are using Windows XP, I highly reccomend going into the administrative tools, and turning of the following service, Webclient.

after I turned it off...browsing the network neighbourhood in a samba domain ('n workgroup) was much more faster...as well as opening shares...


Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
Termina
post Jul 27 2005, 03:13 AM
Post #4


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



If this is a new problem (samba was working well before, but now it's sluggish), try this:

Open up SSH, and log in as root (to the samba machine).

ps -A

Do you see a lot of smbd's or nmbd's? If so, just restart samba and it should work again.

(If you want, you could make a cron task to do this for you)


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
as2100
post Jul 28 2005, 04:36 PM
Post #5


Grub-er
**

Group: Members
Posts: 26
Joined: 27-January 05
Member No.: 4,595



Also, in your smb.conf, there are a couple socket options that can really make the difference between night and day.

Try adding this to the smb.conf:
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

Could even try increasing the buffer size to 24K (or higher). I recently boosted my buffer size to try and get cleaner video from a linux share on my Windows workstation. This did the trick for me. smile.gif
Go to the top of the page
 
+Quote Post
Chris-RHS
post Jul 30 2005, 12:18 PM
Post #6


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 31-May 05
Member No.: 5,069



Thanks for the tips, I disabled the windows service, and the improvement was minimul, I will try the other replies as well!
Go to the top of the page
 
+Quote Post
Chris-RHS
post Jul 30 2005, 12:40 PM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 31-May 05
Member No.: 5,069



Ok, for speeds, sometimes it takes up to 30 seconds to display a directory. I checked the conf file, and the setting for socket options was already included. This has been the issue since I started using samba, and there is one instance of nmbd running, and three of smdb. Thanks again everyone.
Go to the top of the page
 
+Quote Post
Termina
post Jul 31 2005, 08:56 PM
Post #8


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



Hey,

Have you tried using more than one Windows machine with this? This may be a silly question, but this IS a LAN, right? You arn't using samba over the internet, are you?

Have you tried (to test speeds) FTP/HTTP from linux to windows, to see if speeds are very low (or if there is a long pause?)

It might be a problem with your network cable/NIC. Also, what version of samba are you using?


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Chris-RHS
post Aug 1 2005, 08:12 PM
Post #9


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 31-May 05
Member No.: 5,069



Yes, this is with multiple windows machines. My ftp speeds from the machine reach 8500kb/s, so there is no issue with the network card. The machine is a dual boot, and runs fast under windows (for sharing docs). I am using Samba version 3.01014.
Go to the top of the page
 
+Quote Post
Termina
post Aug 1 2005, 11:38 PM
Post #10


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



You might want to check out /var/log/samba (unless you've set a diffrent log file in smb.conf).

There's obviously a problem, or atleast some tweaking needed. Do you see any errors/warnings there?


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2017 - 07:44 AM