{"thread":{"id":"27121","subject":"What the best git repack option to avoid out of memory (2G free memory)","startedAt":"2011-04-17T03:24:57Z","lastAt":"2011-04-17T03:32:44Z","messageCount":2,"participants":["Ping Yin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"165999","messageId":"BANLkTimOnuSsSeuZ5QvLQLZBg1QnnDzaNw@mail.gmail.com","threadId":"27121","inReplyTo":null,"subject":"What the best git repack option to avoid out of memory (2G free memory)","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2011-04-17T03:24:57Z","receivedAt":"2011-04-17T03:24:57Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"When \"gc --auto --aggressive --prune\" android platform/prebuilt.git, i\nencountered the following error:\n\nAuto packing the repository for optimum performance.\nwarning: suboptimal pack - out of memory\nfatal: Out of memory, malloc failed\nerror: failed to run repack\n\nI have 2G free memory available and found the --window and\n--window-memory option in git repack. However, i wonder how to compute\nthe max memory git-repack will use, is it \"window * window-memory\"?\n\nAnd what is the best --window and --window-memory option for the 2G\nfree available memory?\n"},{"id":"166000","messageId":"BANLkTi=ABGrsUCxpB6fUXCP0477iq=irhw@mail.gmail.com","threadId":"27121","inReplyTo":"BANLkTimOnuSsSeuZ5QvLQLZBg1QnnDzaNw@mail.gmail.com","subject":"Re: What the best git repack option to avoid out of memory (2G free memory)","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2011-04-17T03:32:44Z","receivedAt":"2011-04-17T03:32:44Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"On Sun, Apr 17, 2011 at 11:24 AM, Ping Yin <pkufranky@gmail.com> wrote:\n> When \"gc --auto --aggressive --prune\" android platform/prebuilt.git, i\n> encountered the following error:\n>\n> Auto packing the repository for optimum performance.\n> warning: suboptimal pack - out of memory\n> fatal: Out of memory, malloc failed\n> error: failed to run repack\n>\n> I have 2G free memory available and found the --window and\n> --window-memory option in git repack. However, i wonder how to compute\n> the max memory git-repack will use, is it \"window * window-memory\"?\n>\n\nOr \"window * windowMemory * threads\"?\n"}]}