Project

General

Profile

Actions

Bug #4421

open

flow manager: using too much CPU during idle (6.0.x backport)

Added by Jeff Lucovsky over 1 year ago. Updated about 2 months ago.

Status:
Assigned
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Less extreme variant of #4096: the new usleep based loops in the flow manager and recycler consume too much CPU time. In busy systems this has been show to be more efficient than the old pthread_condtimed logic, but in lower end systems the usleep approach has too much overhead.

The reason for getting rid of the pthread_condtimed logic was that it would actually wake up millions of times per second on busy systems, leading to lots of overhead.

Perhaps we can make the usleep value configurable. On lower end systems there is no need to wake up frequently. Or optionally bring back the old behavior. Overall I'm not a great fan these kinds of options.


Related issues 1 (0 open1 closed)

Copied from Bug #4379: flow manager: using too much CPU during idleClosedVictor JulienActions
Actions #1

Updated by Jeff Lucovsky over 1 year ago

  • Copied from Bug #4379: flow manager: using too much CPU during idle added
Actions #2

Updated by Victor Julien about 1 year ago

  • Target version changed from 6.0.3 to 6.0.4
Actions #3

Updated by Victor Julien 10 months ago

  • Target version changed from 6.0.4 to 6.0.5
Actions #4

Updated by Victor Julien 5 months ago

  • Target version changed from 6.0.5 to 6.0.6
Actions #5

Updated by Victor Julien 2 months ago

  • Target version changed from 6.0.6 to 6.0.7
Actions #6

Updated by Victor Julien about 2 months ago

  • Subject changed from flow manager: using too much CPU during idle to flow manager: using too much CPU during idle (6.0.x backport)
Actions

Also available in: Atom PDF