Closed (won't fix)
Project:
Alternative PHP Cache
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2011 at 17:26 UTC
Updated:
10 Feb 2012 at 08:40 UTC
I have noticed a huge increase in the amount of fragmentation in APC when using this module. My fragmentation stays well under 1% without this module, when using the this module it increases to double figures.
Comments
Comment #1
R.Muilwijk commentedIf your site does alot of cache_clears you will get more fragmentation. It's not really something this module can help.
Comment #2
geerlingguy commentedNot only that... but if your cache size is too small, you'll end up running out of memory and getting a lot of fragmentation, too. You should only cache small things like cache_bootstrap to start, and keep monitoring (a) fragmentation and (b) the total cache size/usage, and then add another bin, and another, etc.
Comment #3
Peter Bowey commentedThe facts are;
I give 1024Mb [1Gb] to APC, and for me
about 85Mb is used for the Cached Files [PHP] [daily average]
and about 8Mb is used for the Cached Variables [DATA]
Average Fragmentation: = 0.09%
In my case, with heaps of memory, I cache many Drupal items to APC
My Linux php.ini (in reference to APC) has the following settings:
APC fragmentation occurs because of:
In some cases, it is better to let the PHP APC TTL purge old data
rather than relying on Drupal [cache] methods.
Comment #4
R.Muilwijk commented