Subject: Re: pkg/29044
To: None <kim@netbsd.org, pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: None <kim@netbsd.org>
List: pkgsrc-bugs
Date: 01/24/2005 05:55:20
Synopsis: php4-apc has runtime failures

Responsible-Changed-From-To: pkg-manager->kim
Responsible-Changed-By: kim@netbsd.org
Responsible-Changed-When: Mon, 24 Jan 2005 05:55:19 +0000
Responsible-Changed-Why:

Hi Timo!

Most likely you didn't increase the SHMMAXPGS value in your kernel,
and it is too low for the default shared memory segment APC wants
to create.

I recommend reading the "CONFIGURING APC" section in the INSTALL
document that comes with APC (/usr/pkg/share/doc/php-apc/INSTALL).

You can either edit your php.ini file to set apc.shm_size to some
lower value (on i386 default SHMMAXPGS of 2048 you have only 8MB
to use), or create a custom kernel with higher SHMMAXPGS (for the
default 30MB requested by APC, set SHMMAXPGS to 7680 or higher).

I am using the following in my kernel config:

options         SYSVSHM         # System V-like memory sharing
# Increase SHMMAXPGS for the benefit of Alternative PHP Cache (APC)
options         SHMMAXPGS=16384 # 2048 pages is the default

Regards,
+ Kim


State-Changed-From-To: open->feedback
State-Changed-By: kim@netbsd.org
State-Changed-When: Mon, 24 Jan 2005 05:55:19 +0000
State-Changed-Why:
Wait for feedback.