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

"Cannot allocate memory" error for "svn diff"

From: Sunil Shetye <shetye_at_bombay.retortsoft.com>
Date: 2004-10-28 10:45:34 CEST

Hi,

"svn diff" fails when run with many filenames (more than 130 or so).

$ svn diff -r 41899:41900
[ no errors ]

$ svn diff -r 41899:41900 file001 file002 ... file150
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///my/repos/trunk/file053'
svn: Berkeley DB error while opening 'nodes' table for filesystem /my/repos/db:
Cannot allocate memory
svn: bdb: Logging region out of memory; you may need to increase its size

The same error occurs even if all the files listed have not changed at
all in between the revisions specified!

After the error, many commands like "svn ci" and "svn up" work
normally. However, "svnadmin hotcopy" and "svnadmin recover" do not
work.

$ svnadmin recover /my/repos
Repository lock acquired.
Please wait; recovering the repository may take some time...
svn: DB_RUNRECOVERY: Fatal error, run database recovery
svn: bdb: Logging region out of memory; you may need to increase its size
svn: bdb: Recovery function for LSN 5316 3252932 failed on backward pass
svn: bdb: PANIC: Cannot allocate memory
svn: bdb: PANIC: fatal region error detected; run recovery
[ last line repeated 1662 times! ]

[ what should one do if "svnadmin recover" tells one to run recovery? ]

Luckily, "svnadmin dump" was still working, so I recovered the
repository using hotcopy + incremental dump. I increased set_lg_max to
40Mb (41943040) and set_lg_bsize to 10Mb (10485760) in
/my/repos/db/DB_CONFIG and ran "svnadmin recover". [Is there any way
of knowing if the new values have been used during recovery?]
Repeating the above "svn diff" command gave the same error.

Version info:
System: linux
subversion: 1.1.0
db4: 4.2.52 + 2 patches
repository access: file:// protocol

-- 
Sunil Shetye.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 28 10:38:12 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.