It seems like downloading a file via `/files/data/...`, the download is incredibly slow. Not entirely too sure why, or where to look:
{F711661}
{F711683}
I know our connection to the phab instance we have is much faster, considering it takes only a few seconds to pull a git repo ten times the size of the image above.
==
Few notes: Files are stored on the server via the file backing store on their own volume. During these tests the volume was not busy/loaded.
```
❯❯❯ hdparm -Tt /dev/xvdb
/dev/xvdb:
Timing cached reads: 18796 MB in 1.99 seconds = 9440.13 MB/sec
Timing buffered disk reads: 1978 MB in 3.00 seconds = 659.04 MB/sec
❯❯❯ hdparm -Tt --direct /dev/xvdb
/dev/xvdb:
Timing O_DIRECT cached reads: 394 MB in 2.00 seconds = 196.73 MB/sec
Timing O_DIRECT disk reads: 2350 MB in 3.00 seconds = 782.81 MB/sec
```
We are running on `Ubuntu 14.04`, `PHP 5.5.9-1`, `MariaDB 10.0.20` and `nginx/1.4.6`.
We are serving PHP via php-fpm, here's the nginx config:
```
server {
server_name phabricator.int;
root /var/www/phab/phabricator/webroot;
client_max_body_size 1g;
location / {
index index.php;
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
}
location = /favicon.ico {
try_files $uri =204;
}
location /index.php {
fastcgi_pass php;
fastcgi_index index.php;
fastcgi_buffers 16 64k;
#required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
#variables to make the $_SERVER populate in PHP
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
}
}
```