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 Well-Known Member

    3,113
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    12:34 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    36,054
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    7:34 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yes APC Cache or Zend OpCache for PHP files and for forum data caching memcached
     
  3. rdan

    rdan Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    5:34 AM
    Mainline
    10.2
    It thought APC also work for data caching?
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,054
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    7:34 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yeah it does but APC Cache for data caching has high fragmentation of cache unlike Memcached for data caching
     
  5. pamamolf

    pamamolf Well-Known Member

    3,113
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    12:34 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    36,054
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    7:34 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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 Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    5:34 AM
    Mainline
    10.2
    My forum is consuming data caching of memcached from 400mb to 1gb.
     
  8. pamamolf

    pamamolf Well-Known Member

    3,113
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    12:34 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Xenforo or vbulletin?
     
  9. eva2000

    eva2000 Administrator Staff Member

    36,054
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    7:34 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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]
     
    • Like Like x 2
  10. rdan

    rdan Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    5:34 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 :)
     
..