Skip to contentSkip to conversation

DEVFS_FS

DISCUSSION Adam J. Richter 1 participant 1 message Nov 11, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 15 lines · Gene Heskett
Quoted 8 lines · Alexandre Costa

On Wed, 10 Nov 2004 15:46:06 -0500 (EST), linux-os

Quoted 2 lines · <[email protected]> wrote:

What is the approved substitute for DEVFS_FS that is marked obsolete?

udev
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html

Humm, I'm not sure I'm entirely happy with that choice. I have an FC3RC5 install on an old P-II running at 233mhz, and the udev start in the bootup is the slowest single thing to get started by an order of magnitude.

Quoted 5 lines

Can someone tell me a good reason udev wastes as much time as the post does checking 383 megs of memory, which is very nearly a minute even just for udev?

If its to be used, its got to speed itself up, a LOT!.

Gene,

I do not know what kind of device you are using or what kind
of inialization it really needs, but your situation _might_ be a good example of the benefits of being able configure devices on demand with devfs if this is a device that you do not use every time you boot your system and that initialization process is not something that can easily be deferred to the first device open() call.

As you may know, in the recent releases of my devfs rewrite,
I split the demand loading for missing device files into a separate a separate facility (tmpfs "lookup traps"). That way, even if you do not want to run the rest of devfs, you could avoid that initilization and perhaps some kernel memory usage from the device driver in the sessions that never use that device.

On the other hand, initialization on demand would make your
first access of the session to that device spend the same amount of time that you are now spending at boot, whereas, you might instead want to have that device driver loaded at boot time and stay in kernel memory so that you can do the initialization in the background if you can somehow ensure that access to the device will block until the initialization completes if necessary.

                    __     ______________ 

Adam J. Richter \ /
[email protected] | g g d r a s i l