Summary: | net-misc/dhcpcd-3.1.3: Starting net.eth0 takes long time | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever> |
Component: | Current packages | Assignee: | Roy Marples (RETIRED) <uberlord> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Arfrever Frehtes Taifersar Arahesis (RETIRED)
2007-08-07 16:54:40 UTC
Results with dhcpcd-3.1.3: # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m18.541s user 0m0.105s sys 0m0.057s # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m7.055s user 0m0.101s sys 0m0.058s # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m51.183s user 0m0.115s sys 0m0.055s # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m17.452s user 0m0.102s sys 0m0.058s # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m42.557s user 0m0.105s sys 0m0.065s # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m9.587s user 0m0.103s sys 0m0.057s # Results with dhcpcd-3.0.16-r1: # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m0.342s user 0m0.098s sys 0m0.054s # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m0.274s user 0m0.105s sys 0m0.057s # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m0.252s user 0m0.107s sys 0m0.047s # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m0.263s user 0m0.097s sys 0m0.054s # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m0.263s user 0m0.104s sys 0m0.049s # /etc/init.d/net.eth0 stop &>/dev/null # time /etc/init.d/net.eth0 start net.eth0 | * Bringing up interface eth0 net.eth0 | * Loaded modules: apipa arping tuntap ccwgroup macchanger macnet ssidnet ifconfig pppd system dhcpcd ip6to4 net.eth0 | * Configuring eth0 for MAC address XX:XX:XX:XX:XX:XX ... [ ok ] net.eth0 | * No configuration specified; defaulting to DHCP net.eth0 | * dhcp ... net.eth0 | * Running dhcpcd ... [ ok ] net.eth0 | * received address YY.YY.YY.YY/ZZ [ ok ] real 0m0.257s user 0m0.107s sys 0m0.049s # I wasn't doing anything in the computer, cron was disabled etc. (I can privately explain values of XX:XX:XX:XX:XX:XX and YY.YY.YY.YY/ZZ.) It seems that YY.YY.YY.YY received by dhcpcd-3.0* is slightly different than YY.YY.YY.YY received by dhcpcd-3.1.3. Probably a dupe - comment if it's not. *** This bug has been marked as a duplicate of bug 187753 *** (In reply to comment #5) > Probably a dupe - comment if it's not. My problem may be related to that problem. I applied patch from that bug. Results with dhcpcd-3.1.3 with dhcpcd-arp.patch: # for x in `seq 1 20` ; do /etc/init.d/net.eth0 stop>/dev/null ; time /etc/init.d/net.eth0 start>/dev/null ; done real 0m1.762s user 0m0.096s sys 0m0.053s real 0m1.377s user 0m0.097s sys 0m0.052s real 0m1.306s user 0m0.099s sys 0m0.048s real 0m1.443s user 0m0.096s sys 0m0.052s real 0m1.379s user 0m0.110s sys 0m0.050s real 0m1.385s user 0m0.103s sys 0m0.043s real 0m1.237s user 0m0.102s sys 0m0.051s real 0m1.328s user 0m0.103s sys 0m0.051s real 0m1.410s user 0m0.099s sys 0m0.053s real 0m1.312s user 0m0.096s sys 0m0.054s real 0m1.397s user 0m0.090s sys 0m0.056s real 0m1.363s user 0m0.096s sys 0m0.052s real 0m1.383s user 0m0.092s sys 0m0.056s real 0m1.311s user 0m0.103s sys 0m0.041s real 0m1.331s user 0m0.092s sys 0m0.058s real 0m1.432s user 0m0.098s sys 0m0.052s real 0m1.290s user 0m0.100s sys 0m0.050s real 0m1.404s user 0m0.101s sys 0m0.048s real 0m1.288s user 0m0.098s sys 0m0.053s real 0m1.379s user 0m0.102s sys 0m0.049s # Results with dhcpcd-3.0.16-r1: # for x in `seq 1 20` ; do /etc/init.d/net.eth0 stop>/dev/null ; time /etc/init.d/net.eth0 start>/dev/null ; done real 0m0.211s user 0m0.098s sys 0m0.048s real 0m0.240s user 0m0.097s sys 0m0.055s real 0m0.215s user 0m0.100s sys 0m0.045s real 0m0.209s user 0m0.100s sys 0m0.045s real 0m0.217s user 0m0.100s sys 0m0.049s real 0m0.209s user 0m0.098s sys 0m0.049s real 0m0.205s user 0m0.092s sys 0m0.053s real 0m0.218s user 0m0.098s sys 0m0.050s real 0m0.210s user 0m0.097s sys 0m0.049s real 0m0.214s user 0m0.099s sys 0m0.053s real 0m0.228s user 0m0.087s sys 0m0.058s real 0m0.209s user 0m0.100s sys 0m0.047s real 0m0.206s user 0m0.094s sys 0m0.053s real 0m0.217s user 0m0.095s sys 0m0.054s real 0m0.219s user 0m0.099s sys 0m0.046s real 0m0.212s user 0m0.092s sys 0m0.056s real 0m0.208s user 0m0.095s sys 0m0.051s real 0m0.235s user 0m0.095s sys 0m0.049s real 0m0.215s user 0m0.088s sys 0m0.059s real 0m0.214s user 0m0.097s sys 0m0.051s # 3.1 will be slower as it will ARP check by default 3.0 can ARP check by using the -a option, so add that and you get a farier test. Or use -A with 3.1 to disable the ARP check. (In reply to comment #7) > 3.1 will be slower as it will ARP check by default > 3.0 can ARP check by using the -a option, so add that and you get a farier > test. > > Or use -A with 3.1 to disable the ARP check. Where can I add this option? in /etc/conf.d/net dhcpcd_eth0="-a" or dhcpcd_eth0="-A" (In reply to comment #9) > in /etc/conf.d/net > > dhcpcd_eth0="-A" Thanks. It works. You can add information (via einfo) about dhcpcd_eth0="-A" to pkg_postinst(). Out of curiosity, how to the 3.1 times compare vs 3.0 using the -a option for 3.0? Results with 3.0.16-r1: # cat /etc/conf.d/net # This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /etc/conf.d/net.example and save your configuration # in /etc/conf.d/net (this file :]!). dhcpcd_eth0="-a" # for x in `seq 1 20` ; do /etc/init.d/net.eth0 stop>/dev/null ; time /etc/init.d/net.eth0 start ; done | <Manual filtering> real 0m1.544s user 0m0.105s sys 0m0.052s real 0m1.820s user 0m0.105s sys 0m0.045s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ignoring packet with xid -1469659345 as it's not ours (2101862309) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 1m10.945s user 0m0.105s sys 0m0.060s real 0m1.778s user 0m0.097s sys 0m0.056s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 0m24.814s user 0m0.095s sys 0m0.059s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 0m24.959s user 0m0.104s sys 0m0.053s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 0m24.787s user 0m0.099s sys 0m0.056s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 0m12.789s user 0m0.100s sys 0m0.059s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 0m13.855s user 0m0.099s sys 0m0.052s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 1m9.848s user 0m0.093s sys 0m0.064s real 0m1.878s user 0m0.095s sys 0m0.058s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] net.eth0 |Error, eth0: ignoring packet with xid 2120720385 as it's not ours (1675603439) [ ok ] real 0m13.778s user 0m0.094s sys 0m0.063s real 0m1.848s user 0m0.096s sys 0m0.060s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ignoring packet with xid 2120720385 as it's not ours (1808346862) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ignoring packet with xid 1424352532 as it's not ours (1402327871) [ ok ] real 0m24.888s user 0m0.109s sys 0m0.052s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 0m13.789s user 0m0.095s sys 0m0.065s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 0m23.880s user 0m0.105s sys 0m0.054s real 0m1.798s user 0m0.096s sys 0m0.058s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 0m24.861s user 0m0.105s sys 0m0.059s net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) net.eth0 |Error, eth0: ARPOP_REPLY received from AA.AA.AA.AA (BB:BB:BB:BB:BB:BB) [ ok ] real 0m24.812s user 0m0.109s sys 0m0.057s real 0m1.833s user 0m0.107s sys 0m0.054s # There were 14 different received addresses. |