Ticket #273 (new enhancement)

Opened 4 years ago

Last modified 4 years ago

Add dynamically adjusted poll timeouts to schedulers.

Reported by: jesus Assigned to: jesus
Priority: major Milestone:
Component: noit-core Severity: serious
Keywords: Cc:

Description

There is a max sleep-timeout in each eventer. We have articifially high latency when we do asynch dispatch for single ops.

  • HTTP request arrives (eventer fires)
  • request read
  • event descheduled and asynch job dispatched.
  • job finished and backq's result.
  • no fd events fire, so poll timeout is reached (200ms)
  • backq is consumed, eventer triggered from continuation job and HTTP response sent.

Proposed fix... if events fire, poll timeout is dropped to 0. For each cycle though the eventer that poll times out, add 1ms (up to eventer implementation max), any activity resets to 0.

Change History

04/29/10 15:43:06 changed by jesus

(In [1274]) behaves very nicely on my Mac. refs #273

05/05/10 16:00:11 changed by jesus

(In [1276]) Solaris portion, refs #273