git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regression in memory consumption of git fsck
@ 2018-02-14 10:22 Dominic Sacré
  2018-02-14 12:48 ` SZEDER Gábor
  0 siblings, 1 reply; 3+ messages in thread
From: Dominic Sacré @ 2018-02-14 10:22 UTC (permalink / raw)
  To: git; +Cc: jonathantanmy

Hi,

I've noticed that recent versions of git consume a lot of memory during
"git fsck", to the point where I've regularly had git fall victim to
Linux's OOM killer.

For example, if I clone torvalds/linux.git, and then run "git fsck
--connectivity-only" in the newly cloned repository, git will consume
more than 6GB of physical memory, while older versions peak at about 2GB.

I've managed to bisect this down to this commit in v2.14:

ad2db4030e42890e569de529e3cd61a8d03de497
fsck: remove redundant parse_tree() invocation

If I revert that commit (on top of current master) the memory
consumption goes down to 2GB again. The change looks relatively harmless
to me, so does anyone know what's going on here?


Thanks,

Dominic

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

end of thread, other threads:[~2018-02-14 13:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-14 10:22 Regression in memory consumption of git fsck Dominic Sacré
2018-02-14 12:48 ` SZEDER Gábor
2018-02-14 13:55   ` Jeff King

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 NNTP newsgroup(s).