Does bzr branch store everything in memory?

Asked by Elliot Murphy

Here is another question I got from my colleague who I am helping with converting to bazaar. When doing bzr branch with the source on a remote machine, the memory usage of the "bzr" python process seems to grow to approximately the size of the branch. This is not a big problem, but prevents running multiple "bzr branch" in parallel. These branches are between 300 and 600 MB in size.

Is it expected that bzr uses as much memory as the branch that you are copying during a branch operation?

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John A Meinel (jameinel) said :
#1

At various points we probably do buffer more than we should. Especially when using bzr+ssh (versus http). We certainly are always looking at ways to reduce our memory footprint, and switch to more "streaming" apis. I believe there has been a few very good pushes in the last few releases, so things may be better after an upgrade. That said, we are still developing it, and if you can point out specific things that are consuming lots of memory, it is helpful.

So... Does 'bzr branch' consume too much memory, probably, but it is something being worked on.

Revision history for this message
Larry Gilbert (l2g) said :
#2

I too have run into this; I've been trying to make a bzr branch of an existing Subversion repository, but I haven't suceeded since bzr slowly chews up all available RAM and swap space. Now, with this repo, many of the files it stores are large binaries with multiple versions, and the entire repo itself is in excess of 22 GB (according to du). So it could be an outlying use case. :-)

Revision history for this message
Larry Gilbert (l2g) said :
#3

Actually, I just remembered, 'bzr ls' on that SVN repo sucks up memory, too.

Can you help with this problem?

Provide an answer of your own, or ask Elliot Murphy for more information if necessary.

To post a message you must log in.