Re: questions about apc-configuration
| From: | Thomas Seifert | Date: | Thu, 31 Aug 2006 09:21:25 +0000 |
| Subject: | Re: questions about apc-configuration | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4093@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf wrote:
> Why are you making multiple segments? Just create one big one:
>
> apc.shm_size = 64
>
> -Rasmus
Hello Rasmus,
thanks a lot for your reply.
I'm using this size because of:
cat /proc/sys/kernel/shmmax
33554432
I know, I can rise that limit at the same place but I thought
I would just go with two segments (or is there an overhead of using
multiple segments?).
Does that mean that multiple segments aren't working at the moment
or do I have some configuration error?
Whole config is:
---
extension=apc.so
apc.enabled="1"
apc.shm_segments="2"
apc.shm_size="30"
apc.optimization="0"
apc.num_files_hint="1000"
apc.ttl="86400"
apc.gc_ttl="3600"
apc.cache_by_default="1"
apc.filters=""
apc.mmap_file_mask=""
apc.slam_defense="0"
apc.file_update_protection="2"
apc.stat="1"
---
And the question from my previous message remains, how can I tell it to
use mmap instead?
What are the pros / cons of using mmap or shm?
I know, lots of questions but I haven't found them explained anywhere.
Kind regards,
Thomas Seifert