memcached performance

Posted by Ian Holsman Thu, 29 Jun 2006 04:18:00 GMT

two interesting posts arrived on the memcached list which might be interesting to performance people.

The first was a comparison of The fastest lanugage binding on which ‘P’ language performed better. To make a note the PHP version actually uses libmemcache a ‘C’ library which goes a bit of the way to explain the wild disparity in speeds.

The 2nd more interesting one (to me) was the discussion of how Digg switched from using mysql to memcached with v3 of their new interface to handle storing sessions, due to a hardware crash on their mysql server.

others mentioned using InnoDB for this instead of MyISAM, with the biggest issue being clearing out expired sessions (which memcached does for you with less overhead), but storing the sessions in the database still suffered due to OS-contention.

of course with django you can choose either, to cache your stuff.. but the session handling is stored directly in the database .. looks like I have a weekend project ;-)

Posted in  | Tags , , , ,  | 4 comments | no trackbacks

Comments

  1. Avatar Adrian Holovaty said about 4 hours later:

    Note there’s already a patch in Django’s Trac for abstracting Django’s cache backend into several pluggable backends—including memcached. So you might be able to save yourself some work!

  2. Avatar Ian said about 7 hours later:

    doh..  I just did it. what  a waste of a hour ;(

  3. Avatar Ask Bjørn Hansen said about 8 hours later:

    The test looked flawed to me. The Perl results were unreasonably slow. My best guess is that he used OS X and that there’s some bug with Cache::Memcached (the perl module) on OS X. (See my post to the memcached list).

    - ask
  4. Avatar Gustavo Picón said about 18 hours later:

    ask:

    Read again, he used gentoo.

Trackbacks

Use the following link to trackback from your own site:
http://feh.holsman.net/trackbacks?article_id=memcached-performance&day=28&month=06&year=2006

Comments are disabled