netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Remarks and comments about ipconfig behavior
@ 2012-09-13 20:21 Erwan Velu
  2012-09-13 20:31 ` David Miller
  0 siblings, 1 reply; 16+ messages in thread
From: Erwan Velu @ 2012-09-13 20:21 UTC (permalink / raw)
  To: netdev

Hey Fellows !

I've been figuring a strange behavior today and I'd like to share with 
you both experience and remarks.

On my system that runs a 3.2.29 but that's also applicable with 
linux-next and all other releases.

As shown here : 
http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=blob;f=net/ipv4/ipconfig.c;h=67e8a6b086ea7a0d2c4cc986ed6ed0e6b4414c6a;hb=HEAD#l262 
, if you specify an ip= option on the cmdline, the kernel is expecting 
the carrier to be present unless it will make a loop up to 2mn as per 
CONF_CARRIER_TIMEOUT value.

That lever for me two points :
- why is this timeout setup for so long ? Even with a spantree 
configuration, not having a carrier for 2mn is *waow* ... Does a 30sec 
could not be enough ? What is the need of waiting so long time ?

- Until we get the carrier, the kernel just stops and the boot process 
is totally locked but there isn't any message shown to the user. The 
system really look like frozen/dead for 2 minutes.

I spent a complete day trying to understand why my box was unable to 
boot while the network cable was removed.
I just discover this behavior by comparing log files to understand that 
was the reason.


So my suggestion would be the following and I can offer patches if you 
agree on thoses points :


- reducing the timeout to something smaller like 30sec
- display a message every second to inform the user we are waiting the 
carrier to satisfy the ipconfig option

What are you thoughts on that ?

Thanks you,
Erwan Velu

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-09-15 16:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-13 20:21 Remarks and comments about ipconfig behavior Erwan Velu
2012-09-13 20:31 ` David Miller
2012-09-13 20:37   ` Erwan Velu
2012-09-13 20:45     ` David Miller
2012-09-13 21:59       ` [PATCH] ipconfig: Inform user if carrier is not ready Erwan Velu
2012-09-14  5:36         ` Francois Romieu
     [not found]         ` <50525C5D.8040302@hp.com>
2012-09-14 19:08           ` [PATCH V2] " Erwan Velu
2012-09-14 19:17             ` David Miller
2012-09-14 19:30               ` [PATCH V3] " Erwan Velu
2012-09-14 19:42                 ` David Miller
2012-09-14 20:13                   ` Erwan Velu
2012-09-14 20:23                     ` David Miller
2012-09-14 20:59                       ` Erwan Velu
2012-09-14 19:31               ` [PATCH V2] " Erwan Velu
2012-09-14 19:19             ` Rick Jones
2012-09-15 16:18   ` Remarks and comments about ipconfig behavior Erwan Velu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).