Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: R.Muilwijk commented