Re: Memcached set is too slow

2010-03-01 Thread Chaosty
The tests were performed by modifying the set method like this: public static function set($key, $item, $exp = 60) { $benchmark = Profiler::start ('Memory', 'Set: '. $key); $return = self::$instance-set ($key, $item, $exp); Profiler::stop

Re: Memcached set is too slow

2010-03-01 Thread Chaosty
And here is strace ... 0.85 [28b4f1ab] gettimeofday({1667458660, 1681273911}, NULL) = 0 0.13 0.000202 [28b5f2a3] write(9, set b5e03d478da6b7b8e61095fec4eb0..., 8196) = 8196 0.38 0.91 [28b5f2a3] write(9, pr.parent_id = p.parent_id (1)\;s..., 1360) = 1360 0.23

Re: Memcached set is too slow

2010-03-01 Thread Chaosty
sorry my bad full strace is: 0.85 [28b4f1ab] gettimeofday({1667458660, 1681273911}, NULL) = 0 0.13 0.000202 [28b5f2a3] write(9, set b5e03d478da6b7b8e61095fec4eb0..., 8196) = 8196 0.38 0.91 [28b5f2a3] write(9, pr.parent_id = p.parent_id (1)\;s..., 1360) = 1360

Re: Memcached set is too slow

2010-03-01 Thread dormando
What about memcached? Is it running on localhost or over the network? Any chance you could get an strace from the memcached side? Have your test app talk to a separate test instance or something. Is it exactly or close to 0.10s each time? That's suspicious. On Mon, 1 Mar 2010, Chaosty wrote:

Re: Memcached set is too slow

2010-03-01 Thread Chaosty
It runs on the same server, php memcached connects by 127.0.0.1 to it. it close but not the same. i did kill and run clean memcached server, each time it was close to 0.1 sec. I will do strace for memcached later and post the results. On Mar 2, 3:50 am, dormando dorma...@rydia.net wrote: What

Re: Memcached set is too slow

2010-03-01 Thread Matt Ingenthron
Chaosty wrote: It runs on the same server, php memcached connects by 127.0.0.1 to it. it close but not the same. i did kill and run clean memcached server, each time it was close to 0.1 sec. In that case, I totally agree this is suspicious. Just to toss out another idea, it sounds like

Re: Memcached set is too slow

2010-03-01 Thread Chaosty
i would agree but trace shows delay: this one by truss (freebsd strace) 76982: 2.532011750 0.099864927 poll({9/POLLIN},1,-1) = 1 (0x1) it tooks 0.099seconds and this one by strace 0.61 [28b09d6f] poll([{fd=574240058, events=POLLIN|POLLPRI| POLLRDNORM|POLLWRBAND|POLLERR|POLLNVAL|0x6000}], 1,

integrity of memcached cluster

2010-03-01 Thread Jumping
Hi, How to check the integrity of memcached cluster ? If not complete, we can add the lack immediately. Best Regards, Jumping Qu -- Don't tell me how many enemies we have, but where they are! (ADV:Perl -- It's like Java, only it lets you deliver on time and under budget.)