[libvirt] compressing .git/ can save 15%

Daniel Veillard veillard at redhat.com
Wed Jan 12 11:33:29 UTC 2011


On Wed, Jan 12, 2011 at 12:01:12PM +0100, Jim Meyering wrote:
> Daniel Veillard wrote:
> ...
> > xmlsoft:~ -> cat bin/GitMaintainance
> > #!/bin/sh
> > # Garbage collect the libvirt GIT repository
> > git --git-dir /git/libvirt.git gc > $HOME/tmp/GitMaintainance.log 2>&1
> > xmlsoft:~ -> crontab -l | grep GitMaintainance
> > 4 4 * * Sun /u/veillard/bin/GitMaintainance
> > xmlsoft:~ ->
> >
> >   Seems to have run normally on Sun 9 Jan from what I can tell :-)
> >
> >   So basically I should just add --aggressive to the garbage collection
> > command for extra cleanup, right ?
> 
> Exactly ;-)

  Okay, done, BTW here is the result for a manual run I did:

xmlsoft:~ -> git --git-dir /git/libvirt.git gc --aggressive 
Counting objects: 50594, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (50455/50455), done.
Writing objects: 100% (50594/50594), done.
Total 50594 (delta 42525), reused 0 (delta 0)
xmlsoft:~ -> 

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list