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
#include "memcached.h"
into
#include "memcached.h"
#undef TCP_NOPUSH

4 Responses to “big performance boost with memcached / Freebsd”

  1. kpr Says:
    So are you defining TCP_NOPUSH, undefining TCP_PUSH, or undefining TCP_NOPUSH? I am confused.
  2. trix Says:
    kpr, You undefine TCP_NOPUSH, which forces memcached to use TCP_NODELAY. Trix
  3. lmipaufbte Says:

    Hello! Good Site! Thanks you! uszmqmwucd

  4. kypsdlvacr Says:

    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

Sorry, comments are closed for this article.