Want to subscribe to topics you're interested in?
Become a Member

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:
    12:50 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. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    7:50 AM
    1.11
    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 Moderator Staff Member

    697
    322
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +449
    Local Time:
    11:50 PM
    1.7.1
    MariaDB 10
    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 Well-Known Member

    2,819
    251
    83
    May 31, 2014
    Ratings:
    +445
    Local Time:
    1:50 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    For 5.4 i am using APC :)

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

    eva2000 Administrator Staff Member

    30,902
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    9:50 AM
    Nginx 1.13.x
    MariaDB 5.5
    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:
    12:50 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

    30,902
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    9:50 AM
    Nginx 1.13.x
    MariaDB 5.5
    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.