title: PHP upload speeds very spikey/slow
body: <p>I originally posted this over in the Drupal exchange but it was suggested I try here since it seems to be more related to my server, not Drupal.</p>
  
  <p>When uploading files through php, the upload speed can see drastic slow downs. For example, I'm uploading a 400MB video and I'll be getting 10mbps then, suddenly, it drops to less than 100kbps. After some time, it speeds up again. Then it slows down again. And then repeats. There is no consistency as to when this happens. I can get this to replicate with large files and small files but since it is erratic, it's harder to observe on small files. I have not observed this uploading through SCP, so I assume it's not a network issue.</p>
  
  <p>Here is what I know.</p>
  
  <ol>
  <li>It's not my internet connection. I've tried multiple people from different places with the same results.</li>
  <li>Tried on several browsers with the same result.</li>
  <li>Eventually the upload will complete but in a lot of instances, an upload that should take 4 minutes ends up taking 30 or more.</li>
  <li>PHP is set to allow 2GB file uploads. And PECL uploadprogress is installed.</li>
  <li>Though I use Drupal, I've also tried uploading files through a straight-forward php upload form with the same results. So it's not a Drupal issue.</li>
  </ol>
  
  <p>What I think is happening - at some point during the upload process, some sort of buffer is being hit. I really don't even know where to begin looking for that at the server or OS-level</p>
  
  <p>We have plenty of disk space (more than 1TB) and plenty of RAM (24GB)</p>
  
  <p>I'm hoping someone here has experienced similar or can suggest where to begin looking. Thanks for reading!</p>