Re: svnserve under Linux inetd hangs, burning CPU cycles, under too low TCP-sendbuffer.
From: Dr. Andreas Krüger <andreas.krueger_at_dv-ratio.com>
Date: Thu, 25 Feb 2010 12:58:20 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hello, all,
in short:
* The bug is reproducible with svnserve 1.6.
Minute detail:
Installing
> Package: subversion Version: 1.6.4dfsg-1~bpo50+1
and
> Package: libsvn1 Version: 1.6.4dfsg-1~bpo50+1
from Debian Lenny backports.
Creating a repository /var/local/svn-bug-repository, by doing (in that
> svnadmin create .
In /tmp , I generate a 10 MB junk file and check it in:
> svn co file:///var/local/svn-bug-repository ws cd ws perl -we
This creates the first revision in that particular repository.
I also added user and password to
> svnserve --daemon --listen-port 7777 --foreground --root
Thus far, all commands on the server machine, with the svn user's id.
Now, on the home machine (which still has an svn 1.5 client):
> svn co --username ... --password ... svn://server:7777/ ws
And, again, on the server, the svnserve hangs and consumes CPU.
I tried to find the limit of what would and wouldn't work.
vzctl set NNN --tcpsndbuf 600k:900k # works
On the particular machine, the CPU load of svnserve tends to stay
Does the limit depend on the material?
I produce, and check in (locally on the server machine, with file:///
perl -we 'srand(42); for($i=0;$i<100000000;$i++) {print pack
Now it hangs with 485k:785k, and also with 500k:800k, and also with
Apparently, bigger files do need bigger TCP send buffers.
Regards, and thank you for providing fine software,
Andreas
DV-RATIO NORDWEST GmbH
DV-RATIO - "Kompetenz und Zuverlässigkeit seit 1980"
iEYEARECAAYFAkuGZdoACgkQ6hmq3P1EXreM9ACfedlS7PuGukQMZCkcWK53+6OQ
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.