|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56501 num_seg set incorrectly
Submitted: 2005-08-18 14:01 UTC Modified: 2005-08-19 01:26 UTC
From: richard at designeffect dot com Assigned:
Status: Suspended Package: APC (PECL)
PHP Version: 4.3.10 OS: Fedora Core 1 & Centos 3.5
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-08-18 14:01 UTC] richard at designeffect dot com
APC 3.0.7, installed using --enable-apc-mmap=yes --with-apxs

I could be misinterpeting what is supposed to be happening, 
but the value of num_seg seems to be being set incorrectly 
in the apc_sma_info() array

The config setting in php.ini are:
apc.shm_segments = 2
apc_shm_size = 32

The apc_sma_info() shows:
[num_seg] => 1 
[seg_size] => 33554432

apc.php seems to only show one segment being used as well, 
though I'm not sure if that's because it's getting the wrong 
value from apc_sma_info(), or whether it truly is only using 
one segment.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-19 01:26 UTC]
There is no real reason to use 2 segments in mmap mode though.  The 32M segment limit only applies to the shm mechanism on some operating systems, but since mmap support was added you really should be using a single mmap segment and set it to whatever size you need.  I'll clean up the code a bit eventually to better reflect that, but right now I won't worry too much about it.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 19:01:32 2024 UTC