[Bug 367545] Re: Huge memory usage for bzr branch/checkout

Bobby Powers bobbypowers at gmail.com
Sat Jun 23 17:50:42 UTC 2012


I am unable to checkout lp:mysql-server on a machine with 16 GB of ram!

[  971.087983] Out of memory: Kill process 1694 (bzr) score 956 or sacrifice child
[  971.087986] Killed process 1694 (bzr) total-vm:15870528kB, anon-rss:15588084kB, file-rss:16kB
[bpowers at fina src]$ bzr --version
Bazaar (bzr) 2.5.0
  Python interpreter: /usr/bin/python 2.7.3
  Python standard library: /usr/lib64/python2.7
  Platform: Linux-3.5.0-rc3+-x86_64-with-fedora-17-Beefy_Miracle

Note the rss usage: 15588084kB

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/367545

Title:
  Huge memory usage for bzr branch/checkout

Status in Bazaar Version Control System:
  Confirmed
Status in “bzr” package in Ubuntu:
  Triaged

Bug description:
  $ uname -a
  Linux odin 2.6.27.9-kn #1 SMP Sat Dec 27 10:40:16 CET 2008 x86_64 GNU/Linux
  $ bzr --version
  Bazaar (bzr) 1.13
    Python interpreter: /usr/bin/python 2.5.2
    Python standard library: /usr/lib/python2.5
    bzrlib: /usr/lib/python2.5/site-packages/bzrlib

  (This is Ubuntu 8.04 on x86_64, with the bzr from the Hardy bzr ppa).

  bzr needs huge amounts of memory when creating a branch or checkout of
  the mysql-server repository.

  To repeat, run this:

      bzr branch lp:mysql-server/6.0

  Running top alongside show (on my machine) the resident memory usage
  of bzr to rise to 633MB before it is finished.

  We have seen bzr abort on out of memory. This seems a big issue, as
  apparently it makes it impossible to develop using bzr with this
  repository on machines with <1Gb of memory.

  User `lifeless` on FreeNode IRC #bzr suggested I file this as a bug.

  The mysql-server/6.0 has a lot of history, the shared repository size
  is about 650 Mb.

  Using a shared repository locally doesn't seem to solve the problem. A
  bzr branch --no-tree takes little memory then, but a bzr checkout
  still uses up >600MB.

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/367545/+subscriptions




More information about the foundations-bugs mailing list