Re: [PATCH 7/7] actor: Don't wake up poll() on a timeout if we don't need to

2014-03-27 Thread Chris Leech
On Thu, Mar 27, 2014 at 11:27:07AM -0400, Adam Jackson wrote: > Is there any hope for this patch series to go in? It's rather > unpleasant to have the daemon waking up four times a second when there's > no work to do, it keeps your processor out of deep C states and if you > have enough virtual ma

Antw: [PATCH 7/7] actor: Don't wake up poll() on a timeout if we don't need to

2013-06-11 Thread Ulrich Windl
>>> Chris Leech schrieb am 12.06.2013 um 07:24 in Nachricht <1371014686-22334-8-git-send-email-cle...@redhat.com>: [...] > diff --git a/usr/event_poll.c b/usr/event_poll.c > index f36fec1..dcbb79a 100644 > --- a/usr/event_poll.c > +++ b/usr/event_poll.c > @@ -121,17 +121,37 @@ static int shutdown_

[PATCH 7/7] actor: Don't wake up poll() on a timeout if we don't need to

2013-06-11 Thread Chris Leech
Have actor_poll take an indication from the outer event loop of how many ticks of ACTOR_RESOLUTION have passed, and return how many ticks into the future it would like to be called again. Then in event_loop, try and keep the poll timeouts as long as possible without delaying actors or screwing up