[Bug 915261] [NEW] avahi-daemon: polling with zero timeout

Launchpad Bug Tracker 915261 at bugs.launchpad.net
Fri Jan 13 20:50:36 UTC 2012


You have been subscribed to a public bug:

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)

** Affects: ubuntu-power-consumption
     Importance: Undecided
         Status: New

** Affects: avahi (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: battery-power-consumption
-- 
avahi-daemon: polling with zero timeout
https://bugs.launchpad.net/bugs/915261
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to avahi in Ubuntu.




More information about the foundations-bugs mailing list