From: Oleg Broytman Date: Thu, 15 Mar 2018 02:27:52 +0000 (+0300) Subject: Feat: Limit memory for gc/repack X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b2874dacef09ea00990fac43db70a57019c7bf41;p=git-scripts.git Feat: Limit memory for gc/repack Add a script to set config to limit memory for gc/repack to avoid out of memory errors. --- diff --git a/fix-gc-outofmemory b/fix-gc-outofmemory new file mode 100755 index 0000000..4335722 --- /dev/null +++ b/fix-gc-outofmemory @@ -0,0 +1,8 @@ +#! /bin/sh + +git config core.packedGitLimit 128m +git config core.packedGitWindowSize 128m + +git config pack.threads 1 +git config pack.windowMemory 256M +git config pack.deltaCacheSize 128m