Get the most out of your Centmin Mod LEMP stack
Become a Member

Memcache for the forum and APC for other requests?

Discussion in 'Forum software usage' started by pamamolf, Jul 7, 2014.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    10:22 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi


    On a forum i was wondering if the best solution is to use at the forum configs the memcache and leave the APC to cache the rest?

    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,671
    Local Time:
    5:22 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yes APC Cache or Zend OpCache for PHP files and for forum data caching memcached
     
  3. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    3:22 AM
    Mainline
    10.2
    It thought APC also work for data caching?
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,671
    Local Time:
    5:22 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah it does but APC Cache for data caching has high fragmentation of cache unlike Memcached for data caching
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    10:22 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Memcached always using less than 1 mb on a forum and yes i have been activated on the config file as ips wants ...

    I don't know if this is normal but seems to law if you compare it with APC usage at 70mb about :)

    Ok it is not too active forum but only 700kb about?
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,671
    Local Time:
    5:22 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yes because most forums don't utilise alot of data caching so memcached usage is low

    APC memory usage includes both php opcode cache + data cache, so opcode cached memory usage makes up majority for usage
     
  7. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    3:22 AM
    Mainline
    10.2
    My forum is consuming data caching of memcached from 400mb to 1gb.
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    10:22 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Xenforo or vbulletin?
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,671
    Local Time:
    5:22 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    i believe @RoldanLT is talking about his Xenforo forums

    really depends on forum software and it's plugins/addons

    For vBulletin + vB Optimise Pro I have clients doing nearly 4,000 memcached requests/second and 10 billion cache hits per month with 200-600MB of cached data i.e. http://vbtechsupport.com/1526/

    [​IMG]
     
  10. rdan

    rdan Well-Known Member

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    3:22 AM
    Mainline
    10.2
    Yes on my XenForo Forum.
    XenForo alone takes 300mb to 500MB of the cache and the rest is from ngx_pagespeed :)