git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Expand on impact of threads on memory consumption.

From
RBRobert de Bath <rdebath@tvisiontech.co.uk>
Date
Oct 24, 2014, 07:43 UTC
Message-ID
<1414136607-24765-1-git-send-email-rdebath@tvisiontech.co.uk>

It took me a long time to notice the rider on the pack.threads configuration option that it would multiple the memory consumption by the number of CPUs in the machine. This patch puts the memory consumption warning against the memory option that I was using to try to stop git-pack running out of RAM.

Signed-off-by: Robert de Bath <rdebath@tvisiontech.co.uk>
---
 Documentation/config.txt |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index c55c22a..6384038 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1828,7 +1828,10 @@ pack.depth::
 
 pack.windowMemory::
 	The window memory size limit used by linkgit:git-pack-objects[1]
-	when no limit is given on the command line.  The value can be
+	when no limit is given on the command line.  This limit may be
+	allocated individually by each thread doing delta compression
+	so the total memory allocated by linkgit:git-pack-objects[1] can
+	be this multiplied by the number of threads.  The value can be
 	suffixed with "k", "m", or "g".  Defaults to 0, meaning no
 	limit.
 
-- 
1.7.10.4
Next: Junio C Hamano
Message 1 of 2 in “Expand on impact of threads on memory consumption.”
  1. Expand on impact of threads on memory consumption.Robert de Bath, Oct 24, 2014
  2. Junio C HamanoOct 24, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.