All of lore.kernel.org
 help / color / mirror / Atom feed
From: Seewer Philippe <philippe.seewer-omB+W0Dpw2o@public.gmane.org>
To: David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
Cc: Hannes Reinecke <hare-l3A5Bk7waGM@public.gmane.org>,
	Victor Lowther
	<victor.lowther-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Bill Nottingham <notting-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	"<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>"
	<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [RFT PATCH] Delay netroot mounting by 1 second
Date: Mon, 22 Jun 2009 20:47:33 +0200	[thread overview]
Message-ID: <4A3FD1C5.30006@bfh.ch> (raw)
In-Reply-To: <1245691069.3875.11.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>

David Dillow wrote:
> On Mon, 2009-06-22 at 18:17 +0200, Seewer Philippe wrote:
>> David Dillow wrote:
>>> Certainly we don't want to sleep if there is no reason to... why slow
>>> down the boot if the network admin has the switch nicely configured for
>>> us?
>> What if he hasn't?
> 
> That's where this part comes in:
> 
>>> It may just be a matter of letting DHCP retry a sufficiency long time
>>> before we look at the results and try to boot. As long as we don't down
>>> the link after getting our information, the mount/login to the root
>>> device should proceed fairly quickly. If we do down the link, the
>>> blocking mode timer starts again and our very quick boot takes at least
>>> 40-60 seconds.
>> DHCP timeout already is 60 seconds. That's dhclient's default if you
>> don't provide other options.
> 
> Ok, then we just need to set the udev settle time to 60 seconds in the
> event of a netroot and avoid downing the link wherever possible. Given
> that timeout, the only problem cases are static configs and MTU changes
> on devices that cannot do that while UP'd.

I'd prefer not use an absolute settle time but instead "test/wait" the
queue. But that's a minor detail.

> 
>> The problem only manifests itself it we have to correct the mtu after dhcp,
>> which currently set's the interface down and up (paranoia I guess), or if
>> we do static configuration.
>>
>> For dhcp the solution could be easy: Either we ignore the mtu or don't 
>> down/up the interface to set it.
> 
> We shouldn't ignore the MTU, and we generally have to down/up the
> interface to set it. Certainly, we should try to set it without downing
> the interface, and fall back to the down/set/up sequence if that fails.
> That would avoid further delay when good hardware/drivers allows it.

Hmmm... I'm not sure that a failing 'ip set eth0 mtu xy' is an indicator
that we have to down/set mtu/up the interface. But to be honest, the 
hardware/driver combinations I'm able to test on seem to be working 
without down/up.

Are there any other methods to decide if we can set the mtu on the fly? 

> In the event of static config, or needing to down/up, I think it makes
> sense to try to ping the server for a period of time and see if we are
> able to communicate, before we try to get our root. You had even
> suggested something similar some time back with your original network
> scripts.
> 
> But that's not a 'sleep 60' just because we may happen be on a network
> with a long blocking state. Perhaps I misread what we're talking about
> and we're on the same page.

Actually, if I'm not mistaken STP can have a maximum timeout of 90
seconds. Add some paranoia and you're at 100. :-)

But yes, sleep 60 is a really bad idea for impatient people like you or me.

On the other hand, I'd really prefer other solutions to "ping" (if there
are any). Having used it myself doesn't mean I like it. First of all,
needing another utility enlarges the initrd even more, there's a possible
risk of having paranoid firewalls and we'd have to check the effective
service-port which isn't possible with standard iputils-ping.

Regards,
Philippe
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-06-22 18:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19 13:45 [RFT PATCH] Delay netroot mounting by 1 second Seewer Philippe
     [not found] ` <4A3B968C.5070600-omB+W0Dpw2o@public.gmane.org>
2009-06-19 14:47   ` Bill Nottingham
     [not found]     ` <20090619144705.GD2514-Zdt1ptygihhQcNjhGXsBABcY2uh10dtjAL8bYrjMMd8@public.gmane.org>
2009-06-19 14:51       ` Seewer Philippe
     [not found]         ` <4A3BA5EA.3020202-omB+W0Dpw2o@public.gmane.org>
2009-06-19 15:06           ` Bill Nottingham
2009-06-19 15:06           ` Warren Togami
2009-06-19 16:08           ` Victor Lowther
     [not found]             ` <84DF1DC6-5F06-4D6D-91A4-56D996D229B1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-06-19 16:19               ` David Dillow
     [not found]                 ` <1245428342.32104.3.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-19 16:58                   ` Warren Togami
2009-06-22  7:50                   ` Hannes Reinecke
     [not found]                     ` <4A3F37B8.7050902-l3A5Bk7waGM@public.gmane.org>
2009-06-22 15:10                       ` David Dillow
     [not found]                         ` <1245683450.3544.6.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2009-06-22 16:17                           ` Seewer Philippe
     [not found]                             ` <4A3FAE9E.5000201-omB+W0Dpw2o@public.gmane.org>
2009-06-22 17:17                               ` David Dillow
     [not found]                                 ` <1245691069.3875.11.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-22 18:47                                   ` Seewer Philippe [this message]
     [not found]                                     ` <4A3FD1C5.30006-omB+W0Dpw2o@public.gmane.org>
2009-06-22 21:02                                       ` David Dillow
     [not found]                                         ` <1245704521.3875.31.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-23  7:31                                           ` Seewer Philippe
     [not found]                                             ` <4A4084D3.3060705-omB+W0Dpw2o@public.gmane.org>
2009-06-23 16:16                                               ` David Dillow
     [not found]                                                 ` <1245773764.11486.21.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-24  6:56                                                   ` Seewer Philippe
     [not found]                                                     ` <4A41CE20.5000809-omB+W0Dpw2o@public.gmane.org>
2009-06-25  3:30                                                       ` David Dillow
     [not found]                                                         ` <1245900638.22064.24.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2009-06-25  4:37                                                           ` David Dillow
2009-06-22 17:22                               ` David Dillow
2009-06-24  8:29                               ` Bogdan Costescu
2009-06-22 16:06                       ` Seewer Philippe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A3FD1C5.30006@bfh.ch \
    --to=philippe.seewer-omb+w0dpw2o@public.gmane.org \
    --cc=dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org \
    --cc=hare-l3A5Bk7waGM@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=notting-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=victor.lowther-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.