php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57214 used memory in mmap mode creates confusion
Submitted: 2006-09-01 05:41 UTC Modified: 2007-02-18 02:19 UTC
From: thomas-lists at mysnip dot de Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 4.4.3 OS: Linux
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: thomas-lists at mysnip dot de
New email:
PHP Version: OS:

 

 [2006-09-01 05:41 UTC] thomas-lists at mysnip dot de
Description:
------------
http://news.php.net/php.pecl.dev/4094

I specified (coming from shm mode) to use
2 shm-segments of 30M size and was very confused to see
only 30M used in mmap mode.
Like Derick said in his post, one would expect that mmap
used 2 x 30M in that configuration, even if it would be 
one segment only.
One shouldn't loose half of the specified memory for apc when switching modes ;).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-18 01:56 UTC] rasmus@php.net
There is absolutely no point in using multiple mmap segments.  The only fix here would be to throw a warning.
 [2007-02-18 02:04 UTC] shire@php.net
Does it make more sense to trow an error or to assume the user wants (apc.shm_segments * apc.shm_size) as suggested?  I would lean towards error just so it's clear.
 [2007-02-18 02:19 UTC] rasmus@php.net
There is now a startup warning if a value other than 1 is seen for this shm_segments in MMAP mode.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 16:01:29 2024 UTC