* git gc --prune consumes *lots* of memory with repos cloned with --reference
@ 2009-02-12 18:32 Jon Nelson
2009-02-12 18:59 ` Björn Steinbrink
0 siblings, 1 reply; 3+ messages in thread
From: Jon Nelson @ 2009-02-12 18:32 UTC (permalink / raw)
To: git
The situation:
I cloned linux-2.6
Then I cloned netdev-2.6 with --reference $PWD/linux-2.6
Then I cloned net-2.6 with --reference $PWD/netdev-2.6
The problem:
git gc --prune on netdev-2.6 takes WAY more memory than git gc --prune
on linux-2.6
git gc --prune on net-2.6 takes WAY WAY more memory. 1.5G and counting.
Why does git gc --prune take 1.5G? (git pack-objects is the actual
memory-hungry process)
--
Jon
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git gc --prune consumes *lots* of memory with repos cloned with --reference
2009-02-12 18:32 git gc --prune consumes *lots* of memory with repos cloned with --reference Jon Nelson
@ 2009-02-12 18:59 ` Björn Steinbrink
2009-02-12 20:37 ` Jon Nelson
0 siblings, 1 reply; 3+ messages in thread
From: Björn Steinbrink @ 2009-02-12 18:59 UTC (permalink / raw)
To: Jon Nelson; +Cc: git
On 2009.02.12 12:32:13 -0600, Jon Nelson wrote:
> The situation:
>
> I cloned linux-2.6
> Then I cloned netdev-2.6 with --reference $PWD/linux-2.6
> Then I cloned net-2.6 with --reference $PWD/netdev-2.6
>
> The problem:
>
> git gc --prune on netdev-2.6 takes WAY more memory than git gc --prune
> on linux-2.6
> git gc --prune on net-2.6 takes WAY WAY more memory. 1.5G and counting.
>
> Why does git gc --prune take 1.5G? (git pack-objects is the actual
> memory-hungry process)
Probably an older git version? There was a bug that caused a memory leak
with unreachable objects being forced to be loose objects. That was
fixed in 1.6.0.3
Björn
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git gc --prune consumes *lots* of memory with repos cloned with --reference
2009-02-12 18:59 ` Björn Steinbrink
@ 2009-02-12 20:37 ` Jon Nelson
0 siblings, 0 replies; 3+ messages in thread
From: Jon Nelson @ 2009-02-12 20:37 UTC (permalink / raw)
Cc: git
Indeed - I was running 1.6.0.2.
I tried 1.6.1.3 and it certainly helped the memory consumption
problem, although for some reason it went very slowly the first time.
Thanks!
On Thu, Feb 12, 2009 at 12:59 PM, Björn Steinbrink <B.Steinbrink@gmx.de> wrote:
>
> Probably an older git version? There was a bug that caused a memory leak
> with unreachable objects being forced to be loose objects. That was
> fixed in 1.6.0.3
--
Jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-12 20:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-12 18:32 git gc --prune consumes *lots* of memory with repos cloned with --reference Jon Nelson
2009-02-12 18:59 ` Björn Steinbrink
2009-02-12 20:37 ` Jon Nelson
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).