APC extension RAM usage
-
My box currently runs at 19% RAM usage (out of 512MB). It resides in an office that currently generates little to no traffic because it's 1:30 AM.
I got a look at the running processes : PHP uses almost 50MB or RAM. Running a PHPInfo shows that the APC extension is installed, and running the apc.php script (it's a web interface to the apc cache) shows that APC is using 6.8 MB + 23.2 MB (that it keeps as a buffer). Thats 30 MB.
I realize that APC is beneficial because it creates a more responsive interface and takes the load off the CPU. However, I can imagine how this 30MB of memory could mean alot to someone with, say, 128MB of RAM.
The apc.shm_size setting seems to be the key (shared memory size). Maybe it could be added to the system's advanced settings configuration? Or maybe the default could be reduced to 10 or 15 MB?
Any comments on this?
Thanks -
-
Thanks, we use xcache in HEAD, but assuming that we'll have another release on the RELENG_1 branch, I've dropped this down to 5M (I thought it was low in the first place, oops). All our PHP in /etc/inc and /usr/local/www adds up to just over 4M so this should allow us to still cache pretty much all accessed PHP in memory.
–Bill
-
Nice theme! As it is a customized version of the orignial theme and doesn't show any other logos besides pfSense is there any way you can submit it so we can offer it as download or include it? ;)
-
Of course, I was still working on it - thats why i didnt send it to you guys.
It's an adaptation of the metallic theme. Its a bit smaller in image size and has a more 'corporate' look, maybe we can call it that .. corporate? =P
Thanks for the response on APC, I'm sure this will make a difference.
Are you referring to www.xcache.com's xcache? This seems rather expensive?
-G
-
Yes "Corporate" sounds great!
-
Of course, I was still working on it - thats why i didnt send it to you guys.
It's an adaptation of the metallic theme. Its a bit smaller in image size and has a more 'corporate' look, maybe we can call it that .. corporate? =P
Thanks for the response on APC, I'm sure this will make a difference.
Are you referring to www.xcache.com's xcache? This seems rather expensive?
-G
Nope, http://trac.lighttpd.net/xcache/
–Bill