[FS#75] udhcpc duplicate session and high cpu usage on wrong interface
LEDE Bugs
lede-bugs at lists.infradead.org
Tue Aug 2 16:06:07 PDT 2016
A new Flyspray task has been opened. Details are below.
User who did this - lucize (lucize)
Attached to Project - LEDE Project
Summary - udhcpc duplicate session and high cpu usage on wrong interface
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - DISTRIB_ID='LEDE'
DISTRIB_RELEASE='HEAD'
DISTRIB_REVISION='r1227'
DISTRIB_CODENAME='reboot'
DISTRIB_TARGET='x86/64'
DISTRIB_DESCRIPTION='LEDE Reboot r1227'
DISTRIB_TAINTS='no-all'
So I have a test setup using this config pppoe + dhcp on wan defined in luci
if I setup the wan interface to pppoe + static ip static everything is fine, if I setup the wan interface to pppoe + dhcp I get this one more process
udhcpc -n -q -s /bin/true -t 1 -i br-lan
the correct process is there to
udhcpc -p /var/run/udhcpc-eth1.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth1 -C
beside that dhcp from dnsmasq will not work anymore on br-lan interface, doing high load on the router (~500mb/s) gets the: udhcpc -n -q -s /bin/true -t 1 -i br-lan to ~65% cpu usage on fujitsu futro s900 (AMD G-T44R Processor)
here is the network config
root at lede:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdc9:d20c:e2fb::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.0.1'
config interface 'wan'
option ifname 'eth1'
option _orig_ifname 'eth1'
option _orig_bridge 'false'
option proto 'dhcp'
config interface 'wan6'
option ifname 'eth1'
option proto 'dhcpv6'
config interface 'WAN2'
option proto 'pppoe'
option ifname 'eth1'
option username 'xxxxxx'
option password 'xxxxxx'
option ipv6 'auto'
ps
root at lede:~# ps
PID USER VSZ STAT COMMAND
1 root 13356 S /sbin/procd
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
5 root 0 SW< [kworker/0:0H]
6 root 0 SW [kworker/u2:0]
7 root 0 SW [rcu_sched]
8 root 0 SW [rcu_bh]
9 root 0 SW [migration/0]
10 root 0 SW< [perf]
161 root 0 SW< [writeback]
163 root 0 SW< [crypto]
164 root 0 SW< [kintegrityd]
165 root 0 SW< [bioset]
167 root 0 SW< [kblockd]
277 root 0 SW< [ata_sff]
408 root 0 SW [kswapd0]
409 root 0 SW [kworker/0:1]
410 root 0 SW< [vmstat]
411 root 0 SW [fsnotify_mark]
507 root 0 SW< [acpi_thermal_pm]
554 root 0 SW [scsi_eh_0]
555 root 0 SW< [scsi_tmf_0]
558 root 0 SW [scsi_eh_1]
559 root 0 SW< [scsi_tmf_1]
562 root 0 SW [scsi_eh_2]
563 root 0 SW< [scsi_tmf_2]
566 root 0 SW [scsi_eh_3]
567 root 0 SW< [scsi_tmf_3]
570 root 0 SW [scsi_eh_4]
571 root 0 SW< [scsi_tmf_4]
574 root 0 SW [scsi_eh_5]
575 root 0 SW< [scsi_tmf_5]
582 root 0 SW [kworker/u2:6]
604 root 0 SW< [bioset]
639 root 0 SW< [ipv6_addrconf]
649 root 0 SW< [deferwq]
650 root 0 SW [kworker/0:2]
657 root 0 SW< [bioset]
662 root 0 SW< [bioset]
666 root 0 SW< [kworker/0:1H]
699 root 0 SW< [xfsalloc]
700 root 0 SW< [xfs_mru_cache]
731 root 0 SWN [jffs2_gcd_mtd1]
995 root 8984 S /sbin/ubusd
1007 root 2716 S /sbin/askfirst /usr/libexec/login.sh
1008 root 2716 S /sbin/askfirst /usr/libexec/login.sh
1430 root 0 SW< [cfg80211]
1547 root 7488 S /sbin/logd -S 512
1556 root 13232 S /sbin/rpcd
1600 root 15512 S /sbin/netifd
1614 root 9096 S /usr/sbin/odhcpd
1643 root 3060 S /usr/sbin/crond -f -c /etc/crontabs -l 8
1668 root 2888 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
1776 root 2784 S /usr/sbin/acpid
2131 root 15292 S /usr/sbin/uhttpd -f -h /www -r lede -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 3 -N 100 -R -p 0.0.0.0:80 -p [::]:80
2159 network 5724 S /usr/sbin/zebra -d
2164 network 5676 S /usr/sbin/ripd -d
2169 network 8352 S /usr/sbin/ospfd -d
2174 root 5152 S /usr/sbin/watchquagga -d -z -T 60 -R /usr/sbin/quagga.init watchrestart zebra ripd ospfd
2188 root 5184 S /usr/sbin/lldpd -d -I lo,br-lan -c -f -s -e -M 4 -S LEDE Reboot r1227 @ lede
2221 lldp 5184 S /usr/sbin/lldpd -d -I lo,br-lan -c -f -s -e -M 4 -S LEDE Reboot r1227 @ lede
2225 root 3056 S udhcpc -p /var/run/udhcpc-eth1.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth1 -C
2420 root 3068 S {mwan3track} /bin/sh /usr/sbin/mwan3track wan eth1 2 1 2 5 3 8 208.67.220.220 208.67.222.222 8.8.8.8 8.8.4.4
2502 nobody 26068 S /usr/sbin/squid -s -f /tmp/squid/squid.conf -N
2597 root 3060 S < /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 0.lede.pool.ntp.org -p 1.lede.pool.ntp.org -p 2.lede.pool.ntp.org -p 3.
2601 root 3460 S {dnsmasq} /bin/sh /etc/rc.common /etc/init.d/dnsmasq reload
2657 root 3056 S udhcpc -n -q -s /bin/true -t 1 -i br-lan
2735 dnsmasq 16284 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k -x /var/run/dnsmasq/dnsmasq.pid
2850 root 3004 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
2856 root 3064 S -ash
4739 root 5080 S /usr/sbin/pppd nodetach ipparam WAN2 ifname pppoe-WAN2 +ipv6 set AUTOIPV6=1 nodefaultroute usepeerdns maxfail 1 user xxx.....
4744 root 3056 S sleep 5
4746 root 3056 R ps
Regards
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=75
More information about the lede-bugs
mailing list