{"thread":{"id":"31913","subject":"Git push slowly under 1000M/s network","startedAt":"2012-10-23T06:27:44Z","lastAt":"2012-10-25T05:04:32Z","messageCount":4,"participants":["Joey Jiao","Shawn Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"201721","messageId":"CAKOmCvp23fALGsDe4Ck7ZXpMJmOAq+YWCXPe_xb6GfQcjJi_kQ@mail.gmail.com","threadId":"31913","inReplyTo":null,"subject":"Git push slowly under 1000M/s network","fromName":"Joey Jiao","fromEmail":"joey.jiaojg@gmail.com","sentAt":"2012-10-23T06:27:44Z","receivedAt":"2012-10-23T06:27:44Z","isPatch":false,"sender":{"key":"joey.jiaojg@gmail.com","avatar":null},"body":"Hi Git Listeners,\nI'm facing one problem when pushing to git repository via gerrit port.\nDon't stop to look into the below content, as I doubt it might be a\ngit problem.\n\nThe pushing takes me 7mins~11mins each time every I had git gc on remote.\nThe remote server is 24 core with scsi disk. And the connection is\nwithin 1000M/s intranet.\nThe pushing is only slowly on this kernel project, but faster on other\nandroid projects, takes seconds only.\nI tried on 4 core and 24 core clients to do the push, the time is\nalmost the same. So I think it's not the client problem.\n\nThe command I use as below. I also tried to pushing to git repository\ndirectly, it is also slow, only some seconds benifit. So I think it\nmight be not the gerrit problem.\n$ git push -v ssh://remote_url:29418/kernel/msm.git HEAD:refs/changes/33599\nThe stderr stops at remote: Resolving deltas:   0% (0/2) for 99% of the time.\n\nI added some timestamp in the git source code, Like git version 1.8.0.\nThe receive_status called by send_pack inside send-pack.c takes the\n99% of the time.\n\nIt looks like the client is waiting the pushing result status from\nserver although by checking server side, the real object has already\nbeen upload succeed.\n\nBelow is the log after adding time info.\n$ time git push -v ssh://git.qrd.qualcomm.com:29418/kernel/msm.git\nHEAD:refs/changes/33599 2>&1|tee -a log.txt\nPushing to ssh://git.qrd.qualcomm.com:29418/kernel/msm.git\nerror: Time start packet_flush: Tue Oct 23 14:14:47 2012\n\nerror: Time finish packet_trace: Tue Oct 23 14:14:47 2012\n\nerror: Time finish safe_write: Tue Oct 23 14:14:47 2012\n\nerror: Time start receive_status: Tue Oct 23 14:14:47 2012\n\nremote: Resolving deltas:   0% (0/2)\nremote: (W) afafdad: no files changed, message updated\nerror: Time start packet_read_line: Tue Oct 23 14:24:41 2012\n, len=10\nerror: Time packet_read_line: Tue Oct 23 14:24:41 2012\n, len=22\nerror: Time packet_read_line: Tue Oct 23 14:24:41 2012\n, len=0\nerror: Time finish receive_status: Tue Oct 23 14:24:41 2012\n\nTo ssh://git.qrd.qualcomm.com:29418/kernel/msm.git\n * [new branch]      HEAD -> refs/changes/33599\n\nreal\t9m56.928s\nuser\t0m0.364s\nsys\t0m0.160s\n-- \n-Joey Jiao\n"},{"id":"201726","messageId":"CAKOmCvrn8rs7STwu8jdbwWvre6Gpa9PxvDvtpAM=N_W6=Up5TA@mail.gmail.com","threadId":"31913","inReplyTo":"CAKOmCvp23fALGsDe4Ck7ZXpMJmOAq+YWCXPe_xb6GfQcjJi_kQ@mail.gmail.com","subject":"Re: Git push slowly under 1000M/s network","fromName":"Joey Jiao","fromEmail":"joey.jiaojg@gmail.com","sentAt":"2012-10-23T10:11:50Z","receivedAt":"2012-10-23T10:11:50Z","isPatch":false,"sender":{"key":"joey.jiaojg@gmail.com","avatar":null},"body":"Well, after checked pushing directly to git which takes only 6\nseconds. So it should be not a issue of git in c. But might be an\nissue with jgit or gerrit.\n\n2012/10/23 Joey Jiao <joey.jiaojg@gmail.com>:\n> Hi Git Listeners,\n> I'm facing one problem when pushing to git repository via gerrit port.\n> Don't stop to look into the below content, as I doubt it might be a\n> git problem.\n>\n> The pushing takes me 7mins~11mins each time every I had git gc on remote.\n> The remote server is 24 core with scsi disk. And the connection is\n> within 1000M/s intranet.\n> The pushing is only slowly on this kernel project, but faster on other\n> android projects, takes seconds only.\n> I tried on 4 core and 24 core clients to do the push, the time is\n> almost the same. So I think it's not the client problem.\n>\n> The command I use as below. I also tried to pushing to git repository\n> directly, it is also slow, only some seconds benifit. So I think it\n> might be not the gerrit problem.\n> $ git push -v ssh://remote_url:29418/kernel/msm.git HEAD:refs/changes/33599\n> The stderr stops at remote: Resolving deltas:   0% (0/2) for 99% of the time.\n>\n> I added some timestamp in the git source code, Like git version 1.8.0.\n> The receive_status called by send_pack inside send-pack.c takes the\n> 99% of the time.\n>\n> It looks like the client is waiting the pushing result status from\n> server although by checking server side, the real object has already\n> been upload succeed.\n>\n> Below is the log after adding time info.\n> $ time git push -v ssh://git.qrd.qualcomm.com:29418/kernel/msm.git\n> HEAD:refs/changes/33599 2>&1|tee -a log.txt\n> Pushing to ssh://git.qrd.qualcomm.com:29418/kernel/msm.git\n> error: Time start packet_flush: Tue Oct 23 14:14:47 2012\n>\n> error: Time finish packet_trace: Tue Oct 23 14:14:47 2012\n>\n> error: Time finish safe_write: Tue Oct 23 14:14:47 2012\n>\n> error: Time start receive_status: Tue Oct 23 14:14:47 2012\n>\n> remote: Resolving deltas:   0% (0/2)\n> remote: (W) afafdad: no files changed, message updated\n> error: Time start packet_read_line: Tue Oct 23 14:24:41 2012\n> , len=10\n> error: Time packet_read_line: Tue Oct 23 14:24:41 2012\n> , len=22\n> error: Time packet_read_line: Tue Oct 23 14:24:41 2012\n> , len=0\n> error: Time finish receive_status: Tue Oct 23 14:24:41 2012\n>\n> To ssh://git.qrd.qualcomm.com:29418/kernel/msm.git\n>  * [new branch]      HEAD -> refs/changes/33599\n>\n> real    9m56.928s\n> user    0m0.364s\n> sys     0m0.160s\n> --\n> -Joey Jiao\n\n\n\n-- \n-Joey Jiao\n"},{"id":"201737","messageId":"CAJo=hJuGksy7pzzy7-7eTUxNmtT9qR2xCPxSfYO58_8SohFjxQ@mail.gmail.com","threadId":"31913","inReplyTo":"CAKOmCvp23fALGsDe4Ck7ZXpMJmOAq+YWCXPe_xb6GfQcjJi_kQ@mail.gmail.com","subject":"Re: Git push slowly under 1000M/s network","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2012-10-23T17:09:35Z","receivedAt":"2012-10-23T17:09:35Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"On Mon, Oct 22, 2012 at 11:27 PM, Joey Jiao <joey.jiaojg@gmail.com> wrote:\n> It looks like the client is waiting the pushing result status from\n> server although by checking server side, the real object has already\n> been upload succeed.\n>\n> Below is the log after adding time info.\n> $ time git push -v ssh://git.qrd.qualcomm.com:29418/kernel/msm.git\n> HEAD:refs/changes/33599 2>&1|tee -a log.txt\n...\n> remote: Resolving deltas:   0% (0/2)\n> remote: (W) afafdad: no files changed, message updated\n...\n> real    9m56.928s\n> user    0m0.364s\n> sys     0m0.160s\n\nWhat version of Gerrit are you using?\nHow many changes already exist in this project?\n\nI am fairly certain this is an issue with Gerrit. Which may be better\ndiscussed at http://groups.google.com/group/repo-discuss\n"},{"id":"201842","messageId":"CAKOmCvruvHPmwz1CDbS1pJPgHZXuUP8p-tdeumxLB=ShAdw4Rg@mail.gmail.com","threadId":"31913","inReplyTo":"CAJo=hJuGksy7pzzy7-7eTUxNmtT9qR2xCPxSfYO58_8SohFjxQ@mail.gmail.com","subject":"Re: Git push slowly under 1000M/s network","fromName":"Joey Jiao","fromEmail":"joey.jiaojg@gmail.com","sentAt":"2012-10-25T05:04:32Z","receivedAt":"2012-10-25T05:04:32Z","isPatch":false,"sender":{"key":"joey.jiaojg@gmail.com","avatar":null},"body":"Yes, I believe it's gerrit problem and will discuss there.\nDuring first minutes of restarting gerrit, the pushing becomes quite\nfaster 13s instead.\n\n2012/10/24 Shawn Pearce <spearce@spearce.org>:\n> On Mon, Oct 22, 2012 at 11:27 PM, Joey Jiao <joey.jiaojg@gmail.com> wrote:\n>> It looks like the client is waiting the pushing result status from\n>> server although by checking server side, the real object has already\n>> been upload succeed.\n>>\n>> Below is the log after adding time info.\n>> $ time git push -v ssh://git.qrd.qualcomm.com:29418/kernel/msm.git\n>> HEAD:refs/changes/33599 2>&1|tee -a log.txt\n> ...\n>> remote: Resolving deltas:   0% (0/2)\n>> remote: (W) afafdad: no files changed, message updated\n> ...\n>> real    9m56.928s\n>> user    0m0.364s\n>> sys     0m0.160s\n>\n> What version of Gerrit are you using?\n> How many changes already exist in this project?\n>\n> I am fairly certain this is an issue with Gerrit. Which may be better\n> discussed at http://groups.google.com/group/repo-discuss\n\n\n\n-- \n-Joey Jiao\n"}]}