{"thread":{"id":"23839","subject":"git repack memory limit","startedAt":"2010-05-18T22:10:13Z","lastAt":"2010-05-19T18:45:49Z","messageCount":2,"participants":["Bahadir Balban","hasen j"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"141891","messageId":"4BF31045.1000700@l4dev.org","threadId":"23839","inReplyTo":null,"subject":"git repack memory limit","fromName":"Bahadir Balban","fromEmail":"bahadir@l4dev.org","sentAt":"2010-05-18T22:10:13Z","receivedAt":"2010-05-18T22:10:13Z","isPatch":false,"sender":{"key":"bahadir@l4dev.org","avatar":null},"body":"I am running git-repack on a server with memory limits. I am seeing the\nrepack spending 400MB and going out of memory. I could not limit repack\nmemory usage in anyway. I tried:\n\ngit config pack.deltaCacheLimit 1\ngit config pack.deltaCacheSize 1\ngit config pack.windowMemory 32m\n\nthen git repack -a -f -d\n\nalso I would particularly expect git repack -a -f -d --window-memory=16\nto succeed.\n\nUsing git 1.6.5. Any thoughts?\n\n-- \nBahadir\n"},{"id":"141918","messageId":"AANLkTil4Mh8wMXpHpqkiUmYyLSIR2AbNaM7KvPNzdQj7@mail.gmail.com","threadId":"23839","inReplyTo":"4BF31045.1000700@l4dev.org","subject":"Re: git repack memory limit","fromName":"hasen j","fromEmail":"hasan.aljudy@gmail.com","sentAt":"2010-05-19T18:45:49Z","receivedAt":"2010-05-19T18:45:49Z","isPatch":false,"sender":{"key":"hasan.aljudy@gmail.com","avatar":"https://gravatar.com/avatar/47314b4bfcc6ba6685a811d9697fe60e90602acec0e24b9bf48bd0a97307f7c2?d=mp&s=160"},"body":"On 18 May 2010 16:10, Bahadir Balban <bahadir@l4dev.org> wrote:\n> I am running git-repack on a server with memory limits. I am seeing the\n> repack spending 400MB and going out of memory. I could not limit repack\n> memory usage in anyway. I tried:\n>\n> git config pack.deltaCacheLimit 1\n> git config pack.deltaCacheSize 1\n> git config pack.windowMemory 32m\n>\n> then git repack -a -f -d\n>\n> also I would particularly expect git repack -a -f -d --window-memory=16\n> to succeed.\n>\n> Using git 1.6.5. Any thoughts?\n>\n\nI ran into a similar situation before.\n\nI believe it loads the entire file to memory, so if you have a single\nfile that's larger than the available memory, you'll run out of\nmemory, no matter how you tweak your settings.\n"}]}