debugging the server on OS X

Sean Chittenden sean at chittenden.org
Tue Nov 23 13:34:02 PST 2004


> Can you suggest where I should perhaps add further debug statements to 
> the server code to try to find the delay?

It's most certainly a libevent(3) "problem."  kqueue(2) on OS-X is 
crippled from what I can tell.  I think (though I haven't tested this) 
that if you used poll(2) or even select(2), you'd get better 
performance.  There are some environment variables that libevent(3) 
listens to in order to choose what event method to use.  Now, if 
changing that doesn't fix things, then it's probably a problem with 
OS-X's TCP_NOPUSH implementation.  :(  -sc

-- 
Sean Chittenden



More information about the memcached mailing list