From: Greg KH <gregkh@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Stability of /sys api
Date: Tue, 15 May 2012 11:26:03 -0700 [thread overview]
Message-ID: <20120515182603.GC563@kroah.com> (raw)
In-Reply-To: <20120515055523.GB15805@waltdnes.org>
On Tue, May 15, 2012 at 01:55:23AM -0400, Walter Dnes wrote:
> On Mon, May 14, 2012 at 06:23:36PM -0700, Greg KH wrote
>
> > So you need to implement stuff such that you are not dependant on the
> > bus type. If you see a new disk, act on it, it's that simple.
> >
> > But note, please do not be automounting disks from uevents directly.
>
> After some more Google-searching. it looks like the "official
> channels" way is via /etc/mdev.conf. Note that this is on a system with
> busybox[mdev] and no udev. /etc/mdev.conf has a rudimentary set of
> "mdev rules" abilities, and most importantly, it can also call external
> executables (scripts/programs/whatever). On my mdev based machines...
>
> $ cat /proc/sys/kernel/hotplug
> /sbin/mdev
Oh my, don't do that. Please. It will slow your machine down, and on
some systems, and devices, cause fork-bombs causing your box to come to
a crawl and potentially die. There's also ordering issues that the
called program needs to resolve to get things right that add lots of
logic and slowdowns at times. I really want to get rid of that entry
and option from the kernel entirely, but need to keep it due to legacy
systems and API issues.
But really, don't do that, it's not a good idea at all.
> > Actually with all the hype about mdev these days, why not just use a 3
> > year old version of udev (or maybe 4), that is probably what mdev is at
> > as far as functionality goes. Why not just fork udev from then and go
> > forward from that? What exactly are you not liking in udev that makes
> > you want to get rid of it so badly? What is it doing that bothers
> > people so much?
>
> Unfortunately, I am not a C programmer, so forking udev is only a
> dream. As Maxim has pointed out, mdev does what most people need.
As does udev. And udev is faster, and I'd bet, the same size.
> The busybox people do the maintenance. Given their target audience
> (embedded and lightweight systems), we can be certain that mdev won't
> grow into a monstrosity. Even if I could do it, why reinvent the
> wheel? We have a perfectly usable alternative right now in mdev.
mdev is the reinvention, but hey, if you want it, that's fine. Embedded
and "lightweight" systems don't even need mdev or udev, they just use
the kernel-provided devtmpfs and all is good.
But it's your choice, and that's great, but please be aware of the
tradeoffs you are choosing, and again, my worry about using a
/sbin/hotplug executable is real and should be resolved.
What specifically is your objection to udev today? Is it doing things
you don't like? Too big? Something else?
thanks,
greg k-h
next prev parent reply other threads:[~2012-05-15 18:27 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-14 7:53 [gentoo-dev] Stability of /sys api Walter Dnes
2012-05-14 8:43 ` Brian Harring
2012-05-14 16:09 ` Mike Frysinger
2012-05-15 1:17 ` Greg KH
2012-05-14 16:31 ` James Cloos
2012-05-14 16:56 ` Olivier Crête
2012-05-14 17:11 ` Ciaran McCreesh
2012-05-14 22:02 ` James Cloos
2012-05-14 17:59 ` Walter Dnes
2012-05-14 22:06 ` James Cloos
2012-05-15 1:23 ` Greg KH
2012-05-15 1:56 ` Maxim Kammerer
2012-05-15 5:05 ` Walter Dnes
2012-05-15 6:32 ` Olivier Crête
2012-05-15 8:30 ` Canek Peláez Valdés
2012-05-15 20:29 ` Walter Dnes
2012-05-15 20:47 ` Nirbheek Chauhan
2012-05-15 18:28 ` Greg KH
2012-05-15 18:21 ` Greg KH
2012-05-15 20:21 ` Maxim Kammerer
2012-05-15 2:13 ` William Hubbs
2012-05-17 5:48 ` [gentoo-dev] " Steven J Long
2012-05-18 18:36 ` William Hubbs
2012-05-19 19:36 ` [gentoo-dev] Implementing udev without an initramfs (Was: Stability of /sys api) Steven J Long
2012-05-19 20:20 ` Samuli Suominen
2012-05-19 20:33 ` Michał Górny
2012-05-15 5:55 ` [gentoo-dev] Stability of /sys api Walter Dnes
2012-05-15 18:26 ` Greg KH [this message]
2012-05-15 22:38 ` Walter Dnes
2012-05-15 22:44 ` Stelian Ionescu
2012-05-15 23:51 ` Walter Dnes
2012-05-16 1:09 ` William Hubbs
2012-05-16 4:07 ` Arun Raghavan
2012-05-16 4:17 ` Luca Barbato
2012-05-15 23:54 ` Walter Dnes
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=20120515182603.GC563@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