From: Jamie Lokier <jamie@shareable.org>
To: Bryan Henderson <hbryan@us.ibm.com>
Cc: "Adam J. Richter" <adam@yggdrasil.com>, linux-fsdevel@vger.kernel.org
Subject: Re: DEVFS_FS
Date: Fri, 12 Nov 2004 05:55:44 +0000 [thread overview]
Message-ID: <20041112055544.GA21286@mail.shareable.org> (raw)
In-Reply-To: <OFB37F180D.FC8584A9-ON88256F49.007CA62E-88256F49.007E74D6@us.ibm.com>
Bryan Henderson wrote:
> To me, the criticism of devfs missed its most important feature: It was
> fundamentally designed to eradicate device numbers altogether. Device
> numbers are an ancient technology. In today's world, a device's basic
> name should be something like /dev/sound/mixer instead of a small number.
I agree.
Numberless devices are so useful that even some non-devfs systems have
a few drivers which allocate a number and require userspace to do
horrible things like parse /proc/devices to open the device.
Versions of udev that use /lib/udev-state/devices.tar.bz2 to
workaround the limitation described below completely break this
numberless feature.
> If you miss that, and think devfs is about making mnemonic aliases for
> small numbers, then it's easy to see devfs as a poor approximation of
> udev.
In my experience, udev has not been as good as people say, because
while devfs just works, the udev-based system I'm using right now
requires all manner of manual modprobing before basic things like
pppd, openvpn and mtools work.
> >Only devfs (or the lookup trapping facility used in my remake
> >of it) can configure new devices on demand based on accesses to files
> >missing from /dev, which allows for faster boot time (no need
> >to initialize device you won't use during this session), easier fixing
> >of device driver bugs, and potentially less memory utilization
>
> Why is that? First, let me make sure I parsed the sentence right: You're
> saying the only way to configure devices on demand such that you get all
> those benefits is by using your lookup trapping facility in conjunction
> with your version of devfs?
Wrongly parsed.
He's saying _either_ devfs _or_ looking trapping is sufficient.
> Also, I'm not clear on what memory utilization or device initialization
> delays we're talking about.
Examples: If you compile all USB drivers into the kernel, or if you
modprobe them during boot scripts, then boot time is extended by the
time taken to initialise the host controllers and connected devices.
If you compile in SCSI drivers, boot time is further extended by the
time taken to probe and initialise your SCSI devices.
The time for initialising devices which you don't want to use this
session can be quite significant, if you find a few seconds to be
significant.
Same goes for unnecessary memory utilisation. Having drivers loaded
for devices which you aren't using can be significant, if you find a
few hundred kbytes significant.
-- Jamie
next prev parent reply other threads:[~2004-11-12 5:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-11 19:53 DEVFS_FS Adam J. Richter
2004-11-11 23:00 ` DEVFS_FS Bryan Henderson
2004-11-12 5:55 ` Jamie Lokier [this message]
2004-11-12 18:50 ` DEVFS_FS Bryan Henderson
-- strict thread matches above, loose matches on Subject: below --
2004-11-13 16:29 DEVFS_FS Adam J. Richter
2004-11-15 19:35 ` DEVFS_FS Bryan Henderson
2004-11-16 6:09 DEVFS_FS Adam J. Richter
2004-11-16 19:08 ` DEVFS_FS Mike Waychison
2004-11-16 19:26 ` DEVFS_FS Jamie Lokier
2004-11-16 19:42 ` DEVFS_FS Greg KH
2004-11-16 19:48 ` DEVFS_FS Mike Waychison
2004-11-17 18:19 ` DEVFS_FS Bryan Henderson
2004-11-17 18:28 ` DEVFS_FS Jamie Lokier
2004-11-16 19:47 ` DEVFS_FS Bryan Henderson
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=20041112055544.GA21286@mail.shareable.org \
--to=jamie@shareable.org \
--cc=adam@yggdrasil.com \
--cc=hbryan@us.ibm.com \
--cc=linux-fsdevel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).