Large memory usage on upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Undecided
|
Unassigned | ||
Breezy |
Triaged
|
Low
|
Unassigned |
Bug Description
I ran upgrade (pack-0.92 -> 2a) on a repository and got this error:
rune@hilbert:
starting upgrade of file://
making backup of file://
to file://
starting repository conversion
bzr: ERROR: Must end write group before releasing write lock on CHKInventoryRep
rune@hilbert:
Bazaar (bzr) 2.0.0
Python interpreter: /usr/bin/python 2.6.4
Python standard library: /usr/lib/python2.6
Platform: Linux-2.
bzrlib: /usr/lib/
Bazaar configuration: /home/rune/.bazaar
Bazaar log file: /home/rune/.bzr.log
Log:
fre 2009-11-27 13:45:07 +0100
0.032 bzr arguments: [u'upgrade']
0.043 looking for plugins in /home/rune/
0.043 looking for plugins in /usr/lib/
0.084 encoding stdout as sys.stdout encoding 'UTF-8'
3264.515 creating repository in file://
3268.055 Resizing the inventory entry cache from 10240 to 30926
3269.572 Resizing the inventory entry cache from 30926 to 69320
3286.566 Resizing the inventory entry cache from 69320 to 100166
8125.502 checking remap as 15 deletions
8126.356 checking remap as 16 deletions
8144.451 Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
upgrade(url, format)
File "/usr/lib/
Convert(url, format)
File "/usr/lib/
self.convert()
File "/usr/lib/
self.bzrdir = converter.
File "/usr/lib/
converter.
File "/usr/lib/
converted.
File "/usr/lib/
% self)
BzrError: Must end write group before releasing write lock on CHKInventoryRep
I did a commit and some other commands in between the check and the upgrade, so I moved the 'backup.bzr' to '.bzr' and did the check after this error. The check did not report any problems.
rune@hilbert:
Shared repository (format: pack-0.92)
Location:
shared repository: .
Maybe my system ran out of memory?
rune@hilbert:
total used free shared buffers cached
Mem: 7874 3456 4418 0 119 2417
-/+ buffers/cache: 920 6954
Swap: 8918 547 8371
rune@hilbert:
16G .bzr
Changed in bzr: | |
status: | New → Confirmed |
summary: |
- Must end write group before releasing write lock on - CHKInventoryRepository + Large memory usage on upgrade |
tags: | added: check-for-breezy |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
importance: | Medium → Low |
tags: |
added: memory perforamnce upgrade removed: check-for-breezy |
tags: |
added: performance removed: perforamnce |
Unfortunately the original error has been obscured by bug 429747, which has been fixed in trunk (and the 2.1 beta releases) but isn't fixed in 2.0. So it might be a memory error (especially considering the size of your repo), but it's hard to tell.
Another change in the 2.1 series is that we've cut memory consumption roughly in half for many operations, so if it is memory related that *might* help.
So, is it possible for you to try installing 2.1.0b3 and report what happens? (your traceback says you're using karmic, we have a PPA with the beta releases at https:/ /launchpad. net/~bzr- beta-ppa/ +archive.)