This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: FYI, git gc'd glibc.git: 140MiB -> 82MiB
Carlos O'Donell wrote:
> On Sun, Mar 4, 2012 at 9:36 AM, Jim Meyering <jim@meyering.net> wrote:
>> Andreas Schwab wrote:
>>> Jim Meyering <jim@meyering.net> writes:
>>>
>>>> That's way too many unpacked objects.
>>>
>>> It's not even close to the default gc.auto limit.
>>>
>>>> Simply running "git gc"
>>>
>>> This is run automatically on each push.
>>
>> ??
>> If the server ran "git gc" on every push, then my manual invocation would
>> have had no effect. ?You probably meant to say that "git gc --auto is run
>> on each push", which is accurate, but it's a no-op unless e.g., there
>> are very many "loose" objects. ?Given the average size of glibc.git's
>> objects, the default gc.auto limit seems too high, so I've set it to 2000
>> (down from the default of 6700). ?Even that is probably still too high.
>
> Jim,
>
> If you feel motivated would you mind documenting some of this on the
> glibc wiki? Please feel free to make a new page and just got down your
> rough ideas?
>
> I have no idea about any of this stuff, but it would be nice if we
> wrote down the specific things we did for glibc.
Hi Carlos,
You may just want to simply link to this thread.
For the record, to do the above I ran this command on the server:
git --git-dir=/git/glibc.git config gc.auto 2000