big performance boost with memcached / Freebsd
Liquid error: undefined method `login' for nil:NilClass : March 23rd, 2006
I've long been disappointed by memcached performance when dealing with objects bigger than a few kilobytes...
Well not anymore...
Turns out memcached is trying to make use of some TCP options which are meant to boost perfs, but turn out to be counter productive.
Eric Hodel mentions the solution on Fast Memcached on OSX and I'm happy to report the trick does wonders for FreeBSD as well.
All you need to do is undefine TCP_PUSH and recompile.
I ended up turning
into
#include "memcached.h"
into
#include "memcached.h"
#undef TCP_NOPUSH
4 Responses to “big performance boost with memcached / Freebsd”
Sorry, comments are closed for this article.
March 23rd, 2006 at 01:04 PM So are you defining TCP_NOPUSH, undefining TCP_PUSH, or undefining TCP_NOPUSH? I am confused.
March 23rd, 2006 at 04:06 PM kpr, You undefine TCP_NOPUSH, which forces memcached to use TCP_NODELAY. Trix
July 31st, 2007 at 06:10 AM
Hello! Good Site! Thanks you! uszmqmwucd
July 31st, 2007 at 07:33 AM
Thanks for this site! pq.qsvmk.cn u.zfwek.cn ggb.punwg.cn wp.mywev.cn tyvqk.lqwtm.cn szboi.tsdva.cn q.afsyf.cn csket.sryqx.cn af.fizyn.cn njs.fbnqg.cn uz.omemg.cn bh.mywev.cn pdgby.tsdva.cn zc.zlhmj.cn yj.osqkp.cn mjd.axvbe.cn o.hefeb.cn mnjmi.atvfm.cn apihx.hrzkp.cn cr.ypcoj.cn su.rnhmw.cn sgk.scvez.cn rnepf.fqtpq.cn loh.xlerr.cn fdnx.qzuxl.cn vg.mlubj.cn