On Fri, Jul 08, 2005 at 10:12:52AM -0700, Greg KH wrote:
> On Thu, Jul 07, 2005 at 10:18:12AM -0400, Chris Gianelloni wrote:
> > On Wed, 2005-07-06 at 15:46 -0700, Greg KH wrote:
> > > To start with, the 061 version of udev offers a big memory savings if
> > > you use the "default" kernel name of a device[3].  If you do that, it does
> > > not create a file in its database in /dev/.udevdb/
> > 
> > So if we were to switch to udev 061 in genkernel, it would shrink memory
> > usage in our initrd/initramfs, provided we made everything use the LSB
> > device names/nodes, versus the devfs ones, correct?
> 
> Not in the initrd/initramfs, but in the tmpfs partition that udev uses
> to create the /dev entries.  Well, I guess you could say the
> "initrd/initramfs" if that is where udev is mounted on early startup (I
> haven't looked at how genkernel does this in a long time, sorry.)
> 
> And yes, the memory savings is there, if we use the LSB names only vs
> the devfs name and the symlink like we currently do.
> 
> To see this, look at how much space /dev/.udevdb/ takes up right now
> with 062 udev.  Then change the following rules in
> /etc/udev/rules.d/50-udev.rules with the diff at the end of this email.
> Then reboot and look at the size of the /dev/.udevdb/ directory again.
> I think you will notice a huge space savings.

<snip>

Ok, 064-r1 version of udev does this for tty and console devices.  The
old devfs names are now gone.  Because of this, and some other config
file tweaks, starting udev now only takes .5 seconds on my old, slow
laptop, instead of 5 seconds.  Hopefully others will also see such an
increase.

Now to implement the persistent block device names that we showed
everyone at OLS...

thanks,

greg k-h
-- 
gentoo-dev@gentoo.org mailing list

Reply via email to