pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/29044



Synopsis: php4-apc has runtime failures

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

Hi Timo!

hi kim,

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.

yes, thanks, that works.

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

unfortunately, it's written in a very generic manner. nothing special on this 'NetBSD issue'...

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),

that's not what i installed apc for ;)

 or create a custom kernel with higher SHMMAXPGS (for the
default 30MB requested by APC, set SHMMAXPGS to 7680 or higher).

okay, as stated above, this works well for me.

i'd like to request a change to php4-apc's output on installation, which reads:

www0: {7} pkg_info -D php-apc-4.3.10.2.0.4
Information for php-apc-4.3.10.2.0.4:

Install notice:
======================================================================== ===
$NetBSD: MESSAGE.module,v 1.2 2004/11/05 21:50:11 jdolecek Exp $

To enable this module, add the following to /usr/pkg/etc/php.ini:

    extension=apc.so

and make sure extension_dir points to the dir where apc.so is.

Then restart your PHP4-enabled HTTP server to load this module.
======================================================================== ===

i'd recommend sth. like a hint for the SHMMAXPGS increase...

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@localhost
State-Changed-When: Mon, 24 Jan 2005 05:55:19 +0000
State-Changed-Why:
Wait for feedback.

sorry for the late reply, but i) the mail came _after_ pkg/29044 was closed due to lack of feedback, ii) i was in a big lack of spare time to do this :(

regards,

timo




Home | Main Index | Thread Index | Old Index