Re: questions about apc-configuration

From: Date: Thu, 31 Aug 2006 09:54:43 +0000
Subject: Re: questions about apc-configuration
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4094@lists.php.net to get a copy of this message
On Thu, 31 Aug 2006, Thomas Seifert wrote: > 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?). Mmap doesn't use that value so it's fine to increase it higher. There is no need for multiple segments as it has only a size limit for SHM and yes it gives some overhead. > Does that mean that multiple segments aren't working at the moment > or do I have some configuration error? multiple segments make only sense for SHM... not for mmap. However you could say that for mmap the allocated memory should just be apc.shm_segments * apc.shm_size as that's what I would expect atleast. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.pecl.dev (#4094) next »