Libev vs. libevent benchmark (reloaded)

Marc Lehmann schmorp at
Mon Apr 19 01:22:34 CEST 2010

On Tue, Apr 13, 2010 at 03:26:19PM +0200, Gabriel Kerneis <kerneis at> wrote:
> See the attached script.  You might need to tweak it a bit (especially
> the cpufreq-set call) but otherwise, it automates completely the
> benchmark (provided you have the expected tools installed).

As an interesting side-note, it seems libevent-2.0.4 uses the same
trick as libev w.r.t. epoll now, except that it doesn't protect against
the "linux epoll fork bug" (or the "deliberate design", depending on
viewpoint), which explains the many reports I got that libevent-2 went
into busy loops after a fork (which I thought impossible).

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list