I have a Linode 512 and a Linode 1024.
512 is in Atlanta. 1024 is in Newark.
They are both running Unbuntu 10.04 with nginx + apc + memcached + php + mysql. Same installations, same versions, same config files, same database.
I setup a test PHP script that does some DB reads/writes. I then ran Apache Benchmark ("ab") against both Linodes. There are big differences between the outcomes.
The 512 is outperforming the 1024 by a factor of 2 or more consistently.
Why is this? Are my neighbors on the 1024 hurting my performance? Or does the Newark datacenter run older hardware or have other latencies?
I ran both ab tests from the same Media Temple server which I believe is in Virginia.
Here are the results.
Linode 512
Code:
Server Software: nginx
Server Hostname: 66.228.62.177
Server Port: 80
Document Path: /test.php
Document Length: 3843 bytes
Concurrency Level: 200
Time taken for tests: 10.373 seconds
Complete requests: 4617
Failed requests: 3280
(Connect: 0, Length: 3280, Exceptions: 0)
Write errors: 0
Keep-Alive requests: 0
Total transferred: 19718113 bytes
HTML transferred: 18240353 bytes
Requests per second: 461.68 [#/sec] (mean)
Time per request: 433.198 [ms] (mean)
Time per request: 2.166 [ms] (mean, across all concurrent requests)
Transfer rate: 1925.43 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 14 21 139.5 15 3015
Processing: 30 351 576.4 270 9815
Waiting: 30 351 576.5 269 9815
Total: 46 373 592.3 285 9836
Linode 1024Code:
Server Software: nginx
Server Hostname: 173.255.232.118
Server Port: 80
Document Path: /test.php
Document Length: 3857 bytes
Concurrency Level: 200
Time taken for tests: 10.132372 seconds
Complete requests: 621
Failed requests: 520
(Connect: 0, Length: 520, Exceptions: 0)
Write errors: 0
Keep-Alive requests: 0
Total transferred: 2655233 bytes
HTML transferred: 2456193 bytes
Requests per second: 61.29 [#/sec] (mean)
Time per request: 3263.244 [ms] (mean)
Time per request: 16.316 [ms] (mean, across all concurrent requests)
Transfer rate: 255.91 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 7 7 0.5 7 9
Processing: 349 1656 1416.8 973 9577
Waiting: 347 1655 1416.8 972 9577
Total: 356 1663 1416.9 980 9585
UPDATE:
It appears that everything is slower with the 1024. It takes longer to SFTP files, SSH to the box, etc.