hybserv needlessly wakes up every 200 microseconds
Bug #821950 reported by
Malcolm Scott
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hybserv (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hybserv (src/sock.c) calls select() with a 200μs timeout in a loop which effectively just repeats the call if no activity was detected. This is a problem for CPU power management (the CPU can't go to sleep even if hybserv appears idle).
This behaviour is present in at least 1.9.2-4.1, i.e. at least in lucid, maverick, natty and oneiric.
To post a comment you must log in.
Here's my simple solution. I've been running with this patch for several months with no problems whatsoever.