RE: [PECL-DEV] Re: APC 2.0.4
| From: | Shannon Werb | Date: | Tue, 20 Jul 2004 20:25:39 +0000 |
| Subject: | RE: [PECL-DEV] Re: APC 2.0.4 | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-1010@lists.php.net to get a copy of this message | ||
>
> On Tue, 20 Jul 2004, Shannon Werb wrote:
> > > Shannon Werb wrote:
> > > > I am running APC 2.0.4 on FreeBSD 4.7, Apache 1.3.27,
> PHP 4.3.7.
> > > > I have a few questions about configuration options. If there
> > > is a link
> > > > to documentation somewhere I am happy to read it I just
> can't find
> > > > it... :)
> > >
> > > Did you look at
> > > http://cvs.php.net/co.php/pecl/apc/INSTALL ?
> >
> > Ahh, this is helpful, I only looked at the INSTALL file in the
> > distributed tar which was slightly different? At any rate,
> this helps
> > me identify what all the configuration options are and how to use
> > them. I am still a bit stumped on the mmap option.
> >
> > I have configured APC with mmap support, and turned it on using
> > /tmp/apc.XXXXXX as the configuration. I have not seen an
> "out of memory"
> > message in my error log now for a few days but I can't figure out
> > where the mmap memory is allocated. I had assumed based
> upon the text
> > that it would be a file in the /tmp directory, but none are there.
> > Could this be a FreeBSD thing as to how it implements mmap support?
>
> No, not really. It is a regular file-backed mmap, except I
> unlink the file from the filesystem right after creating it
> to gain automatic cleanup in case of a crash. Have a look at
> the comments and code in apc_mmap.c for the complete
> explanation of how it works.
Damn, should have looked there first! Thanks, heading there now to
review...
>
> > apc.shm_segments=10
> > apc.relative_includes=1
> > apc.shm_size=10
> > apc.ttl=900 <-- I don't think this is supported
> apc.idle=900 <-- I
> > don't think this is supported
> > apc.check_mtime=1
> > apc.mmap_file_mask=/tmp/apc.XXXXXX
> >
> > Where can I get more information on the storage of my mmap requests
> > and how can I confirm that I am actually caching?
>
> Write yourself a little script that uses apc_cache_info() and
> apc_sma_info(). I have a simple one you can use here:
>
> http://lerdorf.com/apc.phps
Very nice! Exactly what I was looking for!!!
Curious, does the cache get cleared with a "graceful" to apache??? I guess
I can test this myself can't I?
>
> You can have a look at it in action at:
>
> http://lerdorf.com/apc.php
>
> -Rasmus
Very nice job on the product, I am very pleased with it thus far!
Regards,
Shannon
Battcave.com Web Hosting
http://www.battcave.com/
support@battcave.com
>