I had our sysadmin install APC and it tested as slower then before he installed it.

Events happening in the community are now at Drupal community events on www.drupal.org.
mitchelljj's picture

I had our sysadmin install APC and it tested as slower then before he installed it.
Is this possible?

Comments

Check that the APC cache is

brianmercer's picture

Check that the APC cache is large enough to hold all the code. The default 30MB on debian/ubuntu is never enough. Kernel shared memory maximum must also be increased. Which distro? Check apc.php for cache full count.

This

joshk's picture

This is almost certainly the problem. If the cache is too small, then you're shuffling code in/out on every bootstrap, resulting in degraded performance.

Suggested tuning: bump the SHM size way up (say 256MB), go to your site and flush the caches and load/save the admin/build/modules page (heaviest page in all of drupal), and then see how much memory is used in apc.php. You'll want to make the final SHM size that + at least 50%.

which version of drupal...

dublin drupaller's picture

hi mitchell..long shot but which version of drupal are u using? I notice the latest version of apc needs php 5.3 which doesn't play nicely with drupal 6.x

Drupal 6 and PHP 5.3 work

Garrett Albright's picture

Drupal 6 and PHP 5.3 work just fine together. Some contrib modules still have problems (shame on you, Date), but that shouldn't be taken against Drupal itself.

..

dublin drupaller's picture

I agree. it shouldn't be held against drupal, but, I'm not so sure the errors thrown up using drupal 6.x (or pressflow) with php 5.3 is restricted to contrib modules. I stand corrected...just never had the time to dig into that.

dub

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week