[Openstack] please compress the public nova.git repository (~100MB -> 30MB)

Joe Gordon jogo at cloudscaling.com
Wed Feb 29 21:06:59 UTC 2012


If you just want to install from source or just look at the current code
you can do a:

git clone git://github.com/openstack/nova.git --depth 1

best,
Joe

On Tue, Feb 28, 2012 at 8:06 AM, Jim Meyering <jim at meyering.net> wrote:

> Hello,
>
> Looking at nova.git for the first time, I cloned it.
> Surprised that it was so much larger than the others, and too large for
> the size of the source and the amount of history, I tried to compress it.
> That reduced the repository size from nearly 100MiB to just 30:
>
>  $ git clone git://github.com/openstack/nova.git
>  $ git-repo-compress .git
>  97M     .git
>  Counting objects: 101858, done.
>  Delta compression using up to 12 threads.
>  Compressing objects: 100% (100594/100594), done.
>  Writing objects: 100% (101858/101858), done.
>  Total 101858 (delta 80708), reused 18388 (delta 0)
>  150.91user 81.16system 0:35.05elapsed 662%CPU (0avgtext+0avgdata
> 324536maxresident)k
>  29056inputs+59312outputs (381major+252932minor)pagefaults 0swaps
>  started Tue 2012-02-28 16:40:42 +0100
>  Tue 2012-02-28 16:41:17 +0100
>  30M     .git
>
> The command I used is just a wrapper around git repack:
>
>  git-repo-compress () {
>      local d=$1
>      du -sh "$d"
>      start=$(date)
>      env time git --git-dir="$d" repack -afd --window=250 --depth=250
>      echo started $start
>      date
>      du -sh "$d"
>  }
>
> Future cloners (and those who push, too) will be
> grateful if someone with access to the server would
> do the same thing to the public nova.git repository.
> Compressing the repo improves server performance, too.
>
> These other repositories compressed well, too:
>          size of .git repo (MiB)
>           current  compressed
>  swift      9.8M    2.3M
>  keystone    11M    9.9M
>  horizon    4.1M    3.2M
>  glance     5.2M    1.9M
>  quantum    3.0M    1.4M
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120229/717a792c/attachment.html>


More information about the Openstack mailing list