git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Seeing high CPU usage during git-upload-pack
@ 2012-05-09  7:01 David Ebbo
  2012-05-09 10:37 ` Nguyen Thai Ngoc Duy
  0 siblings, 1 reply; 4+ messages in thread
From: David Ebbo @ 2012-05-09  7:01 UTC (permalink / raw)
  To: git

We’re using git-upload-pack in a simple git server. When the repo is
on a slow share, we’re noticing that git-upload-pack is hugging the
CPU during the whole pack-objects operation.

More details:

- git-upload-pack gets launched (with params git-upload-pack
--stateless-rpc //path/to/repo)
- it itself launches a git process (with params pack-objects --revs
--all --stdout --progress --delta-base-offset). This git process is
the one that does all the disk I/O, but it's not the one using up the
CPU time.
- git-upload-pack appears to be waiting for the git process, and is at
high CPU during that time, suggesting that it's doing some kind of
busy wait. To further test that, I stopped the git process in the
debugger, preventing it from making progress. At that point,
git-upload-pack pegs the CPU forever.

Would someone familiar with the sources be able to comment on this
busy wait behavior, and on whether it could conceivably be done in a
way that doesn’t use up some much CPU?

Thanks,
David

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

end of thread, other threads:[~2012-05-10 20:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-09  7:01 Seeing high CPU usage during git-upload-pack David Ebbo
2012-05-09 10:37 ` Nguyen Thai Ngoc Duy
     [not found]   ` <CAPeUw3HCkKKBP6RnZzR0TYOO0hHtJ4_ma-Je4a-xKhPpNPJhHw@mail.gmail.com>
2012-05-09 15:11     ` Nguyen Thai Ngoc Duy
2012-05-10 20:41       ` David Ebbo

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).