memcached performance on Mac OS 10.4
Peter Bengtson
peter at peterbengtson.com
Thu Mar 2 17:23:33 UTC 2006
This made all the difference. Thanks!
/ Peter
2 mar 2006 kl. 17.57 skrev Noah M. Daniels:
> Two simple changes:
>
> First, in memcached.c (in the memcached source directory) add
> (anywhere above line 105, which reads #ifdef TCP_NOPUSH) the line:
>
> #undef TCP_NOPUSH
>
> I just added it on the line above the #ifdef line.
>
> Rebuild memcached (just do a make && sudo make install, don't need
> to re-run configure if you've already done it)
>
> then, set the environment variable EVENT_NOKQUEUE to 1
>
> in csh and derivatives: setenv EVENT_NOKQUEUE 1
>
> in sh and derivatives (like bash): export EVENT_NOKQUEUE=1
>
> then start memcached, and it should be fast (it certainly made a
> difference here)
More information about the memcached
mailing list