All of lore.kernel.org
 help / color / mirror / Atom feed
* Poor push performance with large number of refs
@ 2014-12-10  0:37 brian m. carlson
  2014-12-10  5:41 ` Shawn Pearce
  2014-12-10  9:17 ` Poor push performance with large number of refs Duy Nguyen
  0 siblings, 2 replies; 14+ messages in thread
From: brian m. carlson @ 2014-12-10  0:37 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1647 bytes --]

I have a repository that's just under 2 GiB in size and contains over
20000 refs, with a copy of it on a server.  Both sides are using Git
2.1.2.  If I push a branch that contains a single commit, it takes about
15 seconds to push.  However, if everything is up-to-date, it completes
within 2 seconds.  Notably, HTTPS performs the same as SSH.

Most of the time is spent between the "Pushing to remote machine" and
"Counting objects", running git pack-objects:

  git pack-objects --all-progress-implied --revs --stdout --thin --delta-base-offset --progress

Unfortunately, -vvv doesn't provide any helpful output.  I have some
suspicions what's going on here, but no hard data.  Where should I
be looking to determine the bottleneck?

  brianc no # time git push -vvv remote-machine:/tmp/testcase +HEAD
  Pushing to remote-machine:/tmp/testcase
  Counting objects: 1, done.
  Writing objects: 100% (1/1), 184 bytes | 0 bytes/s, done.
  Total 1 (delta 0), reused 0 (delta 0)
  To remote-machine:/tmp/testcase
   + 5059893...2db9804 HEAD -> test (forced update)
  git push -vvv +HEAD  12.35s user 1.61s system 91% cpu 15.337 total
  
  brianc ok # time git push -vvv remote-machine:/tmp/testcase +HEAD
  Pushing to remote-machine:/tmp/testcase
  To remote-machine:/tmp/testcase
   = [up to date]      HEAD -> test
  Everything up-to-date
  git push -vvv  +HEAD  0.50s user 0.22s system 51% cpu 1.408 total
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2014-12-20 22:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-10  0:37 Poor push performance with large number of refs brian m. carlson
2014-12-10  5:41 ` Shawn Pearce
2014-12-10 23:34   ` brian m. carlson
2014-12-10 23:49     ` [PATCH] push: add remote.pushThin to control thin pack generation brian m. carlson
2014-12-11  0:43       ` brian m. carlson
2014-12-11  1:41     ` Poor push performance with large number of refs Duy Nguyen
2014-12-11  3:09       ` brian m. carlson
2014-12-11  3:46         ` [PATCH] list-objects: mark fewer commits as edges for non-shallow clones brian m. carlson
2014-12-11 10:51           ` Duy Nguyen
2014-12-20 22:18             ` brian m. carlson
2014-12-11 19:13           ` Junio C Hamano
2014-12-11 19:26             ` Junio C Hamano
2014-12-20 19:28               ` brian m. carlson
2014-12-10  9:17 ` Poor push performance with large number of refs Duy Nguyen

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.