Learn about Centmin Mod LEMP Stack today
Register Now

Which opcode cache?

Discussion in 'Other Centmin Mod Installed software' started by Everlind, Jun 3, 2014.

  1. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    7:54 AM
    1.7.1
    /
    Hello,

    it seems that the new version of PHP will have Zend Opcache included; did you benchmark it with the other opcode cache? APC, XCache?


    Which is the better and the more fast for you?

    Thanks!
     
  2. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    2:54 PM
    Mainline
    10.2
    ZendOpcache is already Built-in with PHP 5.5.x
    And it's the most fastest OpCode Cache.
    Never mind APC, it's very outdated.
     
  3. Matt

    Matt Well-Known Member

    929
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    6:54 AM
    1.5.15
    MariaDB 10.2
    Since moving to PHP5.5, I've only even use ZendOpcache.

    Xcache is still very good, but for ease of maintenance, prefer to use ZendOpcache and use Memcached for any session based caching.
     
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    8:54 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    For 5.4 i am using APC :)

    For 5.5 i will wait for benchmarks :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,110
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    4:54 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod .06 defaults to PHP 5.3 + APC Cache 3.13 for it's data caching + opcaching

    Zend OpCache is faster than APC Cache but is for opcaching only. The data caching isn't supported in Zend Opcache, so folks either use Memcached server for data caching or you can try APCu fork which is APC Cache minus opcache for standalone data caching. You can see how I manually installed APCu on Centmin Mod .07 http://community.centminmod.com/thr...a-only-caching-with-php-5-5-zend-opcache.101/

    FYI, Centmin Mod .07 beta and future default to PHP 5.4 + APC Cache 3.1.13 see http://community.centminmod.com/threads/centmin-mod-1-2-3-eva2000-07-preview-highlights.63/ as well as test out .07 beta here http://community.centminmod.com/threads/centmin-mod-07-beta-21-to-stable-status.124/unread
     
  6. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    7:54 AM
    1.7.1
    /
    Hello, I see.

    So, Zend OpCache doesn't have the data caching option, but is possible use Memcached for that, right?

    Regard performance, for PHP 5.4 is better use:

    APC + APCu
    XCache (for both function)
    Zend OpCache + MemCached

    It seems that from PHP 5.4 the best OpCode is Zend OpCache but it doesn't have data caching option. At this point, is better switch to another solution like APC + APCu or XCache, or continue to use Zend OpCache with Memcached?

    Thank you ;)
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,110
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    4:54 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah IF your web application supports it, you can use Zend OpCache for php opcode caching + Memcached caching for data caching or Zend OpCache for php opcode cache + APCu for data caching (unfortunately tested Xenforo and it doesn't support APCu for data caching so using Memcached for data caching).

    As to better for performance all depends on your web apps and the proportion of how much in relies on either or both php opcode caching and data caching. APCu if it's like APC original data caching is faster than Memcached for data caching but subject to more cache fragmentation (google for APC cache fragmentation) compared to Memcached caching for data caching.