All of lore.kernel.org
 help / color / mirror / Atom feed
* First Git status takes 40+ minutes, when mounting fileystem/diskimage with 50G GIT repo + 900G of builds articles
@ 2019-08-22 18:02 Saravanan Shanmugham (sarvi)
  2019-08-22 18:13 ` Junio C Hamano
  2019-08-22 19:15 ` Johannes Sixt
  0 siblings, 2 replies; 7+ messages in thread
From: Saravanan Shanmugham (sarvi) @ 2019-08-22 18:02 UTC (permalink / raw)
  To: git



We have a diskimage/fileysystem that has a 50G Git repository + 900G of binary/build articles and untracked files.
When we mount such a diskimage, The verify first “git status” command can take as long 40-50minutes.
Subsequent “git status” finish in under 5-10 seconds.

If I had a diskimage of just the 50G source repository, and I mount and do a “git status” takes around 15 seconds.

How can we optimize this to be faster?

I suspect warming the filesystem caching is in play.
But so is the fact that walk every tree to find untracked files as well. 

My interest in git status is the 50G of sources/repository not the 900G of build generated articles in the workspace?
I have tried adding .gitignore to whole directory trees that contain build artcles, 700G are excluded using git ignores, and that still drops the time for git status to only 30 minutes, which is high.
time git status -uno --ignored=no

Any suggestions on how to root cause and optimize this case?


Thanks,
Sarvi
Occam’s Razor Rules


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

end of thread, other threads:[~2019-08-23  0:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-22 18:02 First Git status takes 40+ minutes, when mounting fileystem/diskimage with 50G GIT repo + 900G of builds articles Saravanan Shanmugham (sarvi)
2019-08-22 18:13 ` Junio C Hamano
2019-08-23  0:32   ` Saravanan Shanmugham (sarvi)
2019-08-22 19:15 ` Johannes Sixt
2019-08-22 19:32   ` Junio C Hamano
2019-08-22 21:29     ` Johannes Sixt
2019-08-22 21:36       ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.