![]() |
[solved] High APC Fragmentation but Low Usage
1 Attachment(s)
I have a strange problem, APC fragmentation seems increasing through time, although usage is low.
Apc stats image is attached below. http://www.litespeedtech.com/support...6&d=1355115130 Code:
apc.cache_by_default 1 |
I guess it may due to variable cache. if php script use apc_delete(), then it may cause fragment illustrated in the screenshot. to experiment, you can temporarily disable variable cache to watch the fragment status.
|
1 Attachment(s)
Quote:
However since first post, i've doubled shm size (6gb now), and fragmentation is still ugly. http://www.litespeedtech.com/support...9&d=1355155837 |
did some search, have not found a simple way to disable user variable cache.
for fragment, it's more relating to add/delete cache entry frequently. since you set apc.ttl 0 apc.user_ttl 7200 which add operation can be 0 if shared memory always have free space(in your case). but if php script use apc_delete() to delete cache entry purposely, it will cause fragment. |
Quote:
|
you can search apc_delete() and apc_cas() in php source if these functions exist
any configuration options in your site's php script regarding apc? also change the settings of apc.user_entries_hint 4096 to 10, to 16K(16384) etc, see the status of fragment. |
Quote:
PHP Code:
Code:
apc.cache_by_default 1 |
Update: after i set "apc.user_entries_hint" to higher number, fragmentation was better, i think it is solved. Thanks :)
|
thanks, a good example to discover apc.user_entries_hint behavior which most people(include both of us) may not know of. experience gained :)
|
| All times are GMT -7. The time now is 11:29 AM. |