Getting epoll working...?

Brad Fitzpatrick brad@danga.com
Thu, 31 Jul 2003 15:12:26 -0700 (PDT)


You're confusing kernel-space and user-space headers.

You need the libc headers to build libevent.

There are no patches you need for libevent.  Just grab libevent-0.7.

The patches you need are for the kernel.  (but get the -lt, level
triggered, ones...)


On Thu, 31 Jul 2003, Alan Kasindorf wrote:

> that's the thing - my patch didn't have an epoll.h in it. I suppose I'm
> using the wrong one? I checked libevent, and it doesn't check for
> anything but sys/epoll.h I have an eventpoll.h files in the
> include/linux/ dir under my kernel tree, but nothing else. I tried
> copying it around, but it didn't work from there, so I'm further
> thinking I have the wrong patch.
>
> Also; is there any ETA on when avva will have the C API? The fires from
> hell are raining down on us to get this project done even though our
> hardware order is MIA. I'll buy you a movie or something? :P
>
> -Alan
>
> Brad Fitzpatrick wrote:
>
> >You don't need to modify libevent at all.  It'll auto-detect epoll if it
> >can find the header files and system call.  If you rebuilt your kernel,
> >you have the system call, but you don't have the headers.
> >
> >Look at BUILD in the memcached distribution.  You have to modify your
> >headers.  Then, when you run libevent's configure, you should see it
> >building with epoll support.
> >
> >Alternatively, you want our memcached static binary?
> >
> >Then, to test your kernel:
> >
> ># EVENT_SHOW_METHOD=1 ./memcached -h
> >
> >and it'll say:
> >
> >libevent using: epoll
> >
> >
> >
> >On Thu, 31 Jul 2003, Alan Kasindorf wrote:
> >
> >
> >
> >>Ok, so I'm trying to get epoll working happily and rapidly running out
> >>of time.
> >>
> >>What patch from *where* actually works with libevent? I patched a 2.4.21
> >>vanilla kernel with the latest 2.4.21 one, it's running fine, but the
> >>header files are not what libevent expects, and from there different
> >>things seem to be named wrong (looking for an epollops struct, etc).
> >>
> >>Did you have to patch libevent to get it to compile?
> >>
> >>I'm going to keep poking at it here/see if I can't use a redhat rpm, but
> >>any insight is greatly welcomed. We're really behind in getting this
> >>project done.
> >>
> >>Thanks,
> >>-Alan
> >>
> >>
> >>
> >>
> >>
>
>
>
>