php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: richard at designeffect dot com
New email:
PHP Version: OS:

 

 [2005-08-18 14:01 UTC] richard at designeffect dot com
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-19 01:26 UTC] rasmus@php.net
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-2019 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 20:01:38 2019 UTC