|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-09-23 22:25 UTC] xuefer at 21cn dot com
Description: ------------ the #if introduced in http://cvs.php.net/diff.php/pecl/apc/apc_sma.c?sbt=1&r1=1.8&r2=1.9&ty=h but removed in http://cvs.php.net/diff.php/pecl/apc/apc_sma.c?sbt=1&r1=1.16&r2=1.17&ty=h see also apc_main.c: int apc_module_init() { TSRMLS_FETCH(); /* apc initialization */ #if APC_MMAP apc_sma_init(APCG(shm_segments), APCG(shm_size)*1024*1024, APCG(mmap_file_mask)); #else apc_sma_init(APCG(shm_segments), APCG(shm_size)*1024*1024, NULL); #endif the NULL make apc_sma.c apc_sma_init() always set sma_numseg=1 because: ========= if(!mmap_file_mask || ....... sma_numreg=1 ====cut===== i cannot set sma_numreg in php.ini PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 01:00:02 2025 UTC |
(sorry for my too simple explainatoin) i'm not using MMAP, do i still have anonymous mmap? or do i have shm instead of mmap? i don't go against with any changes about mmap, but should shm be limited to 1 segments? maybe i was wrong, but i failed with: shm_size=60 (failed to create shm) shm_seents=1 OR shm_size=30 shm_seents=2 (apc limit it to 1) in another word, i can't make cache for apc apc_main.c is ok for apc_sma.c: the 1st cvs url looks good, but the 2nd removed it seems wrong. in apc_main.c #if APC_MMAP .... #else apc_sma_init(APCG(shm_segments), APCG(shm_size)*1024*1024, NULL); #endif when compiled without MMAP do u see the NULL? this will hit "if (!mmap_file_mask ||" in apc_sma.c