DrCru Posted August 26, 2010 Posted August 26, 2010 Hi all, I just tried to run buildInDev.php and received an error: Warning: xcache_set(): xcache.var_size is either 0 or too small to enable var data caching in ... I went to check my xcache stats and found that I've been getting a lot of misses! I have 512MB of RAM and I seem to have 4 Intel® Xeon® CPU L5520 @ 2.27GHz running on my VPS. Here is the current xcache config: [xcache] xcache.shm_scheme = "mmap" xcache.size = 128M xcache.count = 8 xcache.slots = 8K xcache.ttl = 3600 xcache.gc_interval = 300 ; Same as aboves but for variable cache ; If you don't know for sure that you need this, you probably don't xcache.var_size = 6M xcache.var_count = 1 xcache.var_slots = 8K xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300 ; N/A for /dev/zero xcache.readonly_protection = Off xcache.mmap_path = "/dev/zero" xcache.cacher = On xcache.stat = On Can anyone give me any suggestions on what I should change to get less misses? Thanks
DrCru Posted August 28, 2010 Author Posted August 28, 2010 Hi all, I just tried to run buildInDev.php and received an error: Warning: xcache_set(): xcache.var_size is either 0 or too small to enable var data caching in ... I went to check my xcache stats and found that I've been getting a lot of misses! I have 512MB of RAM and I seem to have 4 Intel® Xeon® CPU L5520 @ 2.27GHz running on my VPS. Here is the current xcache config: [xcache] xcache.shm_scheme = "mmap" xcache.size = 128M xcache.count = 8 xcache.slots = 8K xcache.ttl = 3600 xcache.gc_interval = 300 ; Same as aboves but for variable cache ; If you don't know for sure that you need this, you probably don't xcache.var_size = 6M xcache.var_count = 1 xcache.var_slots = 8K xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300 ; N/A for /dev/zero xcache.readonly_protection = Off xcache.mmap_path = "/dev/zero" xcache.cacher = On xcache.stat = On Can anyone give me any suggestions on what I should change to get less misses? Thanks Just an update, apparently the percentage of misses on the cache isn't too bad. Still don't know how to resolve the error I got when trying to run buildInDev.php though.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.