Re: Seeing high CPU usage during git-upload-pack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I don't see anything private in the mail, so I CC git@vger again. It's
a good thing to keep git@vger in the loop because there will be more
(experienced) people to help you out.

On Wed, May 9, 2012 at 9:37 PM, David Ebbo <david.ebbo@xxxxxxxxx> wrote:
> Thanks Duy for your looking at this.
>
> On Wed, May 9, 2012 at 3:37 AM, Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> wrote:
>>
>> What OS is it run on? What git version?
>>
>
> This is using 1.7.9 on Windows (msysgit).

Ah... msysgit reimplements poll() function, in compat/win32/poll.c. If
it goes rouge, you could get an active loop. But this is just my
suspicion. I don't know anything about msysgit's poll implementation
so I can be completely wrong here.

>> How about stopping upload-pack and see where it stops? There's a main
>> loop in upload-pack.c, create_pack_file() that is only active when
>> data comes. I looked but failed to see how it becomes a busywait loop.
>> Maybe you can put some debugging there.
>>
>> Setting env var GIT_TRACE_PACKET and GIT_DEBUG_SEND_PACK before
>> running upload-pack might also help.
>>
>
> I'll try those env vars, and will debug as needed (I haven't done that
> yet, so I'll need to get set up <g>)
>
> Thanks for the pointers!
-- 
Duy
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]