<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>73484</bug_id>
          
          <creation_ts>2011-11-30 13:41:13 -0800</creation_ts>
          <short_desc>Mac slaves take 7+ minutes to upload or download a build</short_desc>
          <delta_ts>2024-07-08 07:39:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>lforschler</cc>
    
    <cc>mrowe</cc>
    
    <cc>ryanhaddad</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>512082</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 13:41:13 -0800</bug_when>
    <thetext>It takes our Mac slaves 7+ minutes to upload or download a build. Testing with curl shows that it can be done in under 1 minute. We should figure out how to make this faster!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512083</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 13:41:48 -0800</bug_when>
    <thetext>We could use curl for downloading. But we need some better solution for uploading. Mark suggests that we figure out what it is about Buildbot that is going so slowly, fix it, and upstream our fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512090</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 13:45:21 -0800</bug_when>
    <thetext>Looks like buildbot transfers files in 16kb blocks. Maybe a different block size would be faster?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512150</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 14:48:45 -0800</bug_when>
    <thetext>I set up a master and slave on the same machine and was able to transfer one of the archives in 24 seconds with the 16KB block size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512155</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 14:51:25 -0800</bug_when>
    <thetext>cp for the same file takes 2.8 seconds, while scp takes 7 seconds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512158</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 14:52:18 -0800</bug_when>
    <thetext>Mark noticed that the buildbot process on build.webkit.org is taking up &gt;50% CPU pretty much constantly. He also thinks buildbot is single-threaded, so if we&apos;re spending lots of time servicing web requests (e.g.) then we won&apos;t have time to service upload requests very frequently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512163</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 14:55:12 -0800</bug_when>
    <thetext>According to &lt;http://trac.buildbot.net/ticket/2055#comment:8&gt;, &quot;Buildbot makes heavier use of threads in 0.8.4 and above&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512165</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 14:59:15 -0800</bug_when>
    <thetext>…though looking at the changes since 0.8.3 (the version we&apos;re currently using), the only additional use of threads seems to be when interacting with the database.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512170</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 15:07:42 -0800</bug_when>
    <thetext>If Mark is right, it seems like it&apos;s going to be hard to make buildbot do the transfers any faster. So maybe we need to do them some other way.

Using curl for downloads is super easy. We could use it for uploads, too, if we created a URL to which we could POST builds. Then we&apos;d just have to handle authentication.

I&apos;m working on teaching buildbot how to use htdigest files for bug 73353. Maybe we could change passwords.json to an htdigest file and use that for authentication with the upload URL?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512171</commentid>
    <comment_count>9</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 15:09:06 -0800</bug_when>
    <thetext>Just using curl for downloads would speed up the test bots quite a bit. And presumably it would lessen the CPU load on the master too. We should try that first and see if the uploads get any faster for free!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512180</commentid>
    <comment_count>10</comment_count>
      <attachid>117285</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 15:24:49 -0800</bug_when>
    <thetext>Created attachment 117285
Use curl for downloading builds to test slaves</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512185</commentid>
    <comment_count>11</comment_count>
      <attachid>117285</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-11-30 15:27:38 -0800</bug_when>
    <thetext>Comment on attachment 117285
Use curl for downloading builds to test slaves

I&apos;ll land this tomorrow morning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512710</commentid>
    <comment_count>12</comment_count>
      <attachid>117285</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-12-01 05:51:55 -0800</bug_when>
    <thetext>Comment on attachment 117285
Use curl for downloading builds to test slaves

Landed as r101662 with a followup in r101663.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512711</commentid>
    <comment_count>13</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-12-01 05:52:00 -0800</bug_when>
    <thetext>Hooray, down to 40 seconds using curl: http://build.webkit.org/builders/Lion%20Intel%20Debug%20%28Tests%29/builds/1537/steps/download-built-product</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>512712</commentid>
    <comment_count>14</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-12-01 05:53:30 -0800</bug_when>
    <thetext>It isn&apos;t clear this has had a huge effect on CPU usage on the master though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>524007</commentid>
    <comment_count>15</comment_count>
      <attachid>117285</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-12-19 10:49:47 -0800</bug_when>
    <thetext>Comment on attachment 117285
Use curl for downloading builds to test slaves

Cleared Mark Rowe&apos;s review+ from obsolete attachment 117285 so that this bug does not appear in http://webkit.org/pending-commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044949</commentid>
    <comment_count>16</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-07-06 13:58:01 -0700</bug_when>
    <thetext>@Aakash &amp; @Ryan - anything to do here, or we can close this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2045073</commentid>
    <comment_count>17</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2024-07-08 07:39:24 -0700</bug_when>
    <thetext>We don&apos;t download build product from buildbot server anymore (we upload/download it to/from S3).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>117285</attachid>
            <date>2011-11-30 15:24:49 -0800</date>
            <delta_ts>2011-12-19 10:49:47 -0800</delta_ts>
            <desc>Use curl for downloading builds to test slaves</desc>
            <filename>bug-73484-20111130182448.patch</filename>
            <type>text/plain</type>
            <size>3597</size>
            <attacher name="Adam Roben (:aroben)">aroben</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTAxNTM0CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggN2QyNjIxNmM4NzllMmZlOTA2M2JhOGFhOTkwYzAxODNl
MzBiZWViNi4uYWM4Nzg3NGZjNGQ3ZTBmNzM2ODUyYmEyZDk2ZjlhMDFhNTc2ZDE2NSAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSw1ICsxLDMw
IEBACiAyMDExLTExLTMwICBBZGFtIFJvYmVuICA8YXJvYmVuQGFwcGxlLmNvbT4KIAorICAgICAg
ICBVc2UgY3VybCBmb3IgZG93bmxvYWRpbmcgYnVpbGRzIHRvIHRlc3Qgc2xhdmVzCisKKyAgICAg
ICAgQnVpbGRib3QncyBidWlsdC1pbiBmaWxlIHRyYW5zZmVyIGNhcGFiaWxpdGllcyBhcmUgdHJh
bnNmZXJyaW5nIGZpbGVzIG11Y2ggbW9yZSBzbG93bHkgdGhhbgorICAgICAgICBjdXJsIGRvZXMu
IFRoaXMgc2VlbXMgdG8gYmUgZHVlIHRvIGEgY29tYmluYXRpb24gb2YgYnVpbGRib3QgYmVpbmcg
c2luZ2xlLXRocmVhZGVkIChhbmQgdGh1cworICAgICAgICBvZnRlbiBidXN5IHNlcnZpY2luZyB3
ZWIgcmVxdWVzdHMsIGV0Yy4pIGFuZCB1c2luZyBhbiBJUEMgbWVjaGFuaXNtIHdpdGggZmFpcmx5
IGhpZ2gKKyAgICAgICAgb3ZlcmhlYWQgKGNvdXJ0ZXN5IG9mIHRoZSBUd2lzdGVkIGZyYW1ld29y
aykuCisKKyAgICAgICAgRXZlbnR1YWxseSB3ZSdkIGxpa2UgdG8gbWFrZSBCdWls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