[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

berkeley DB error

From: <dannys_at_changind.com>
Date: 2004-01-27 19:20:49 CET

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

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

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.config
   BEGIN=$1 # what iteration to start at
   END=$2 # what iteration to end at
   if [ -z $BEGIN ]; then
   if [ -z $END ]; then
   if [ $BEGIN -gt $END ]; then
   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
           echo "Verify failed with code $?"

   . 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"


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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.