debugging the server on OS X

Christopher Schmidt crschmidt at
Tue Nov 23 13:46:10 PST 2004

On Tue, Nov 23, 2004 at 01:34:02PM -0800, Sean Chittenden wrote:
> >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

memcached shows "libevent using: kqueue" on my Mac, running 10.3.6, and 
I don't see this delay at all, so I don't know that it's neccesarily 
just a kqueue problem.

(This is without using the recent patch by avva, running as:
EVENT_SHOW_METHOD=1 memcached -vv -m 128 -p 11211 )

Christopher Schmidt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the memcached mailing list