]> git.phdru.name Git - git-scripts.git/commitdiff
Feat: Limit memory for gc/repack
authorOleg Broytman <phd@phdru.name>
Thu, 15 Mar 2018 02:27:52 +0000 (05:27 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 15 Mar 2018 02:27:52 +0000 (05:27 +0300)
Add a script to set config to limit memory for gc/repack
to avoid out of memory errors.

fix-gc-outofmemory [new file with mode: 0755]

diff --git a/fix-gc-outofmemory b/fix-gc-outofmemory
new file mode 100755 (executable)
index 0000000..4335722
--- /dev/null
@@ -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