5 Replies Latest reply on Oct 8, 2014 3:02 PM by 742002

    Why is connmand soaking up 25% of my galileo CPU?

    742002

      connmand seems to be the 1st entry most of the time when I run "top":

      root@GalileoEnet:~# top

       

       

      Mem: 110224K used, 127844K free, 0K shrd, 6820K buff, 83480K cached

      CPU:  40% usr  60% sys   0% nic   0% idle   0% io   0% irq   0% sirq

      Load average: 2.41 2.35 2.06 3/61 1488

        PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND

      1195     1 root     S     5484   2%  27% /usr/sbin/connmand

      1433  1432 root     S     1868   1%  13% {50default} /bin/sh /etc/udhcpc.d/50default bound

      1192     1 messageb S     1460   1%  13% /usr/bin/dbus-daemon --system

      1476 11977 root     R     1268   1%  13% top

      1365  1363 root     S    18300   8%   7% /sketch/sketch.elf /dev/pts/0

      1210     1 root     S     1264   1%   7% /sbin/syslogd -n -O /var/log/messages

      1421     1 root     S     3476   1%   0% /usr/sbin/wpa_supplicant -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -c /etc/wpa_suppli

      9926  1203 root     S     3368   1%   0% {sshd} sshd: root@pts/1

      11890  1203 root     S     3320   1%   0% {sshd} sshd: root@pts/2

       

      I see my /var/log/messages growing constantly with entries such as this:

      root@GalileoEnet:~# tail -10 /var/log/messages

      Sep 22 00:49:58 clanton daemon.info connmand[1195]: eth0 {del} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:49:58 clanton daemon.info connmand[1195]: eth0 {add} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:49:58 clanton daemon.info connmand[1195]: eth0 {del} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:49:58 clanton daemon.info connmand[1195]: eth0 {add} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:49:58 clanton daemon.info connmand[1195]: eth0 {del} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:49:58 clanton daemon.info connmand[1195]: eth0 {add} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:49:58 clanton daemon.info connmand[1195]: eth0 {del} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:49:58 clanton daemon.info connmand[1195]: eth0 {add} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:49:58 clanton daemon.info connmand[1195]: eth0 {del} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:49:58 clanton daemon.info connmand[1195]: eth0 {add} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

       

      I am running on and SD image off the Intel download site on my Galileo board.  The only mods I've made are to enable wlan0:

      root@GalileoEnet:~# ifconfig

      eth0      Link encap:Ethernet  HWaddr 98:4F:EE:01:4D:D4 

                inet addr:10.0.1.152  Bcast:10.0.1.255  Mask:255.255.255.0

                inet6 addr: fe80::9a4f:eeff:fe01:4dd4/64 Scope:Link

                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

                RX packets:7293 errors:0 dropped:1 overruns:0 frame:0

                TX packets:6030 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:5162518 (4.9 MiB)  TX bytes:1462253 (1.3 MiB)

                Interrupt:40 Base address:0x8000

       

       

      lo        Link encap:Local Loopback 

                inet addr:127.0.0.1  Mask:255.0.0.0

                inet6 addr: ::1/128 Scope:Host

                UP LOOPBACK RUNNING  MTU:65536  Metric:1

                RX packets:48 errors:0 dropped:0 overruns:0 frame:0

                TX packets:48 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:0

                RX bytes:3082 (3.0 KiB)  TX bytes:3082 (3.0 KiB)

       

       

      wlan0     Link encap:Ethernet  HWaddr 80:00:0B:03:0F:7A 

                inet addr:10.0.1.151  Bcast:10.0.1.255  Mask:255.255.255.0

                inet6 addr: fe80::8200:bff:fe03:f7a/64 Scope:Link

                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

                RX packets:3201 errors:0 dropped:0 overruns:0 frame:0

                TX packets:14 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:297348 (290.3 KiB)  TX bytes:1891 (1.8 KiB)

       

      If I disconnect my ethernet cable, things quiet down:

      root@GalileoEnet:~# tail -20  /var/log/messages

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {del} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {add} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {del} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {add} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {del} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:58:00 clanton kern.info kernel: [ 2445.810209] libphy: stmmac-1:01 - Link is Down

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {add} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {RX} 7437 packets 5179476 bytes

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {TX} 6224 packets 1485503 bytes

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {update} flags 36867 <UP>

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {newlink} index 2 address 98:4F:EE:01:4D:D4 mtu 1500

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {newlink} index 2 operstate 2 <DOWN>

      Sep 22 00:58:00 clanton kern.info kernel: [ 2445.911602] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {del} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {add} route 0.0.0.0 gw 10.0.1.241 scope 0 <UNIVERSE>

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {del} address 10.0.1.152/24 label eth0

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {del} route 10.0.1.0 gw 0.0.0.0 scope 253 <LINK>

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {del} route fe80:: gw :: scope 0 <UNIVERSE>

      Sep 22 00:58:00 clanton daemon.info connmand[1195]: eth0 {del} route ff00:: gw :: scope 0 <UNIVERSE>

      Sep 22 00:58:01 clanton daemon.err ntpdate[31807]: no servers can be used, exiting

      Here's what top says after ethernet is unplugged:

      Mem: 108508K used, 129560K free, 0K shrd, 6820K buff, 83400K cached

      CPU:   1% usr   6% sys   0% nic  92% idle   0% io   0% irq   0% sirq

      Load average: 0.13 1.33 1.85 1/56 31817

        PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND

      1365  1363 root     S    18300   8%   7% /sketch/sketch.elf /dev/pts/0

      31817 31495 root     R     1268   1%   0% top

      31408  1203 root     S     3320   1%   0% {sshd} sshd: root@pts/2

      16495     2 root     SW       0   0%   0% [kworker/u:2]

      27382     2 root     SW       0   0%   0% [kworker/u:1]

      1195     1 root     S     5484   2%   0% /usr/sbin/connmand

      1421     1 root     S     3476   1%   0% /usr/sbin/wpa_supplicant -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -c /etc/wpa_suppli

      30287  1203 root     S     3320   1%   0% {sshd} sshd: root@pts/1

      1203     1 root     S     3260   1%   0% /usr/sbin/sshd

       

      Sorry if this is an obvious problem, but I am a newbie to connman.

       

      Does anybody have any clues as to what connman is trying to do and how I can make it happy with my eth0 interface?

       

      Message was edited by: F Shah Added output after ethernet cable was unplugged to show that connman goes busy when the eth0 interface is linked to a network.