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

pack.packSizeLimit, safety checks

From
Sergio <sergio.callegari@gmail.com>
Date
Feb 1, 2010, 09:20 UTC
Message-ID
<loom.20100201T101056-232@post.gmane.org>
Hi,
documentation about pack.packSizeLimit
says:

The default maximum size of a pack. This setting only affects packing to a file, i.e. the git:// protocol is unaffected. It can be overridden by the --max-pack-size option of git-repack(1).

I would suggest clarifying it into

The default maximum size of a pack in bytes. This setting only affects packing to a file, i.e. the git:// protocol is unaffected. It can be overridden by the --max-pack-size option of git-repack(1).

Since --max-pack-size takes MB and one might be tempted to assume that the same is valid for pack.packSizeLimit.

Also note that some safety check on pack.packSizeLimit could probably be desirable to avoid an unreasonably small limit. For instance:

Assume that pack.packSizeLimit is set to 1 (believing it would be 1MB, but it is in fact 1B). With this at the first git gc every object goes in its own pack. You realize the mistake, you fix pack.packSizeLimit to 1000000, but at this point you cannot go back since git gc cannot run anymore (too many open files).

Maybe, considering all the possible use cases of pack.packSizeLimit could help finding a reasonable lower bound.

Next: Nicolas Pitre
Message 1 of 11 in “pack.packSizeLimit, safety checks”
  1. SergioFeb 1, 2010
  2. Nicolas PitreFeb 1, 2010
  3. Johannes SixtFeb 1, 2010
  4. Shawn O. PearceFeb 1, 2010
  5. Junio C HamanoFeb 1, 2010
  6. Junio C HamanoFeb 1, 2010
  7. Nicolas PitreFeb 1, 2010
  8. Junio C HamanoFeb 1, 2010
  9. Junio C HamanoFeb 4, 2010
  10. Nicolas PitreFeb 4, 2010
  11. Junio C HamanoFeb 4, 2010

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.