|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-10-05 14:33 UTC] mtillmann at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 03:00:01 2025 UTC |
Description: ------------ apc.php's charts and info show different results at random on a dev vm that I use alone. Obviously files are cached but the amount of used cache, hits and misses differs at random. More precisely, the number of elements in the blocklists part of the output jumps from 2 to 5. Output on the same instance for two requests: array(4) { ["num_seg"]=> int(1) ["seg_size"]=> float(134217648) ["avail_mem"]=> float(123928136) ["block_lists"]=> array(1) { [0]=> array(2) { [0]=> array(2) { ["size"]=> int(608) ["offset"]=> int(9728536) } [1]=> array(2) { ["size"]=> int(123927504) ["offset"]=> int(10290176) } } } } ---> says ~9mb are used array(4) { ["num_seg"]=> int(1) ["seg_size"]=> float(134217648) ["avail_mem"]=> float(105328560) ["block_lists"]=> array(1) { [0]=> array(5) { [0]=> array(2) { ["size"]=> int(608) ["offset"]=> int(28074992) } [1]=> array(2) { ["size"]=> int(440) ["offset"]=> int(25959000) } [2]=> array(2) { ["size"]=> int(552) ["offset"]=> int(24897352) } [3]=> array(2) { ["size"]=> int(1656) ["offset"]=> int(28071152) } [4]=> array(2) { ["size"]=> int(105325280) ["offset"]=> int(28892400) } } } } ---> says 27mb are used Reproduce code: --------------- <?php //try this a couple of times $mem=apc_sma_info(); echo '<pre>'; var_dump( $mem ); ?> Expected result: ---------------- I expect to get the same results for every call, or at least somewhat similar results Actual result: -------------- completely different values which confuse and annoy me!