The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Fast memcached on OS X

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eric Hodel

Posts: 660
Nickname: drbrain
Registered: Mar, 2006

Eric Hodel is a long-time Rubyist and co-founder of Seattle.rb.
Fast memcached on OS X Posted: Mar 6, 2006 6:27 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eric Hodel.
Original Post: Fast memcached on OS X
Feed Title: Segment7
Feed URL: http://blog.segment7.net/articles.rss
Feed Description: Posts about and around Ruby, MetaRuby, ruby2c, ZenTest and work at The Robot Co-op.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eric Hodel
Latest Posts From Segment7

Advertisement

For those of you experiencing a painfully slow memcached on OS X, Noah M. Daniels wrote up instructions on making memcached fast for OS X:

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)

Read: Fast memcached on OS X

Topic: Happy Birthday Jason! Previous Topic   Next Topic Topic: SwitchTower C&D

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use