Okay, so I made a test script to create an ever increasing file to
test file sizes and number of commits. (I'll include the scripts
below).
So right now the problem is that I've gotten to about 129 revisions in
the repository. The checked out filesize is only 132 MB. However,
when I do a dump/load, I'm getting this error when loading around
revision 113:
svn: Berkeley DB error while reading representation for filesystem
test-repo/db:Cannot allocate memory
I get the same error if I do a deltify.
I've tried this on both subversion-0.36.0-8282.rh90 and
subversion-0.37.0-1.rh90.
This machine has 1 GB of memory and 3 GB of swap, and isn't really
doing much of anything right now other than running subversion.
Any ideas?
there are three files:
svntest.config - location of the repository, checkout directory, etc.
svntest-add.sh - script to call to automatically grow a file and
commit it
svntest-create.sh - script to create the initial repository
svntest-add.sh:
#!/bin/sh
. svntest.config
BEGIN=$1 # what iteration to start at
END=$2 # what iteration to end at
ORIG_CWD=`pwd`
if [ -z $BEGIN ]; then
BEGIN=1
fi
if [ -z $END ]; then
END=100
fi
if [ $BEGIN -gt $END ]; then
exit
fi
cd $CO_NAME
echo `date` " ******* Iteration $BEGIN / $END ******* "
echo "> cleanup"
svn cleanup .
svn update
# modify files
echo "> Appending to file"
dd if=/dev/urandom bs=1024 count=1024 >> file1 2> /dev/null
echo "> Creating md5sum"
md5sum file1 > md5sum.txt
echo "> Committing"
svn commit -m "$BEGIN / $END"
echo "> Updating"
let BEGIN=BEGIN+1
cd $ORIG_CWD
echo "> Fix repository"
svnadmin recover $REPO_NAME
# Verify that repository is still good
echo "> Verifying"
svnadmin verify $REPO_NAME
if [ $? -eq 0 ]; then
# Verify good, continue
exec $0 $BEGIN $END
else
echo "Verify failed with code $?"
fi
svntest-create.sh:
#!/bin/sh
. svntest.config
# Create repository
svnadmin create $REPO_NAME
svn co "file://$REPO_DIR" $CO_NAME
cd $CO_NAME
dd if=/dev/urandom bs=1024 count=1024 >> file1
md5sum file1 > md5sum.txt
svn add file1 md5sum.txt
svn commit -m "initial commit"
svntest.config:
REPO_NAME='test-repo'
REPO_DIR="`pwd`/$REPO_NAME"
CO_NAME='test-co'
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 27 19:22:08 2004