Activity log for bug #934117

Date Who What changed Old value New value Message
2012-02-17 11:18:53 Colin Ian King bug added bug
2012-02-17 11:19:17 Colin Ian King description I've noticed that nm-applet is polling at ~10Hz. This seems to occur only when I am either connected to the network (ethernet or wireless). A strace of nm-applet is as follows: recvfrom(3, 0x101e304, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7, events=POLLIN}], 6, 100) = 0 (Timeout) read(4, 0x7fff27127870, 16) = -1 EAGAIN (Resource temporarily unavailable) recvfrom(3, 0x101e304, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7, events=POLLIN}], 6, 0) = 0 (Timeout) read(4, 0x7fff27127870, 16) = -1 EAGAIN (Resource temporarily unavailable) recvfrom(3, 0x101e304, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7, events=POLLIN}], 6, 100) = 0 (Timeout) read(4, 0x7fff27127870, 16) = -1 EAGAIN (Resource temporarily unavailable) recvfrom(3, 0x101e304, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7, events=POLLIN}], 6, 0) = 0 (Timeout) So it seems we have a poll using 100 millisecond timeout and also a 0 millisecond timeout. The 0 millisecond timeout is basically a busy poll which seems a little excessive. The 100 millisecond timeout is the root cause of the 10Hz events/second wakeup. This is causing excessive wakeups which keeps the CPU out of deep C sleep states and hence reduces battery life. Can this be fixed? I've noticed that nm-applet is polling at ~10Hz. This seems to occur only when I am only connected to the network (ethernet or wireless). A strace of nm-applet is as follows: recvfrom(3, 0x101e304, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7, events=POLLIN}], 6, 100) = 0 (Timeout) read(4, 0x7fff27127870, 16) = -1 EAGAIN (Resource temporarily unavailable) recvfrom(3, 0x101e304, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7, events=POLLIN}], 6, 0) = 0 (Timeout) read(4, 0x7fff27127870, 16) = -1 EAGAIN (Resource temporarily unavailable) recvfrom(3, 0x101e304, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7, events=POLLIN}], 6, 100) = 0 (Timeout) read(4, 0x7fff27127870, 16) = -1 EAGAIN (Resource temporarily unavailable) recvfrom(3, 0x101e304, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7, events=POLLIN}], 6, 0) = 0 (Timeout) So it seems we have a poll using 100 millisecond timeout and also a 0 millisecond timeout. The 0 millisecond timeout is basically a busy poll which seems a little excessive. The 100 millisecond timeout is the root cause of the 10Hz events/second wakeup. This is causing excessive wakeups which keeps the CPU out of deep C sleep states and hence reduces battery life. Can this be fixed?
2012-02-17 11:52:46 Martin Pitt bug task added network-manager-applet (Ubuntu)
2012-02-17 11:54:26 Martin Pitt network-manager-applet (Ubuntu): assignee Mathieu Trudel-Lapierre (mathieu-tl)
2012-02-24 21:31:53 Launchpad Janitor network-manager-applet (Ubuntu): status New Confirmed
2012-02-24 22:29:17 Christian Mertes bug added subscriber Christian Mertes
2012-02-28 20:14:06 Mathieu Trudel-Lapierre affects network-manager-applet (Ubuntu) network-manager (Ubuntu)
2012-02-28 20:14:06 Mathieu Trudel-Lapierre network-manager (Ubuntu): importance Undecided High
2012-02-28 20:14:06 Mathieu Trudel-Lapierre network-manager (Ubuntu): status Confirmed In Progress
2012-02-28 20:36:22 Launchpad Janitor branch linked lp:~network-manager/network-manager/ubuntu
2012-03-01 20:40:33 Launchpad Janitor network-manager (Ubuntu): status In Progress Fix Released
2012-03-01 21:48:16 Launchpad Janitor branch linked lp:ubuntu/network-manager
2012-05-11 13:34:19 noname2 ubuntu-power-consumption: status New Fix Released