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

Martin Pitt martin.pitt at ubuntu.com
Fri Jan 13 20:51:26 UTC 2012


Reproduced here.

** Package changed: ubuntu => avahi (Ubuntu)

** Changed in: avahi (Ubuntu)
       Status: New => Triaged

** Changed in: ubuntu-power-consumption
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to avahi in Ubuntu.
https://bugs.launchpad.net/bugs/915261

Title:
  avahi-daemon: polling with zero timeout

Status in The Ubuntu Power Consumption Project:
  Triaged
Status in “avahi” package in Ubuntu:
  Triaged

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-consumption/+bug/915261/+subscriptions




More information about the foundations-bugs mailing list