LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > [Resolved] APC Fragmentation: should I care?

Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-2010, 09:44 AM
gmichels gmichels is offline
Member
 
Join Date: Dec 2008
Posts: 10
Default [Resolved] APC Fragmentation: should I care?

Hi all,

I've been running APC for the last couple of weeks and it's making wonders for my site (IPB forum v3.1).

On busy periods I can see cache fragmentation getting on high values such as 30%-40%.

Here's a sample (non-busy moment) and my config settings:



I've set low TTL settings as a suggestion I've seen on the web.

Should I care about high fragmentation on the cache?

Thanks

Last edited by NiteWave; 10-13-2010 at 05:40 PM..
Reply With Quote
  #2  
Old 10-06-2010, 06:43 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
to reduce the fragmentation, you may try apc.ttl = 0

http://php.net/manual/en/apc.configuration.php
Quote:
apc.ttl integer
The number of seconds a cache entry is allowed to idle in a slot in case this cache entry slot is needed by another entry. Leaving this at zero means that APC's cache could potentially fill up with stale entries while newer entries won't be cached. In the event of a cache running out of available memory, the cache will be completely expunged if ttl is equal to 0. Otherwise, if the ttl is greater than 0, APC will attempt to remove expired entries.
also, try latest APC 3.1.4, to further tune and improve the php's performance.
Reply With Quote
  #3  
Old 10-07-2010, 05:09 AM
gmichels gmichels is offline
Member
 
Join Date: Dec 2008
Posts: 10
Here's the current status, 2 days uptime:



I'm going to try with a zero TTL.

How do I use APC 3.1.4 using the php compiler tool available on the web console?

Thanks
Reply With Quote
  #4  
Old 10-07-2010, 11:17 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
yes, 4.0.17 use APC 3.1.4
Reply With Quote
  #5  
Old 10-13-2010, 05:14 AM
gmichels gmichels is offline
Member
 
Join Date: Dec 2008
Posts: 10
Indeed setting the TTL at 0 helped with the fragmentation numbers, I don't see it above 5% anymore.

When I upgrade to 4.0.17 I'll try the newest APC.

Thanks for your help!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:17 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.