LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   samba and svn checkout is very slow (http://www.linuxquestions.org/questions/linux-general-1/samba-and-svn-checkout-is-very-slow-4175460529/)

suresh.k 05-03-2013 02:30 AM

samba and svn checkout is very slow
 
Hi,

I configured samba and svn on centos,
samba share copying and svn check out was dead slow, on client machines.

whenever client {from another machine} trying to copy samba shared files and folders and check out svn repo's has very slow.

But in samba server internet browsing is fast, and copying files and folders from another samba shares is fast.

After restarting the server everything working fine, but after some time the server getting down to slow.

My Samba Configuration :
[soft]
comment = Harvest@Softwares
path = /soft
writable = yes
browseable = Yes
valid users = soft

My SVN Configuration:

<Location /EyeTouch>
DAV svn
SVNPath /var/www/svn/EyeTouch
AuthType Basic
AuthName 'Authorization Realm'
AuthUserFile /var/www/passwd/.htpasswd
Require valid-user
</Location>


Thanks
Suresh

TB0ne 05-04-2013 11:22 AM

Quote:

Originally Posted by suresh.k (Post 4943901)
Hi,
I configured samba and svn on centos, samba share copying and svn check out was dead slow, on client machines. whenever client {from another machine} trying to copy samba shared files and folders and check out svn repo's has very slow.

But in samba server internet browsing is fast, and copying files and folders from another samba shares is fast. After restarting the server everything working fine, but after some time the server getting down to slow.

That is not your full Samba and SVN configuration. And you (again) don't provide details...like what version of CentOS, SVN, Samba, what OS the client machines are running, the topology of the network you're using, and what SVN clients you're using.

But a brief Google search for this turns up lots, along with documentation on the Samba site, and many suggestions on how to handle this:
http://serverfault.com/questions/140...-box-very-slow
http://www.samba.org/samba/docs/man/...ion/speed.html

suresh.k 05-06-2013 02:02 AM

Quote:

Originally Posted by TB0ne (Post 4944817)
And you (again) don't provide details...like what version of CentOS, SVN, Samba, what OS the client machines are running, the topology of the network you're using, and what SVN clients you're using.

Server OS : CentOS release 5.5 (Final)
Samba version : 3.0.33-3.29.el5_5.1
svn version : 1.4.2 (r22196)
OS of clients : Windows8 and Ubuntu10.04.
The topology of the network : ISP modem > Router > switch > clients and servers.
SVN Clients
Windows : TortoiseSVN-1.6.12.20536
LInux : svn 1.6.6

suresh.k 05-06-2013 02:17 AM

Quote:

Originally Posted by TB0ne (Post 4944817)
That is not your full Samba and SVN configuration.

SAMBA CONFIG FILE :

[global]
workgroup = WORKGROUP
server string = Samba Server
netbios name = SVN
hosts allow = 127. 192.168.10. 192.168.0.
log file = /var/log/samba/%m.log
max log size = 50
security = user
passdb backend = tdbsam
os level = 33
load printers = no
cups options = raw
printcap name = /dev/null
printing = bsd

-----share definitions----
[homes]
comment = Home Directories
browseable = no
writable = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

[soft]
comment = Harvest@Softwares
path = /soft
writable = yes
browseable = Yes
valid users = soft

[dotnet]
comment = Harvest@Softwares
path = /opt
writable = yes
browseable = Yes
valid users = soft

[html]
comment = Harvest@Softwares
path = /var/www/html
writable = yes
browseable = Yes
valid users = soft


SVN CONFIG FILE :

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

Alias /svnaccessmanager /var/www/html/svnaccessmanager/svn_access_manager

<Location /svn/repos>
DAV svn
SVNParentPath /svn/repos
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/svn/svn-passwd
AuthzSVNAccessFile /etc/svn/svn-access
Require valid-user
SVNIndexXSLT /svnstyle/svnindex.xsl
</Location>

CustomLog /var/log/httpd/svn.log "%t %u %{SVN-ACTION}e" env=SVN-ACTION


<Location /EyeTouch>
DAV svn
SVNPath /var/www/svn/EyeTouch
AuthType Basic
AuthName 'Authorization Realm'
AuthUserFile /var/www/passwd/.htpasswd
Require valid-user admin usha srinivas paramesh navin
</Location>


<Location /repos>
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /var/www/passwd/.htpasswd
Require valid-user vamsi anji asiq pramesh rajesh
</Location>

<Location /political_iq>
DAV svn
SVNPath /var/www/svn/political_iq
AuthType Basic
AuthName "Repo for political_iq"
AuthUserFile /var/www/passwd/.htpasswd
Require valid-user
</Location>

<Location /SPML>
DAV svn
SVNPath /var/www/svn/SPML
AuthType Basic
AuthName "Repo for SPML"
AuthUserFile /var/www/passwd/.htpasswd
Require valid-user
</Location>

<Location /lincolnwest>
DAV svn
SVNPath /var/www/svn/lincolnwest
AuthType Basic
AuthName "Repo for Lincolnwest"
AuthUserFile /var/www/passwd/.htpasswd
Require valid-user
</Location>

<Location /newseagle360>
DAV svn
SVNPath /var/www/svn/newseagle360
AuthType Basic
AuthName "Repo for newseagle360"
AuthUserFile /var/www/passwd/.htpasswd
Require valid-user
</Location>

<Location /SMP>
DAV svn
SVNPath /var/www/svn/SMP
AuthType Basic
AuthName "Repo for SMP"
AuthUserFile /var/www/passwd/.htpasswd
Require valid-user
</Location>

<Location /PHI>
DAV svn
SVNPath /var/www/svn/PHI
AuthType Basic
AuthName "Repo for PHI"
AuthUserFile /var/www/passwd/.htpasswd
Require valid-user
</Location>

<Location /bizdoc_dev>
DAV svn
SVNPath /var/www/svn/bizdoc_dev
AuthType Basic
AuthName "Repo for BizDoc"
AuthUserFile /var/www/passwd/.htpasswd
Require valid-user
</Location>


Thanks
Suresh

TB0ne 05-06-2013 09:49 AM

Quote:

Originally Posted by suresh.k (Post 4945763)
Server OS : CentOS release 5.5 (Final)
Samba version : 3.0.33-3.29.el5_5.1
svn version : 1.4.2 (r22196)
OS of clients : Windows8 and Ubuntu10.04.
The topology of the network : ISP modem > Router > switch > clients and servers.
SVN Clients
Windows : TortoiseSVN-1.6.12.20536
LInux : svn 1.6.6

First, you do realize that your Ubuntu server is several versions out of date, right? And based on the network description, you don't say how MANY clients are concurrently using that one, SINGLE line from your ISP, or what the speed of that line is, and what else is shared over it. If you've got everyone plugged into a single port on a cheap router at 100MBs, that will affect your speed too. Again, details are good.

And did you read the first like I gave you?? The one that specifically mentions Tortoise SVN, slow speeds, and a suggested fix?? Did you try/understand it?

suresh.k 05-07-2013 02:14 AM

Quote:

Originally Posted by TB0ne (Post 4945964)
First, you do realize that your Ubuntu server is several versions out of date, right?

I am using CentOS5.5, it is also out of date, u r right.

Quote:

And based on the network description, you don't say how MANY clients are concurrently using that one, SINGLE line from your ISP, or what the speed of that line is, and what else is shared over it. If you've got everyone plugged into a single port on a cheap router at 100MBs, that will affect your speed too. Again, details are good.
I don't think that the problem has in network, why because, internet speed and copying shared files from another samba server are working fine, on both server as well as client's. on whole network computer's.

FYI
We have one single ISP Line,
Overall 25 clients are using this,
30Mbps speed,
We are using NETGEAR WNDR3800 Router,
And Dlink DES1024D switch.

Quote:

And did you read the first like I gave you?? The one that specifically mentions Tortoise SVN, slow speeds, and a suggested fix?? Did you try/understand it?
Yes, i add suggested things on that link to my samba configuration,
As i told before, after restarting the server, the problem doesn't appear for some time,
So i kept it under consideration.

Thanks
Suresh

TB0ne 05-07-2013 09:16 AM

Quote:

Originally Posted by suresh.k (Post 4946391)
I am using CentOS5.5, it is also out of date, u r right.

Spell out your words.
Quote:

I don't think that the problem has in network, why because, internet speed and copying shared files from another samba server are working fine, on both server as well as client's. on whole network computer's.

FYI
We have one single ISP Line, Overall 25 clients are using this, 30Mbps speed, We are using NETGEAR WNDR3800 Router, And Dlink DES1024D switch.
Again, if ALL the clients are running through ONE PORT on ONE SWITCH, it *COULD* cause a problem. Have you tried to look at traffic statistics on those devices???
Quote:

Yes, i add suggested things on that link to my samba configuration, As i told before, after restarting the server, the problem doesn't appear for some time
No, you DIDN'T tell us that before...look in what you posted above, look at your Samba configuration. You don't have those updated options in it anywhere, and have NEVER said you applied them and restarted.

Again, there are almost 1 MILLION hits for "Tortoise SVN client is slow" on Google, with lots of suggested fixes.
http://stackoverflow.com/questions/4...isesvn-so-slow
https://netbeans.org/bugzilla/show_bug.cgi?id=210975
http://www.svnforum.org/threads/4179...1-7-w-Tortoise

...and you say you're using Tortoise 1.6.12...when the latest version is 1.7.12, and there are bug reports of slow speed with the 1.6 version. Again, have you done any basic diagnostics? Tried different SVN clients? CLI clients? Updated the version? Tried moving the repository off of a Samba share to local disk, to see if it makes a difference?? Without doing basic diagnostics to narrow down the problem, you can't really say that it's Samba causing the problem in any way.


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