{"thread":{"id":"17757","subject":"git gc --prune consumes *lots* of memory with repos cloned with --reference","startedAt":"2009-02-12T18:32:13Z","lastAt":"2009-02-12T20:37:24Z","messageCount":3,"participants":["Jon Nelson","Björn Steinbrink"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"104404","messageId":"cccedfc60902121032y17180739r2a049197323d3588@mail.gmail.com","threadId":"17757","inReplyTo":null,"subject":"git gc --prune consumes *lots* of memory with repos cloned with --reference","fromName":"Jon Nelson","fromEmail":"jnelson@jamponi.net","sentAt":"2009-02-12T18:32:13Z","receivedAt":"2009-02-12T18:32:13Z","isPatch":false,"sender":{"key":"jnelson@jamponi.net","avatar":null},"body":"The situation:\n\nI cloned linux-2.6\nThen I cloned netdev-2.6 with --reference $PWD/linux-2.6\nThen I cloned net-2.6 with --reference $PWD/netdev-2.6\n\nThe problem:\n\ngit gc --prune on netdev-2.6 takes WAY more memory than git gc --prune\non linux-2.6\ngit gc --prune on net-2.6 takes WAY WAY more memory. 1.5G and counting.\n\nWhy does git gc --prune take 1.5G? (git pack-objects is the actual\nmemory-hungry process)\n\n--\nJon\n"},{"id":"104405","messageId":"20090212185925.GC20552@atjola.homenet","threadId":"17757","inReplyTo":"cccedfc60902121032y17180739r2a049197323d3588@mail.gmail.com","subject":"Re: git gc --prune consumes *lots* of memory with repos cloned with --reference","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2009-02-12T18:59:25Z","receivedAt":"2009-02-12T18:59:25Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2009.02.12 12:32:13 -0600, Jon Nelson wrote:\n> The situation:\n> \n> I cloned linux-2.6\n> Then I cloned netdev-2.6 with --reference $PWD/linux-2.6\n> Then I cloned net-2.6 with --reference $PWD/netdev-2.6\n> \n> The problem:\n> \n> git gc --prune on netdev-2.6 takes WAY more memory than git gc --prune\n> on linux-2.6\n> git gc --prune on net-2.6 takes WAY WAY more memory. 1.5G and counting.\n> \n> Why does git gc --prune take 1.5G? (git pack-objects is the actual\n> memory-hungry process)\n\nProbably an older git version? There was a bug that caused a memory leak\nwith unreachable objects being forced to be loose objects. That was\nfixed in 1.6.0.3\n\nBjörn\n"},{"id":"104412","messageId":"cccedfc60902121237h6bb9b9dn98c485e85c53440d@mail.gmail.com","threadId":"17757","inReplyTo":"20090212185925.GC20552@atjola.homenet","subject":"Re: git gc --prune consumes *lots* of memory with repos cloned with --reference","fromName":"Jon Nelson","fromEmail":"jnelson@jamponi.net","sentAt":"2009-02-12T20:37:24Z","receivedAt":"2009-02-12T20:37:24Z","isPatch":false,"sender":{"key":"jnelson@jamponi.net","avatar":null},"body":"Indeed - I was running 1.6.0.2.\n\nI tried 1.6.1.3 and it certainly helped the memory consumption\nproblem, although for some reason it went very slowly the first time.\n\nThanks!\n\nOn Thu, Feb 12, 2009 at 12:59 PM, Björn Steinbrink <B.Steinbrink@gmx.de> wrote:\n>\n> Probably an older git version? There was a bug that caused a memory leak\n> with unreachable objects being forced to be loose objects. That was\n> fixed in 1.6.0.3\n\n\n--\nJon\n"}]}