[Bug 1188019] New: Wicked CPU High on RaspberryPi 2
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 Bug ID: 1188019 Summary: Wicked CPU High on RaspberryPi 2 Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.2 Hardware: armv7 OS: openSUSE Leap 15.2 Status: NEW Severity: Normal Priority: P5 - None Component: Network Assignee: screening-team-bugs@suse.de Reporter: opensuse@wolke7.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello, I installed OpenSUSE 15.2 in Raspberry Pi 2, and "/usr/sbin/wickedd --systemd --foreground" always costs around 51% CPU in idle. This happens both in ethernet or with USB wifi dongle. If I use Raspberry Pi's default OS Raspbian, there is no such a problem. I have tried "sudo zypper update" it doesn't work. The internet is gotten by DHCP from home router. see below output from htop:
0[||||||||| 7.4%] Tasks: 26, 9 thr; 2 running 1[||||||| 5.4%] Load average: 1.83 1.98 2.01 2[||||||||||||||||||||||||||||||||||||||||||||||||||||||| 53.4%] Uptime: 10:04:10 3[|||||||||||||||||||| 19.5%]
Mem[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||303M/889M] Swp[| 256K/500M]
PID USER PRI NI VIRT RES SHR S CPU%-MEM% TIME+ Command 540 root 20 0 227M 224M 4468 R 52.9 25.3 3h42:31 /usr/sbin/wickedd --systemd --foreground 525 root 20 0 30880 27636 4372 D 6.9 3.0 36:14.69 /usr/lib/wicked/bin/wickedd-dhcp4 --systemd --foreground 366 root 20 0 236M 142M 141M S 4.1 16.0 24:44.72 /usr/lib/systemd/systemd-journald 459 messagebu 20 0 6812 3960 3368 S 1.4 0.4 8:00.35 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only 1 root 20 0 12324 7420 6056 S 0.0 0.8 2:50.52 /usr/lib/systemd/systemd --switched-root --system --deserialize 23 381 root 20 0 15044 3656 2916 S 0.0 0.4 0:01.30 /usr/lib/systemd/systemd-udevd 440 root 16 -4 11692 1404 1228 S 0.0 0.2 0:00.10 /sbin/auditd 441 root 16 -4 11692 1404 1228 S 0.0 0.2 0:00.00 /sbin/auditd 473 root 20 0 44268 26188 12656 S 0.0 2.9 0:09.69 /usr/bin/python3 -Es /usr/sbin/firewalld --nofork --nopid 479 root 20 0 9528 5092 4628 S 0.0 0.6 0:01.11 /usr/lib/systemd/systemd-logind 521 root 20 0 8368 4632 3892 S 0.0 0.5 0:00.15 /usr/lib/wicked/bin/wickedd-dhcp6 --systemd --foreground 526 root 20 0 8368 4688 3944 S 0.0 0.5 0:00.12 /usr/lib/wicked/bin/wickedd-auto4 --systemd --foreground 561 root 20 0 8392 4708 3972 S 0.0 0.5 0:00.17 /usr/sbin/wickedd-nanny --systemd --foreground 737 root 20 0 44268 26188 12656 S 0.0 2.9 0:00.00 /usr/bin/python3 -Es /usr/sbin/firewalld --nofork --nopid 738 polkitd 20 0 243M 19028 14804 S 0.0 2.1 0:00.53 /usr/lib/polkit-1/polkitd --no-debug 740 polkitd 20 0 243M 19028 14804 S 0.0 2.1 0:00.00 /usr/lib/polkit-1/polkitd --no-debug
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 Felix Niederwanger <felix.niederwanger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |felix.niederwanger@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |afaerber@suse.com, | |dmueller@suse.com, | |fvogt@suse.com, | |guillaume.gardet@arm.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 Matthias Brugger <mbrugger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ivan.ivanov@suse.com, | |mbrugger@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 http://bugzilla.opensuse.org/show_bug.cgi?id=1188019#c1 Ivan Ivanov <ivan.ivanov@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |opensuse@wolke7.net Flags| |needinfo?(opensuse@wolke7.n | |et) --- Comment #1 from Ivan Ivanov <ivan.ivanov@suse.com> --- Hi, I have tested latest openSUSE Leap 15.2[1] on my Raspberry Pi 2 Model B Rev 1.2, and I don't see this wickedd high CPU load. Could you, please, post content of your /etc/sysconfig/network/ifcfg-eth0 [1] # uname -a Linux localhost 5.3.18-lp152.81-lpae #1 SMP Mon Jul 5 23:37:31 UTC 2021 (4022e93) armv7l armv7l armv7l GNU/Linux -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 http://bugzilla.opensuse.org/show_bug.cgi?id=1188019#c2 --- Comment #2 from Software System <opensuse@wolke7.net> --- Hello Ivan, thanks for your reply.
cat /etc/sysconfig/network/ifcfg-eth0 BOOTPROTO='dhcp' MTU='' REMOTE_IPADDR='' STARTMODE='onboot'
uname -a Linux localhost 5.3.18-lp152.78-lpae #1 SMP Tue Jun 1 14:53:21 UTC 2021 (556d823) armv7l armv7l armv7l GNU/Linux
Now this problem still happens. Is my Raspberry Pi broken? Let me update the system / Switch back again to Raspbian to see. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 http://bugzilla.opensuse.org/show_bug.cgi?id=1188019#c3 --- Comment #3 from Software System <opensuse@wolke7.net> --- Hello, I find the solution finally. 1. First, my rpi2 is Raspberry Pi 2 Model B Rev 1.1, which use a different CPU from Rev 1.2. 2. I reinstall Raspbian Buster lite, there is no this problem (using DHCP). So my rpi2 is not broken. 3. Then I reinstall to OpenSUSE 15.3 (openSUSE-Leap-15.3-ARM-JeOS-raspberrypi2.armv7l-2021.05.31-Build8.1.raw.xz) If I use DHCP, there are huge of logs like these, and CPU still very high from wicked:
Jul 22 21:41:49 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:49 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:49 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:49 localhost wickedd[1007]: route ipv4 0.0.0.0/0 via 192.168.60.21 dev eth0#2 type unicast table main scope universe protocol dhcp covered by a ipv4:dhcp lease Jul 22 21:41:49 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:49 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:49 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:50 localhost wickedd[1007]: route ipv4 0.0.0.0/0 via 192.168.60.21 dev eth0#2 type unicast table main scope universe protocol dhcp covered by a ipv4:dhcp lease Jul 22 21:41:50 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:50 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:50 localhost wickedd[1007]: route ipv4 0.0.0.0/0 via 192.168.60.21 dev eth0#2 type unicast table main scope universe protocol dhcp covered by a ipv4:dhcp lease Jul 22 21:41:50 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:50 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:50 localhost wickedd[1007]: route ipv4 0.0.0.0/0 via 192.168.60.21 dev eth0#2 type unicast table main scope universe protocol dhcp covered by a ipv4:dhcp lease Jul 22 21:41:50 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:50 localhost wickedd[1007]: route ipv4 0.0.0.0/0 via 192.168.60.21 dev eth0#2 type unicast table main scope universe protocol dhcp covered by a ipv4:dhcp lease Jul 22 21:41:50 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:50 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) Jul 22 21:41:50 localhost wickedd[1007]: route ipv4 0.0.0.0/0 via 192.168.60.21 dev eth0#2 type unicast table main scope universe protocol dhcp covered by a ipv4:dhcp lease Jul 22 21:41:50 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec)
So I set static IP to this rpi2:
cat /etc/sysconfig/network/ifcfg-eth0 IPADDR='192.168.60.120/24' BOOTPROTO='static' STARTMODE='auto'
cat /etc/sysconfig/network/ifroute-eth0 default 192.168.60.21 - eth0
Then the CPU comes to 0 now. :) and "journalctl -n 10" do not show these DHCP infos. So, somethings wrong with wicked dhcp? Or is it normal that wicked will cause high CPU when request DHCP? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 http://bugzilla.opensuse.org/show_bug.cgi?id=1188019#c4 --- Comment #4 from Ivan Ivanov <ivan.ivanov@suse.com> --- Hm, my RPi4 start getting sluggish. For me wickedd-dhcp6 was the offending process. I have changed BOOTPROTO to dhcp4, i.e. IPv4 only and performance is back. # journalctl -u wickedd-dhcp6 --since=today | head -- Journal begins at Mon 2021-06-28 00:00:00 UTC, ends at Fri 2021-07-23 06:57:16 UTC. -- Jul 23 00:00:00 localhost wickedd-dhcp6[546]: eth0: ignoring REPLY message xid 0x6750c4 in state SELECTING from fe80::dea6:32ff:fe3c:1825: rapid-commit lease without usable address Jul 23 00:00:00 localhost wickedd-dhcp6[546]: eth0: ignoring REPLY message xid 0x6750c4 in state SELECTING from fe80::dea6:32ff:fe3c:1825: rapid-commit lease without usable address Jul 23 00:00:00 localhost wickedd-dhcp6[546]: eth0: ignoring REPLY message xid 0x6750c4 in state SELECTING from fe80::dea6:32ff:fe3c:1825: rapid-commit lease without usable address -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 http://bugzilla.opensuse.org/show_bug.cgi?id=1188019#c5 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mt@suse.com --- Comment #5 from Marius Tomaschewski <mt@suse.com> --- (In reply to Software System from comment #3) [...]
Jul 22 21:41:50 localhost wickedd-dhcp4[969]: eth0: Committed DHCPv4 lease with address 192.168.60.120 (lease time 4294967295 sec, renew in 2147483647 sec, rebind in 536870911 sec) [...] So, somethings wrong with wicked dhcp? Or is it normal that wicked will cause high CPU when request DHCP?
Yes, as it it seems, there is an issue with infinite lease time (4294967295 is UINT_MAX) :-/ (In reply to Ivan Ivanov from comment #4)
Jul 23 00:00:00 localhost wickedd-dhcp6[546]: eth0: ignoring REPLY message xid 0x6750c4 in state SELECTING from fe80::dea6:32ff:fe3c:1825: rapid-commit lease without usable address
This is a different issue, please open a new report about. Either the router IPv6-RA� or the local config says, wicked should use DHCLIENT6_MODE=managed to acquire an IPv6 address, but the dhcp6 server isn't acting in managed but in info-only mode and delivers a lease without any IP; wickedd-dhcp6 has to discard / ignore such responses by RFC. Please install the "radvd" package and let "radvdump" running for a while to see the RA that arrives on the interface(s) or capture dhcp6 and icmp6 (contains router RS/RA) packets, using tcpdump: tcpdump -w dhcp6.pcap -s 65535 -Uvnfi any 'icmp6 or port 546 or port 547' while `wicked ifup all` (=rcnetwork start) is running. In both cases, please provide logs as described at: https://en.opensuse.org/openSUSE:Bugreport_wicked -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 http://bugzilla.opensuse.org/show_bug.cgi?id=1188019#c6 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High --- Comment #6 from Marius Tomaschewski <mt@suse.com> --- Increasing issue priority to P2. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1188019 http://bugzilla.opensuse.org/show_bug.cgi?id=1188019#c7 --- Comment #7 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1188019) was mentioned in https://build.opensuse.org/request/show/942094 Factory / wicked -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com