Recently i got a project i'm working in financed by a friend. So he gave me access to a 60mbps dedicated connection link and a HP Compaq 8200 Elite.
The HP is just a desktop, but i'm using it as a server, since well... i can't afford a new VPS right now and it got some nice specs.
- Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz;
- 4GB RAM DDR3;
- 500GB HD 7200RPM.
Like i said, a desktop, but with some nice specs. So i installed Nginx, PHP-FPM, Percona's MySQL and APC, to run WordPress, the platform i will use for this project.
Nginx is configured to use microcache, since i find it faster than Varnish. The cache from nginx goes to RAM, using tmpfs. I also use WP-FFPC for "advanced cache", W3 Total Cache for CDN, minify and DB cache. APC Object Cache Backend for object cache and FX Gravatar for gravatar cache, all mounted to RAM.
So it seems like a good setup on my head, but when i started to do load tests, it seems not so great.
On Blitz.io i get 10~20 timeouts at every test i make, and it says i could get 9,699,500 hits/day, max. Pretty good, but problem is: on a low end VPS i run, with 512MB and 1.2GHz 1 core CPU, i get the same results, but without the timeouts.
Only difference is the VPS takes around 250ms to show the content, while the server takes only 60ms, but i think that is because of latency.
Anyway... my whole point here is: why the speed seems better, Blitz.io shows this server can handle the same my VPS handle, even if this server is like, 3x faster?
With Apache ab test, i also got only 15 req/sec... that seems REALLY low, since i see some people getting some insane numbers, even with WordPress.
I wonder if all of this is because my server is a desktop, maybe I/O related? Or network? Could you guys take a look at my settings and see if they are correct, or this is all my setting's fault, please?
Nginx configuration files
- nginx.conf: http://paste.ubuntu.com/1203836/
- fastcgi_params: http://paste.ubuntu.com/1203837/
- /sites-avaiable/default: http://paste.ubuntu.com/1203839/
PHP-FPM configuration files
MySQL configuration files
- my.cnf: http://paste.ubuntu.com/1203845/
So, can anyone help me out, please? I'm still doing tests, trying different settings to see what i can make, but nothing worked so far, been doing this for 2 days :/
Thanks in advance and sorry for my english :)