libevent will try to use the best one available at runtime. If you're installing a linux OS that was released in the last 5ish years, it'll have epoll. Just build libevent as normal or install it via package.
You don't need to think to ensure it's using it. -Dormando On Fri, 18 Sep 2009, jim wrote: > > Matt, > > What configures libevent to use one event mechanism from other? e.g. > epoll vs poll vs kqueue > How is this(event mechanism to be used) configured in libevent and when > (build time or run time)? > > Any relavant docs about this will be helpful. > > Thanks > > > > On Sep 18, 1:44 am, Matt Ingenthron <ingen...@cep.net> wrote: > > jim wrote: > > > I want to compile memcache on linux kernel 2.6.30 with epoll. > > > > > Is it already included in kernel? How do i check it? > > > If not then, What do I need for epoll? > > > > I believe it is and has been standard for some time. Well, "man epoll" > > will probably give you an idea. It's probably in a header somewhere as > > well. > > > > > Which is better - epoll or libevent? > > > > libevent uses epoll on Linux. In any event (pardon the pun), libevent > > is a requirement. > > > > > Is there compiled version available for linux? > > > > You'd have to be more specific on both what it is you're looking for and > > what you mean by "linux". Libevent is on most Linux distros. It may > > come under the name "libevent1" mapping to 1.x. I'd recommend using > > whatever tools come with your distro to search. > > > > Good luck, > > > > - Matt >