Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: APC cache size settings
PostPosted: Sun Jan 22, 2012 2:21 pm 
Offline
Senior Member

Joined: Sun Sep 05, 2010 8:55 pm
Posts: 97
I'm experimenting with APC on a scratch linode, and I'm having trouble changing the cache size.

I wanted to try 15M instead of 30. I added a line 'apc.shm_size=15M' to my apc.ini.

I restarted nginx (pretty sure I didn't need to do that), and restarted php-cgi.

If I run php_info.php or apc.php, they show that it picked up my new size. That is, I can see the 15M entry in the settings. But the cache size is still 30M: apc.php shows that, as do the munin plugins.

Since it's a scratch linode, I also tried rebooting it, just to see if there was some "ordering of service restarts" problem. The problem remains.

Am I doing something wrong, or is there a hard minimum (30) for that value?


Top
   
 Post subject:
PostPosted: Sun Jan 22, 2012 2:26 pm 
Offline
Senior Member

Joined: Sun Sep 05, 2010 8:55 pm
Posts: 97
God damnit.

Twice in one weekend I fiddle for a couple of hours, google to no avail, then immediately after asking for help, find the answer.

I needed to drop the 'M' from the config.

Code:
apc.shm_size=15


works.

Sigh. Carry on!


Top
   
 Post subject:
PostPosted: Sun Jan 22, 2012 2:40 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
ericholtman wrote:
God damnit.

Twice in one weekend I fiddle for a couple of hours, google to no avail, then immediately after asking for help, find the answer.

I needed to drop the 'M' from the config.

Code:
apc.shm_size=15


works.

Sigh. Carry on!


You probably have my.cnf on the brain ;)


Top
   
 Post subject:
PostPosted: Sun Jan 22, 2012 2:43 pm 
Offline
Senior Member

Joined: Sun Sep 05, 2010 8:55 pm
Posts: 97
glg wrote:
You probably have my.cnf on the brain ;)


As a matter of fact, mysql is next on my list of things to "tune" on this linode.

So stay tuned for another question that I'll self-answer immediately after posting.


Top
   
 Post subject:
PostPosted: Sun Jan 22, 2012 7:31 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
ericholtman wrote:
God damnit.

Twice in one weekend I fiddle for a couple of hours, google to no avail, then immediately after asking for help, find the answer.

I needed to drop the 'M' from the config.

Code:
apc.shm_size=15


works.

Sigh. Carry on!


This depends on the version of APC. I have 3.1.9 on one Linode and without the 'M' it throws a warning about the missing M. On my other boxes, APC 3.1.3 behaves as you describe.

So you may want to hold on to that M for after you upgrade :)

_________________
sleddog


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group