Public bug reported: On an idle phone, ofonod is a little bit busy.
With strace I'm seeing messages like "Operation currently not available" being written over a socket (dbus?) at very regular intervals of a few seconds: poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=7, events=POLLIN}, {fd=6, events=POLLIN}], 4, 0) = 1 ([{fd=3, revents=POLLIN}]) sendmsg(6, {msg_name(0)=NULL, msg_iov(2)=[{"l\3\1\1&\0\0\0\216\0\0\0G\0\0\0\6\1s\0\5\0\0\0:1.46\0\0\0"..., 88}, {"!\0\0\0Operation currently not avai"..., 38}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 126 sendmsg(6, {msg_name(0)=NULL, msg_iov(2)=[{"l\3\1\1d\0\0\0\217\0\0\0W\0\0\0\6\1s\0\5\0\0\0:1.46\0\0\0"..., 104}, {"_\0\0\0Method \"Register\" with signa"..., 100}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 204 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=7, events=POLLIN}, {fd=6, events=POLLIN}], 4, -1) = 1 ([{fd=3, revents=POLLIN}]) read(3, "\2\0\0\0\0\0\0\0", 16) = 8 poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=7, events=POLLIN}, {fd=6, events=POLLIN}], 4, -1) = 1 ([{fd=6, revents=POLLIN}]) read(3, 0xbef48b84, 16) = -1 EAGAIN (Resource temporarily unavailable) write(3, "\1\0\0\0\0\0\0\0", 8) = 8 recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"l\1\0\1\24\0\0\0\371\20\0\0n\0\0\0\1\1o\0\6\0\0\0/ril_0\0\0"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 284 recvmsg(6, 0xbef48a98, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable) The health-check tool is showing: Context Switches: PID Process Voluntary Involuntary Total Ctxt Sw/Sec Ctxt Sw/Sec Ctxt Sw/Sec 3871 ofonod 6.00 0.07 6.07 (low) System calls traced: PID Process Syscall Count Rate/Sec 3871 ofonod clock_gettime 38 0.6333 3871 ofonod poll 36 0.6000 3871 ofonod recvmsg 26 0.4333 3871 ofonod read 24 0.4000 3871 ofonod sendmsg 24 0.4000 3871 ofonod restart_syscall 1 0.0167 Total 149 2.4833 So it seems a little bit busy at 0.6Hz regularly polling on poll() and regularly doing reads and sends down a socket (dbus?) at 0.4Hz Although this is not too bad, it still is surprising that it is writing the same messages so frequently and consuming a little bit of CPU and power. ** Affects: ofono (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1221829 Title: ofonod is polling fairly regularly To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1221829/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs