Re: memcached race condition problem

2010-08-25 Thread dormando
[Quick Fix] Set memcached to only listen to a single interface. example memcached setting: memcached -U 0 -u nobody -p 11222 -t 4 -m 16000 -C -c 1000 -l 192.168.0.1 -v [Reproducing] Use attack script (thanks to mala): http://gist.github.com/522741 w/ -l interface restriction: we have

Re: memcached race condition problem

2010-08-25 Thread Toru Maesaka
+1 Regardless of using pthread's conditional variable or not, the idea is consistent. It's truly awesome that a test script is provided. Great work Mala! and Twittervese for investigating the problem. -Toru -Original Message- From: dormando dorma...@rydia.net Sender:

Re: memcached race condition problem

2010-08-25 Thread dormando
Hey, But if the main thread waits for the conditional variable, who drives the main event loop? Preparing the pipe fd for notifying max conn, and watch it by the event loop should be the way. I should've been more purposefully vague; lets find the easy way to make it wake up faster. Using