Ben Reser wrote:
> On Tue, 31 Aug 2004 19:00:47 +0200, Alex R. Mosteo <alejandro@mosteo.com> wrote:
>
>>The timeout happens after, say 5 minutes of no activity, and the server
>>is local. Everything is going at full speed and suddenly CPU usage drops
>>to 0, and after those 5 minutes or so the timeout or PUT failure is
>>reported. And then the repository is no longer accesible unless
>>re-created. Meanwhile my other repositories continue to work ok.
>
>
> Can you provide a reproduction recipe starting with creating a new
> repository and going from there?
I've prepared a test script. See below for some additional comments.
-----8<--------
#!/bin/sh
rm -rf test_data
mkdir test_data
filesize=100000
x=$((500000000 / filesize))
echo "Creating binaries..."
while ((x)); do
head -c $filesize /dev/urandom > test_data/random-$x.bin;
x=$((x - 1));
echo Remaining to be created: $x...
done
sudo rm -rf svn-test
sudo mkdir svn-test
sudo svnadmin create svn-test
sudo chown nobody:nobody -R svn-test
echo "Beginning import..."
svn import test_data http://myhost<false>.net/svn-test/test_data -m
"Test import"
echo "Verifying..."
sudo svnadmin verify svn-test
echo "Done."
-----8<-----------------
As you can see, I'm simply creating a lot of random files and importing
them to a fresh repository. What I've found is that a single, big file
of 500MB doesn't hang (in my two or three attempts), neither files of
1MB and above. However the test with smaller files (as pasted) in three
of three attempts. It suggests a load problem in Apache... but the
server is local. Is there some 'retry' option in svn?
I expect that someone can reproduce my problem with the above script.
Errors reported:
svn: PUT of
/svn-test/!svn/wrk/3181a26a-19e3-0310-b32f-fbc084b9c281/test_data/random-3655.bin:
timed out waiting for server (http://..)
BTW today I can't reproduce the corrupted repository. It is accessible
after the failure (obviously it is empty).
>>I've simply downloaded the source .zip and issued a ./configure being
>>root (as a regular user I get permissions denied before this point).
>
>
> The zip file packaging is for Windows only. Use tar.bz2 or .tar.gz
Argh.
It now fails at this point (doing make):
cd subversion/mod_authz_svn && /bin/sh
/home/jano/tmp/subversion-1.1.0-rc2/libtool --silent --mode=link gcc -g
-O2 -g -O2 -pthread -DNEON_ZLIB -rpath - rsion -module -o
mod_authz_svn.la mod_authz_svn.lo
../../subversion/libsvn_subr/libsvn_subr-1.la
libtool: link: only absolute run-paths are allowed
make: *** [subversion/mod_authz_svn/mod_authz_svn.la] Error 1
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 2 13:33:05 2004