avahi-daemon: polling with zero timeout

Bug #915261 reported by Colin Ian King
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
The Ubuntu Power Consumption Project
Triaged
High
Unassigned
avahi (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

avahi-daemon on a network with many clients is doing poll() with a zero timeout and timing out immediately. This looks like a busy wait to me.

poll([{fd=6, events=POLLIN}, {fd=17, events=POLLIN}, {fd=16, events=POLLIN}, {fd=15, events=POLLIN}, {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, {fd=12, events=POLLIN}, {fd=11, events=POLLIN}, {fd=10, events=POLLIN}, {fd=8, events=POLLIN}], 10, 0) = 0 (Timeout)
write(7, "W", 1) = 1
write(7, "W", 1) = 1
read(6, "WW", 10) = 2
poll([{fd=6, events=POLLIN}, {fd=17, events=POLLIN}, {fd=16, events=POLLIN}, {fd=15, events=POLLIN}, {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, {fd=12, events=POLLIN}, {fd=11, events=POLLIN}, {fd=10, events=POLLIN}, {fd=8, events=POLLIN}], 10, 0) = 0 (Timeout)
write(7, "W", 1) = 1
write(7, "W", 1) = 1
read(6, "WW", 10) = 2
poll([{fd=6, events=POLLIN}, {fd=17, events=POLLIN}, {fd=16, events=POLLIN}, {fd=15, events=POLLIN}, {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, {fd=12, events=POLLIN}, {fd=11, events=POLLIN}, {fd=10, events=POLLIN}, {fd=8, events=POLLIN}], 10, 0) = 0 (Timeout)
write(7, "W", 1) = 1
write(7, "W", 1) = 1
read(6, "WW", 10) = 2
poll([{fd=6, events=POLLIN}, {fd=17, events=POLLIN}, {fd=16, events=POLLIN}, {fd=15, events=POLLIN}, {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, {fd=12, events=POLLIN}, {fd=11, events=POLLIN}, {fd=10, events=POLLIN}, {fd=8, events=POLLIN}], 10, 0) = 0 (Timeout)

tags: added: battery-power-consumption
Revision history for this message
Martin Pitt (pitti) wrote :

Reproduced here.

affects: ubuntu → avahi (Ubuntu)
Changed in avahi (Ubuntu):
status: New → Triaged
Changed in ubuntu-power-consumption:
status: New → Triaged
Martin Pitt (pitti)
Changed in ubuntu-power-consumption:
importance: Undecided → High
Changed in avahi (Ubuntu):
importance: Undecided → Medium
Revision history for this message
noname2 (noname2-deactivatedaccount) wrote :

any news?

Revision history for this message
Colin Ian King (colin-king) wrote :

apparently no news.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.