From: Greg KH <gregkh@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] devfs is dead, let's move on
Date: Fri, 8 Jul 2005 10:12:52 -0700 [thread overview]
Message-ID: <20050708171252.GD29606@kroah.com> (raw)
In-Reply-To: <1120745893.11567.42.camel@cgianelloni.nuvox.net>
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.
thanks,
greg k-h
--- 50-udev.rules.orig 2005-07-08 10:10:24.000000000 -0700
+++ 50-udev.rules 2005-07-08 10:11:16.000000000 -0700
@@ -139,9 +139,9 @@
# tty devices
KERNEL=="console", NAME="%k", GROUP="tty", MODE="0600"
KERNEL=="tty", NAME="%k", GROUP="tty", MODE="0666"
-KERNEL=="tty[0-9]*", NAME="vc/%n", SYMLINK+="%k", GROUP="tty"
-KERNEL=="ttyS[0-9]*", NAME="tts/%n", SYMLINK+="%k", GROUP="tty"
-KERNEL=="ttyUSB[0-9]*", NAME="tts/USB%n", GROUP="tty", MODE="0660"
+KERNEL=="tty[0-9]*", NAME="%k", GROUP="tty"
+KERNEL=="ttyS[0-9]*", NAME="%k", GROUP="tty"
+KERNEL=="ttyUSB[0-9]*", NAME="%k", GROUP="tty", MODE="0660"
KERNEL=="ippp0", NAME="%k", GROUP="tty"
KERNEL=="isdn*" NAME="%k", GROUP="tty"
KERNEL=="dcbri*", NAME="%k", GROUP="tty"
@@ -149,14 +149,14 @@
# pty devices
KERNEL=="ptmx", NAME="%k", GROUP="tty", MODE="0666"
-KERNEL=="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK+="%k", GROUP="tty"
-KERNEL=="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK+="%k", GROUP="tty"
+KERNEL=="pty[p-za-e][0-9a-f]*", NAME="%k", GROUP="tty"
+KERNEL=="tty[p-za-e][0-9a-f]*", NAME="%k", GROUP="tty"
# vc devices
-KERNEL=="vcs", NAME="vcc/0", SYMLINK+="%k", GROUP="tty"
-KERNEL=="vcs[0-9]*", NAME="vcc/%n", SYMLINK+="%k", GROUP="tty"
-KERNEL=="vcsa", NAME="vcc/a0", SYMLINK+="%k", GROUP="tty"
-KERNEL=="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK+="%k", GROUP="tty"
+KERNEL=="vcs", NAME="%k", GROUP="tty"
+KERNEL=="vcs[0-9]*", NAME="%k", GROUP="tty"
+KERNEL=="vcsa", NAME="%k", GROUP="tty"
+KERNEL=="vcsa[0-9]*", NAME="%k", GROUP="tty"
# memory devices
KERNEL=="random", NAME="%k", MODE="0666"
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2005-07-08 17:59 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-06 22:46 [gentoo-dev] devfs is dead, let's move on Greg KH
2005-07-06 23:04 ` Greg KH
2005-07-06 23:06 ` Roy Marples
2005-07-06 23:16 ` Greg KH
2005-07-07 0:35 ` Mike Frysinger
2005-07-07 9:34 ` Henrik Brix Andersen
2005-07-07 13:55 ` Martin Schlemmer
2005-07-07 19:44 ` [gentoo-dev] " Duncan
2005-07-07 20:06 ` Martin Schlemmer
2005-07-07 20:19 ` [gentoo-dev] " Duncan
2005-07-07 20:52 ` [gentoo-dev] " Greg KH
2005-07-07 23:22 ` Martin Schlemmer
2005-07-08 17:06 ` Greg KH
2005-07-08 18:16 ` Stephen Bennett
2005-07-08 18:36 ` Martin Schlemmer
2005-07-08 18:43 ` Martin Schlemmer
2005-07-07 14:18 ` Chris Gianelloni
2005-07-08 17:12 ` Greg KH [this message]
2005-07-09 1:00 ` Georgi Georgiev
2005-07-09 2:31 ` Greg KH
2005-08-01 22:14 ` Greg KH
2005-08-01 23:23 ` Kumba
2005-08-01 23:32 ` Greg KH
2005-08-01 23:40 ` Kumba
2005-08-01 23:56 ` Greg KH
2005-07-07 17:39 ` Georgi Georgiev
2005-07-08 17:15 ` Greg KH
2005-07-07 19:52 ` John Mylchreest
2005-07-07 20:49 ` Greg KH
2005-07-09 3:56 ` Kumba
2005-07-09 4:42 ` Greg KH
2005-07-09 5:22 ` Kumba
2005-07-08 17:49 ` Michiel de Bruijne
2005-07-08 22:25 ` Greg KH
2005-07-08 22:46 ` Michiel de Bruijne
2005-07-08 23:35 ` Martin Schlemmer
2005-07-09 0:44 ` Michiel de Bruijne
2005-07-09 0:58 ` Martin Schlemmer
2005-07-09 2:28 ` Greg KH
2005-07-09 18:34 ` Richard Fish
2005-07-09 18:50 ` Philippe Trottier
2005-07-11 7:47 ` Martin Schlemmer
2005-07-12 22:08 ` Mike Frysinger
2005-07-13 9:00 ` Martin Schlemmer
2005-07-13 12:55 ` Mike Frysinger
2005-07-13 14:44 ` Richard Fish
2005-07-15 23:37 ` Carlos Silva
2005-07-17 13:24 ` Greg KH
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=20050708171252.GD29606@kroah.com \
--to=gregkh@gentoo.org \
--cc=gentoo-dev@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox