[Spice-devel] [PATCH 5/7] red_worker: reimplement event loop using poll()

Paolo Bonzini pbonzini at redhat.com
Fri Feb 17 05:34:03 PST 2012


On 02/17/2012 02:18 PM, Alon Levy wrote:
>> > - guaranteed bitrot in the poll() path :)
>> > 
> Yeah, I guess you are right. I'm worried since I don't know the
> difference in performance between epoll and poll

You can assume it to be zero unless you have a lot of descriptors (50 is
probably not enough) and a lot of wakeups (if you wake up once every 10
ms, even spending 0.1 ms to process the 50 descriptors would be 1%).

If it turns out to be a problem, you can always "git revert", I doubt
this part of the code has churn.

Paolo


More information about the Spice-devel mailing list