Story of BerkeleyDB failing
From: Andreas J. Koenig <andreas.koenig_at_anima.de>
Date: 2002-12-08 14:47:27 CET
Executive summary:
"svn log" on a large repository fails with "Cannot allocate memory". I
Full story:
'svn log' emited:
Berkeley DB error while reading node revision for filesystem
--or--
svn: Berkeley DB error while reading transaction for filesystem
Failing commands were:
svn log -r HEAD http://...
asked for password, then quickly failed; error_log of apache
svn log -r HEAD file://...
fails quickly. See below for an strace.
Commands that still worked:
svnadmin recover # didn't have to recover anything
svnadmin dump # fortunately!
svn st -u
svn log -r 1
My environment:
- svn's own revision was 3953. I later upgraded to 4045 with same
- Berkeley version is 4.0.14.
- Linux Kernel is 2.5.47-ac5, LARGE_FILE support is available and
- In the beginning I didn't touch DB_CONFIG. Later I did try to lower
- The machine has 1.5 GB memory and 8 GB swap. The partition has 12 GB
- I had managed to write 7333 Berkeley log.NNNNNNNNNN files, the last
- This error occured for the first time around revision 10600 but only
- removing logfiles did not change the situation
- the dump file was > 3GB. Fortunately I could spot a checkpoint that
What I tried as a rescue:
With the dump (up to rev 10408; 2.3 GB) in my hands I removed the
Limits:
Maybe I have a limit in the shell environment? The limit command told
cputime unlimited
Doesn't look very limited. Increasing the stacksize up to 2048MB
Strace (v4.2) tells me:
pread(5, "\203\1\0\0\341\221\2\0\366\0\0\0\365\0\0\0\370\0\0\0\n"..., 4096, 1007
log -r 1 vs log -r HEAD
You might believe that if 'log -r 1' works and 'log -r HEAD' doesn't,
What I did not try:
I haven't tried to upgrade to Berkeley 4.1.24.
Please advise what I should try next.--Thanks!
-- andreas --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sun Dec 8 14:48:16 2002 |
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.