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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 20:01:35 2025 UTC