Re: [PATCH] Driver Core: devtmpfs - kernel-maintained tmpfs-based/dev

From: Greg KH
Date: Thu Aug 06 2009 - 16:53:46 EST


On Thu, Aug 06, 2009 at 11:18:05PM +0300, Al Boldi wrote:
> Greg KH wrote:
> > On Thu, Aug 06, 2009 at 08:06:16PM +0300, Al Boldi wrote:
> > > Andi Kleen wrote:
> > > > Greg KH <greg@xxxxxxxxx> writes:
> > > > > It makes the userspace boot process much simpler and easier to
> > > > > maintain, as well as providing a way to handle rescue disks and
> > > > > images trivially, and it makes the kernel _less_ dependant on the
> > > > > early userspace bootup scripts.
> > > >
> > > > As a initrd less kernel user I can really only agree: getting rid
> > > > of the udev-in-initrd requirement would be a big step forward
> > > > in usability. Typically I always have to pre populate
> > > > a on disk /dev manually first to get my kernels to boot.
> > >
> > > Oh good, I thought I was the only one doing that.
> > >
> > > The reason I don't like udev is that it's just to slow; something like a
> > > 5-10s delay on each boot. No idea why it should be so slow, but it's
> > > probably probing the kernel for all available devices at boot, when it
> > > could be much quicker by probing for the device on access.
> >
> > Like Kay stated, this sounds like a misconfiguration of your distro's
> > udev setup, as the ones I use (openSUSE and Gentoo) do not have this
> > problem at all.
>
> Maybe they are using the same trick as Ubuntu and Debian, as they run udev in
> the background to hide the slowness. Both Fedora and Mandriva run udev in
> the foreground where the slowness is visible.

No, Gentoo and openSUSE do not run udev in the background. It's all due
to the different scripts the udev rules call. Fedora was known for
having some pretty horrible scripts in older releases, which have
hopefully been fixed in the latest releases.

> So really, if devtmpfs compares to udev speeds then this just looks like a
> devfs comeback. Remember, devfs was really slow.

Again, there is no "speed" for devtmpfs on its own, the device nodes
just appear when the devices are added to the kernel, the speed of that
depends on the device discovery within the kernel, nothing else.

And devfs was slow? How was that measured? That's not why it was
removed from the kernel, that was due to a wide variety of other
reasons.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/