1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Playing the VPS lottery.

Discussion in 'Off Topic' started by rainmotorsports, Oct 11, 2014.

  1. rainmotorsports

    rainmotorsports Well-Known Member

    So I have been hosting with @WSWD for almost 6 months now, but our original plan was always to host with our gaming provider. The other admins like having everything under one control panel, even if they aren't going to be able to administer the server.

    So we figured we would try with 1GB of ram instead of 2 and cut the cost back as well. Only using 190 to 330mb of ram with the current server, though a little mysql configuration to take advantage of more is also in order. Switched from CentOS 6.5 to 7, PHP 5.3 to 5.6 and from MySQL 5.5 to Percona Server 5.6.

    The only thing was I noticed it was slower, so I benched it a tiny bit and after checking what CPU we had I knew why. So I played the VPS lottery and moved the machine to another location for a random selection of servers. Got almost the same CPU we have now (Sandy Bridge versus Ivy Bridge).

    upload_2014-10-11_4-35-31.png

    The switch to PHP 5.6 surely helps a bit. I don't think with the limited ram, current configuration the sql server is all that different. But I had trouble actually installing the mysql bench I was going to use, so I haven't gotten anything but a real world look at it.
     
    WSWD and Glockie like this.
  2. WSWD

    WSWD Well-Known Member

    It actually seems like the biggest improvement is coming from CentOS7. Here is a test on the same server as you with the exact same specs, only running CentOS7. Noticeable improvement without even upgrading the PHP to 5.6.1.


    Same spec VPS (CentOS 7)
    --------------------------------------
    | PHP BENCHMARK SCRIPT |
    --------------------------------------
    Start : 2014-10-11 21:47:30
    Server :
    PHP version : 5.4.16
    Platform : Linux
    --------------------------------------
    test_math : 1.002 sec.
    test_stringmanipulation : 1.063 sec.
    test_loops : 0.670 sec.
    test_ifelse : 0.564 sec.
    --------------------------------------
    Total time: : 3.299 sec.




    Same spec VPS only on E3-1245v3 (CentOS 7)

    --------------------------------------
    | PHP BENCHMARK SCRIPT |
    --------------------------------------
    Start : 2014-10-11 22:01:12
    Server :
    PHP version : 5.4.16
    Platform : Linux
    --------------------------------------
    test_math : 0.780 sec.
    test_stringmanipulation : 0.805 sec.
    test_loops : 0.560 sec.
    test_ifelse : 0.354 sec.
    --------------------------------------
    Total time: : 2.499 sec.




    E5-1650v1 (CentOS 6)

    --------------------------------------
    | PHP BENCHMARK SCRIPT |
    --------------------------------------
    Start : 2014-10-11 15:02:29
    Server :
    PHP version : 5.4.30
    Platform : Linux
    --------------------------------------
    test_math : 1.170 sec.
    test_stringmanipulation : 1.241 sec.
    test_loops : 0.730 sec.
    test_ifelse : 0.598 sec.
    --------------------------------------
    Total time: : 3.739 sec.
     
    euantor likes this.
  3. eva2000

    eva2000 Well-Known Member

    nope that php script is more cpu dependent for both clock speed (single threaded) and the architecture although there are other factors that can slow it down too (type of virtualization deployed etc)

    i.e. Intel Xeon v3 > v2 > v1

    this is Xeon E3-1240v3 with CentOS 6.5 64bit with Centmin LEMP stack
    Code:
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2014-10-12 06:17:10
    Server : @
    PHP version : 5.6.1
    Platform : Linux
    --------------------------------------
    test_math                 : 0.826 sec.
    test_stringmanipulation   : 0.840 sec.
    test_loops                : 0.602 sec.
    test_ifelse               : 0.375 sec.
    --------------------------------------
    Total time:               : 2.643 sec.
    this is same clock speed but older generation Xeon E3-1245v2 with CentOS 6.5 64bit with Centmin LEMP stack
    Code:
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2014-10-12 06:23:07
    Server : @
    PHP version : 5.6.1
    Platform : Linux
    --------------------------------------
    test_math                 : 0.988 sec.
    test_stringmanipulation   : 1.040 sec.
    test_loops                : 0.671 sec.
    test_ifelse               : 0.557 sec.
    --------------------------------------
    Total time:               : 3.256 sec.
    If you like benchmarking VPS and servers, check out my centminmodbench.sh script at http://bench.centminmod.com/ :)

    sample benchmark output posted at https://community.centminmod.com/threads/centminmodbench-sh-for-dedicated-servers.1394/#post-7824
     
    Last edited: Oct 12, 2014
    SneakyDave likes this.

Share This Page