Hey all.
I'm not too sure whether this should be filed under the Apache forum, but I reckon it relates more to PHP than Apache.
It's actually a two-part question, both relating to APC:
Question 1 I've been trying to Google some information on this for the past while, and can't seem to come up with anything.
Does anyone know which is better when using APC ([
php.net ]):
- A single segment of (for example) 96MB, or
- 3 segments of 32MB each.
And possibly, under which circumstances each would be preferred? The reason I ask this is I have APC in place on one of my systems, and it's currently running at an available cache size of 512MB. However, the fragmentation on this instance is massive. I'm wondering whether splitting the cache into multiple segments might help.
Question 2 At which point does it become more beneficial (if at all) to start storing cache entries on the file system (in terms of number of cache entries)?
My APC cache currently has more than 15,000 entries in it, and the bulk of them have a key of
dev-________________________________
. I have a feeling that the sheer number of these files is what is causing the cache to become so fragmented (as per question 1). Would anyone please tell me whether or not it would be better to cache these
d_* on the file system, or still keep them in the APC cache (and why, if possible :)).
Thanks!
Geoff