linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Boot regression caused by commit 6829a048
@ 2012-01-06 17:32 Sasha Levin
  2012-01-06 18:26 ` Trond Myklebust
  2012-01-06 18:29 ` Chuck Lever
  0 siblings, 2 replies; 7+ messages in thread
From: Sasha Levin @ 2012-01-06 17:32 UTC (permalink / raw)
  To: chuck.lever; +Cc: linux, Trond.Myklebust, Pekka Enberg, linux-nfs, linux-kernel

Hi all,

I've noticed a boot regression caused by commit 6829a048 ("NFS: Retry
mounting NFSROOT") which has increased boot time by 95 seconds.

The scenario is as follows:
 - A virtual guest running under the KVM tool.
 - Guest is using kernel automatic IP DHCP configuration ("ip=dhcp").
 - Guest is booting from a 9p device (which is not detected as block,
and gets mounted after NFS tries to do its mounts).
 - No NFS server at all, no NFS parameters passed to the guest kernel.

Under this scenario, theres an additional 95 second delay before NFS
fails and tries to boot using 9p:

[...]
[    6.505269] md: autorun ...
[    6.506954] md: ... autorun DONE.
[  101.522716] VFS: Unable to mount root fs via NFS, trying floppy.
[  101.534499] VFS: Mounted root (9p filesystem) on device 0:18.
[...]

This probably happens since the NFS server isn't configured, so the
bootserver is automatically assumed to be the DHCP server, and with the
commit above we won't simply fail immediately when the NFS code fails
connecting to it.

I'm not quite sure about the correct solution for this. While I can
forcefully disable NFS, is it really the right solution? Should we be
retrying a NFS server even if one wasn't specifically set?

Thanks.

-- 

Sasha.


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

end of thread, other threads:[~2012-01-07  8:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-06 17:32 Boot regression caused by commit 6829a048 Sasha Levin
2012-01-06 18:26 ` Trond Myklebust
2012-01-06 23:32   ` Sasha Levin
2012-01-06 23:16     ` Trond Myklebust
2012-01-07  8:59       ` Sasha Levin
2012-01-06 18:29 ` Chuck Lever
2012-01-06 23:36   ` Sasha Levin

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).