Ideal Xcache Configuration ?

semprot

Well-Known Member
#1
This is my current xcache configuration :

Code:
xcache.cacher="On"
xcache.coredump_directory=""
xcache.coredump_type="0"
;xcache.count="10" >> 16
;xcache.count="20" >> 31
xcache.count="49"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.coverager_autostart="On"
xcache.disable_on_crash="Off"
xcache.experimental="Off"
xcache.gc_interval="0"
xcache.mmap_path="/dev/zero"
;xcache.mmap_path="/dev/shm/xcache"
xcache.optimizer="On"
xcache.readonly_protection="Off"
xcache.shm_scheme="mmap"
;xcache.size="4G"
xcache.size="2G"
xcache.slots="1M"
;xcache.slots="64K"
xcache.stat="On"
xcache.test="Off"
xcache.ttl="0"
;xcache.var_count="1"
xcache.var_count="49"
;xcache.var_gc_interval="300"
;xcache.var_gc_interval="0"
xcache.var_gc_interval="900"
;xcache.var_maxttl="0"
xcache.var_maxttl="3600"
xcache.var_namespace=""
xcache.var_namespace_mode="0"
;xcache.var_size="6G"
xcache.var_size="20G"
;xcache.var_slots="1M"
xcache.var_slots="8M"
;xcache.var_ttl="0"
xcache.var_ttl="1800"
Is there any suggestion?
I tried to use "/dev/shm/xcache" as mmap_path, but after few hours, my PHP was crashed.
I think that mmap_path was the cause so i changed back to "/dev/zero".
 

semprot

Well-Known Member
#3
is php suExec enabled ?
xcache is ideal to work with php non-suExec mode
I think yes suexec is enabled. I forget why i enabled suexec. Because you recommend it?

I have tried APC, but in my opinion xcache works better & faster than APC.
Until yesterday when i tried to change some of my xcache settings.
 

NiteWave

Administrator
#6
xcache is ideal to work with suexec daemon mode.

regarding ideal xcache configuration, should work out in this way:
1.monitor xcache admin page, check various statistic data, like hits, memory used
2. base on 1, adjust xcache ini settings.
 
Top