git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* There should have be git gc --repack-arguments
@ 2021-04-07 12:10 Bagas Sanjaya
  2021-04-07 19:37 ` Jeff King
  2021-04-07 19:38 ` Bryan Turner
  0 siblings, 2 replies; 10+ messages in thread
From: Bagas Sanjaya @ 2021-04-07 12:10 UTC (permalink / raw)
  To: git

Hi,

I request that git gc should have --repack-arguments option. The value
of this option should be passed to git repack.

The use case is when I have very large repos (such as GCC and Linux kernel)
on a server with small RAM (1-2 GB). When doing gc on such repo, the repack
step may hang because git-repack have to create single large packfile which
can be larger than available memory (RAM+swap), so it must be necessary to
do git repack --window-memory=<desired memory usage> --max-pack-size=<desired
pack size> to create split and smaller packs instead.

There should also git config item gc.repackArguments, which have the same
effect as git gc --repack-arguments, with the option takes precedence over
the config.

-- 
An old man doll... just what I always wanted! - Clara

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-04-09 15:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 12:10 There should have be git gc --repack-arguments Bagas Sanjaya
2021-04-07 19:37 ` Jeff King
2021-04-07 20:40   ` Junio C Hamano
2021-04-07 21:37     ` Jeff King
2021-04-07 22:13       ` Junio C Hamano
2021-04-07 22:22         ` Jeff King
2021-04-09  9:58           ` Bagas Sanjaya
2021-04-09 15:49             ` Jeff King
2021-04-07 19:38 ` Bryan Turner
2021-04-08 13:31   ` Bagas Sanjaya

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).