libevent and epoll
Brad Fitzpatrick
brad@danga.com
Mon, 22 Sep 2003 21:28:55 -0700 (PDT)
It's not a config option. You just patch and it works.
And use our binary, which is built with a libevent with epoll support,
including epoll bugfixes which aren't in 0.7a (the latest libevent version
on the site).
http://www.danga.com/memcached/dist/binaries/linux-x86/memcached-1.1.9-snapshot-dbg.gz
Test it with:
$ EVENT_SHOW_METHOD=1 ./memcached
It should say "Using: epoll" or similar.
On Mon, 23 Sep 2003, Perrin Harkins wrote:
> On Thu, 2003-09-11 at 16:25, Brad Fitzpatrick wrote:
> > You don't need 2.6 for epoll; there's a 2.4 backport of it that works
> > beautifully. It's just a small kernel patch away.
>
> I feel lame asking this, but can anyone give me a pointer on exactly how
> this patch is enabled? I'm running Red Hat's 2.4.20-20.9 kernel, but
> couldn't find any epoll patches that would successfully apply to it, so
> I went and grabbed 2.4.21 from kernel.org and that patched cleanly. Now
> I can't figure out how to enable it in xconfig. One page said I should
> see it under "Character Devices" but I don't see anything that sounds
> remotely likely under there. Is there no additional configuration
> needed with this patch? Any hints?
>
> - Perrin
>
>