git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jon Nelson <jnelson@jamponi.net>
To: unlisted-recipients:; (no To-header on input)
Cc: git@vger.kernel.org
Subject: Re: git gc / git repack not removing unused objects?
Date: Sat, 6 Feb 2010 07:53:13 -0600	[thread overview]
Message-ID: <cccedfc61002060553w464d5d9drd582b3b3c3f35227@mail.gmail.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1002051634380.1681@xanadu.home>

On Fri, Feb 5, 2010 at 3:45 PM, Nicolas Pitre <nico@fluxnic.net> wrote:
> On Fri, 5 Feb 2010, Jon Nelson wrote:
>
>> On Fri, Feb 5, 2010 at 2:51 PM, Nicolas Pitre <nico@fluxnic.net> wrote:
>> > On Fri, 5 Feb 2010, Jon Nelson wrote:
>> >
>> >> [Using git 1.6.4.2]
>> >>
>> >> In one repo I have (136G objects directory, fully packed) I'm having
>> >> some trouble.
>> >> I've run git-gc --prune=now, git repack -Adf, and so on a half-dozen
>> >> times and each time I do so it gets bigger, not smaller.
>> >
>> > Please tell us more.
>>
>> I'll tell you whatever I can -- as soon as I know what it is you want.
>
> I want to know what you did and what results you obtained to lead you to
> believe that 'git-gc --prune=now' makes your repository bigger.

Last night, the repo size was 153G after removing some commits and
objects by way of git filter-branch.
I'm using "du -sh" in the .git directory to determine the disk usage.

Before: 136G
git repack -dAl
After: 153G

Then, just to make sure of some things, I changed nothing and simply
re-ran "git repack -dAl".
After: 167G

Config:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = true
        logallrefupdates = true
        compression = 0
        loosecompression = 0
        packedGitLimit = 1500M
        #packedGitWindowSize = 32m
[pack]
        packsizelimit = 256m
        windowMemory = 128m
        deltaCacheSize = 1m
[gc]
    threads = 1
    packrefs = true

[repack]
        usedeltabaseoffset = true

Incorporating the system and global config (git config -l):

pack.packsizelimit=2M
pack.threads=1
gc.auto=0
gc.autopacklimit=0
core.repositoryformatversion=0
core.filemode=true
core.bare=true
core.logallrefupdates=true
core.compression=0
core.loosecompression=0
core.packedgitlimit=1500M
pack.packsizelimit=256m
pack.windowmemory=128m
pack.deltacachesize=1m
gc.threads=1
gc.packrefs=true
repack.usedeltabaseoffset=true

-- 
Jon

  reply	other threads:[~2010-02-06 13:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-05 19:45 git gc / git repack not removing unused objects? Jon Nelson
2010-02-05 20:51 ` Nicolas Pitre
2010-02-05 21:04   ` Jon Nelson
2010-02-05 21:45     ` Nicolas Pitre
2010-02-06 13:53       ` Jon Nelson [this message]
2010-02-07  1:16         ` Nicolas Pitre
2010-02-07 17:48           ` Jon Nelson
2010-02-07 23:40             ` Jon Nelson
2010-02-08  2:11               ` Nicolas Pitre
2010-02-08 17:12                 ` Jon Nelson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cccedfc61002060553w464d5d9drd582b3b3c3f35227@mail.gmail.com \
    --to=jnelson@jamponi.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).