bzr repository structure...
Martin Pool
mbp at canonical.com
Mon Feb 14 03:44:43 UTC 2011
On 14 February 2011 06:34, Michael Andronov
<michael_andronov at sd-kyber.com> wrote:
> Hi,
>
> While investigating behavior of one of my branches I run into the some
> question about repository and its context.
>
> a. The strange behavior is that running `bzr pack` on the branch in
> question takes a very long time... ( I should probably say the machine
> 'hang'... but every couple of hours, - repacking ... string is making
> a click...)...
> Is there any way to verify that is going on during the packing?
>
> ( I have a few branches on my machine, approximately the same size of
> initial files/tree. But for some reason, this particular branch is
> giving a headache quite often:
> periodically, the 'bzr branch ...' is going into the long
> re-transmissions of particular packs... . I used to run 'bzr pack' to
> recover from such situation. But it seems that right now something
> else happened,
> and even bzr pack is working extremely slow...)
bzr normally repacks on power-of-ten boundaries, so after 10 commits
those ten will be repacked, after 100 commits all of them are
repacked, etc. So you should only see a substantial repack delay only
say every thousand or ten thousand commits.
If you're often noticing this then I would suspect: your tree is
really enormous; you have something automatically making many commits;
or something is broken in bzr or your environment.
A good way to find out what's happening would be to run
bzr pack log+file:///home/mbp/bzr (or whatever the path is)
Repacks over ftp/sftp are going to be kind of slow and you would be
better off using bzr+ssh or similar.
>
> b. While looking into the ../repository directory, I've noticed some
> unusually long file :
>
> -rw-rw-rw- 1 mike bazaar 106766418 Jan 24 11:54
> 9575cb746896b22713dca82aebb5d85d.pack
>
> First, the difference is within permissions, and second -- the size.
> See the whole ../repository listing below:
>
> I'm wondering, if it is normal?
It's one pack of 100MB. If you have >100MB of history then yes, it's
normal. If you have a small tree or few commits something may be
wrong: perhaps you are accidentally committing binaries?
Normally bzr tries to match the existing permissions. What OS,
filesystem, and bzr transport protocol (ie ssh, sftp, etc) are you
using?
> Also, I was looking for some doc, describing what the repository/
> structure is about, and what should be inside.
> Is any document like this exists?
> At which point the pack from this directory will be moved to obsolete packs?
>
> (See the whole ../repository listing below:
> "
> -rw-rw---- 1 mike bazaar 9209 Jan 30 00:54
> 05894cf4542a7de750286c1c30d837fe.pack
> -rw-rw---- 1 mike bazaar 9273 Jan 28 05:02
> 131aee8b43c41dd04578c63add764303.pack
> -rw-rw---- 1 mike bazaar 16603 Jan 24 23:08
> 1eb83c7de2cc6ea68581eb2bd854219c.pack
> -rw-rw---- 1 mike bazaar 10239 Jan 26 23:14
> 2e0c3b7b549b7e9c66b269272ac80b3a.pack
> -rw-rw---- 1 mike bazaar 20148 Jan 28 02:41
> 55ce579165d764508fe2e6974f9034ea.pack
> -rw-rw---- 1 mike bazaar 9024 Feb 7 21:59
> 634c892307edbf6c18eff94b4f5e6492.pack
> -rw-rw---- 1 mike bazaar 16289 Feb 7 13:59
> 775d991f3f2ad9718c1947ca2c77fad7.pack
> -rw-rw---- 1 mike bazaar 26456 Feb 13 11:24
> 7d9edf079ef7aa364a591a74b9f7001d.pack
> -rw-rw-rw- 1 mike bazaar 106766418 Jan 24 11:54
> 9575cb746896b22713dca82aebb5d85d.pack
> -rw-rw---- 1 mike bazaar 24730 Jan 26 04:55
> 994173f88cd88ba442dacfbeb596dad0.pack
> -rw-rw---- 1 mike bazaar 10503 Jan 31 04:16
> beb38a7af0396a2ebaa5e669c25c1e69.pack
> -rw-rw---- 1 mike bazaar 16742 Jan 26 02:15
> d1d5e67f857f5c89d6985ef146e60af6.pack
> -rw-rw---- 1 mike bazaar 16262 Jan 30 09:42
> dc8cbbc94a5233302579f4c8a05a1a22.pack
> -rw-rw---- 1 mike bazaar 12397 Feb 9 03:08
> dd63febadad4bcaa35dcef05a3b2745b.pack
> -rw-rw---- 1 mike bazaar 16791 Feb 8 11:58
> ec28afcb61f47d811d893f3ce05b7e59.pack
> -rw-rw---- 1 mike bazaar 9086 Feb 7 14:08
> f202497d625306b6adfde583f5af6a14.pack
> "
> )
>
> Thanks a lot for the kind attention to this matter.
>
> Michael .
>
>
More information about the bazaar
mailing list