I've so far added cache_bootstrap and cache_libraries for one of my sites, in settings.php, as I know those two caches change very infrequently, and are accessed on most or all page requests.
I don't have enough experiential knowledge of Drupal's core caches (and some other common caches)—which ones would be good candidates for APC or not...
I have to limit my memory consumption, and opcode caches are already to about 80 MB on average (for all my sites, a few D6 multisite, a few D7). With the two bins I mention above, there are just 2 MB extra added... what would be some other good cache bins to consider including in my configuration?
Also, this might be a good thing to put a little more into a Wiki/docs or the README.txt file (right now the readme isn't entirely clear, as it seems to suggest first adding ALL cache bins, which would, in most cases, cause very bad performance due to fragmentation/invalidation.
Comments
Comment #1
Peter Bowey CreditAttribution: Peter Bowey commentedAdding ALL cache bins,to APC works very well - BUT it will take a lot of memory.
I have allocated 'all Drupal cache* to APC bins', but I have allowed APC 1024Mb's.
Fragmentation occurs when APC space is limited, and/or there a lot of deletes.
My settings.php for this:
My fragmentation level holds at a average of 0.20%
Notes: I also use a modified session cache (sim to memcache-session.inc).
In general, you must double apc.shm_size in relation to APC's highest reported Memory;
that is take your allocated php.ini memory value and then double it for APC (apc.shm_size)!
See this link for cache type performance compare :-> http://www.mysqlperformanceblog.com/2006/08/09/cache-performance-compari...
Some interesting 'reports / bugs' from the PECL APC developer site:
Comment #2
R.Muilwijk CreditAttribution: R.Muilwijk commentedMost effective are the ones which do not change often so cache, cache_bootstrap, cache_tokens etc.