On Fri, Aug 10, 2012 at 01:38:33PM -0400, Ed Maste wrote:
> > We've had good improvements in a similar issue in dpif-linux by
> > switching to use "epoll".  Can kqueue under FreeBSD do something
> > similar?
> 
> Yes, epoll and kqueue basically provide the same functionality.  What
> do you think about incorporating something like libevent to abstract
> that?

It looks like libevent is oriented around the idea of writing your
program as a collection of event handler callbacks, with a fixed main
loop provided by libevent.  It's possible that this leads to faster
programs in practice (certainly in theory, I agree), but it's a major
change from how OVS is structured today.  In addition, my own
experience is that programs structured as callbacks are harder to
understand, maintain, and improve than similar programs structured in
a more linear manner.

(This is based on only a quick skim of the libevent manual, so I may
have missed some other way that libevent can be used.)

I'd rather address performance problems in a more evolutionary way.
If some serious performance problem cannot be addressed that way, then
that's different, but I don't think we've encountered such a problem
yet.

Thanks,

Ben.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to