Git development
 help / color / mirror / Atom feed
* git commit results in many lstat()s
@ 2017-02-01 21:45 Gumbel, Matthew K
  2017-02-01 22:11 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Gumbel, Matthew K @ 2017-02-01 21:45 UTC (permalink / raw)
  To: git@vger.kernel.org

Hello,

My high level problem is to speed up git commit on a large repository stored on NFS filesystem. I see via strace that it is slow because it makes a large number (~50,000) of lstat() calls in serial. Every call is a round-trip to the NFS server.

I do not understand why git commit must call lstat() on every file in the repository, even when I specify the name of the file I want to commit on the command line. Can somebody explain why it must call lstat on every file?

My command-line looks like this: git commit -uno -o -m asdf file-to-commit.txt

Secondly, are there any optimizations I can make to avoid this behavior?

Thanks,
Matt


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

end of thread, other threads:[~2017-02-02  0:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-01 21:45 git commit results in many lstat()s Gumbel, Matthew K
2017-02-01 22:11 ` Junio C Hamano
2017-02-01 22:26   ` Gumbel, Matthew K
2017-02-01 23:50     ` Junio C Hamano
2017-02-02  0:14       ` Gumbel, Matthew K
2017-02-02  0:25         ` brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox